23 #ifndef SERVERTHREAD_H
24 #define SERVERTHREAD_H
85 void initError(
const QString &aProfileName,
const QString &aMessage,
99 mutable QMutex iMutex;
101 #ifdef SYNCFW_UNIT_TESTS
102 friend class ServerThreadTest;
109 #endif // SERVERTHREAD_H
ServerPlugin * getPlugin() const
Returns plugin that this thread is running.
Definition: ServerThread.cpp:57
ServerThread()
Constructor.
Definition: ServerThread.cpp:32
Definition: AccountsHelper.h:31
Base class for server plugins.
Definition: ServerPlugin.h:36
QString getProfileName() const
Returns profile that this thread is running.
Definition: ServerThread.cpp:44
bool startThread(ServerPlugin *aServerPlugin)
Starts server thread.
Definition: ServerThread.cpp:65
void stopThread()
Stops server thread.
Definition: ServerThread.cpp:93
Thread for server plugin.
Definition: ServerThread.h:36
virtual ~ServerThread()
Destructor.
Definition: ServerThread.cpp:39
void initError(const QString &aProfileName, const QString &aMessage, int aErrorCode)
Emitted when synchronization cannot be started due to an error in plugin initialization.
Definition: moc_ServerThread.cpp:125
virtual void run()
overriding method of QThread::run
Definition: ServerThread.cpp:100