24 #ifndef SERVERACTIVATOR_H_ 25 #define SERVERACTIVATOR_H_ 27 #include "TransportTracker.h" 28 #include "ProfileManager.h" 73 int addRef(
const QString &aServerName,
bool emitSignal =
true);
83 int removeRef(
const QString &aServerName,
bool emitSignal =
true);
123 ServerData() : iRefCount(0) { }
130 #ifdef SYNCFW_UNIT_TESTS 131 friend class ServerActivatorTest;
void serverDisabled(const QString &aServerName)
Signal emitted when a server should be disabled.
Definition: moc_ServerActivator.cpp:166
This class represents a single profile, a collection of settings or data releated to some entity...
Definition: Profile.h:52
void onConnectivityStateChanged(Sync::ConnectivityType aType, bool aState)
Called when transport state changes.
Definition: ServerActivator.cpp:162
Definition: AccountsHelper.h:31
virtual ~ServerActivator()
Destructor.
Definition: ServerActivator.cpp:94
int removeRef(const QString &aServerName, bool emitSignal=true)
Removes a reference from the given server.
Definition: ServerActivator.cpp:120
Keeps track of which server plug-ins should be enabled.
Definition: ServerActivator.h:47
void serverEnabled(const QString &aServerName)
Signal emitted when a server should be enabled.
Definition: moc_ServerActivator.cpp:159
int addRef(const QString &aServerName, bool emitSignal=true)
Adds a reference to the given server.
Definition: ServerActivator.cpp:99
ProfileManager is responsible for storing and retrieving the profiles.
Definition: ProfileManager.h:45
QStringList enabledServers() const
Gets the list of enabled server.
Definition: ServerActivator.cpp:146
ServerActivator(ProfileManager &aProfileManager, TransportTracker &aTransportTracker, QObject *aParent=0)
Constructor.
Definition: ServerActivator.cpp:30
Class for tracking transport states.
Definition: TransportTracker.h:47