Buteo Synchronization Framework
Signals | Public Member Functions | Protected Member Functions | List of all members
Buteo::ServerThread Class Reference

Thread for server plugin. More...

#include <ServerThread.h>

Inheritance diagram for Buteo::ServerThread:

Signals

void initError (const QString &aProfileName, const QString &aMessage, SyncResults::MinorCode aErrorCode)
 Emitted when synchronization cannot be started due to an error in plugin initialization.
 

Public Member Functions

 ServerThread ()
 Constructor.
 
virtual ~ServerThread ()
 Destructor.
 
QString getProfileName () const
 Returns profile that this thread is running.
 
ServerPlugingetPlugin () const
 Returns plugin that this thread is running.
 
bool startThread (ServerPlugin *aServerPlugin)
 Starts server thread.
 
void stopThread ()
 Stops server thread.
 

Protected Member Functions

virtual void run ()
 overriding method of QThread::run
 

Detailed Description

Thread for server plugin.

Constructor & Destructor Documentation

◆ ServerThread()

ServerThread::ServerThread ( )

Constructor.

◆ ~ServerThread()

ServerThread::~ServerThread ( )
virtual

Destructor.

Member Function Documentation

◆ getPlugin()

ServerPlugin * ServerThread::getPlugin ( ) const

Returns plugin that this thread is running.

Returns
Plugin

◆ getProfileName()

QString ServerThread::getProfileName ( ) const

Returns profile that this thread is running.

Returns
Profile name

◆ initError

void Buteo::ServerThread::initError ( const QString &  aProfileName,
const QString &  aMessage,
SyncResults::MinorCode  aErrorCode 
)
signal

Emitted when synchronization cannot be started due to an error in plugin initialization.

Parameters
aProfileNameName of the profile being synchronized
aMessageMessage data related to error event
aErrorCodeError code

◆ startThread()

bool ServerThread::startThread ( ServerPlugin aServerPlugin)

Starts server thread.

Parameters
aServerPluginServer plug-in to run. The plug-in is owned by the caller and must not be deleted while the thread is running.
Returns
True on success, otherwise false

◆ stopThread()

void ServerThread::stopThread ( )

Stops server thread.


The documentation for this class was generated from the following files: