kitchensync
Threaded::ClientManager Class Reference
#include <clientmanager.h>
Detailed Description
Client Thread.A QThread for the OBEX client. Note that this QObject is only accessed from the main thread. It is used to report events from the working thread.
Definition at line 44 of file clientmanager.h.
Signals | |
void | signalTerminated () |
void | signalFinished () |
void | signalError (const KSync::Error &) |
void | signalProgress (const KSync::Progress &) |
Public Member Functions | |
ClientManager (QObject *=0, const char *=0) | |
~ClientManager () | |
bool | isIdle () |
bool | readSyncees () |
bool | writeSyncees () |
bool | connectDevice () |
bool | disconnectDevice () |
bool | terminateThread () |
void | cancelJob () |
Constructor & Destructor Documentation
ClientManager::ClientManager | ( | QObject * | = 0 , |
|
const char * | = 0 | |||
) |
ClientManager::~ClientManager | ( | ) |
Member Function Documentation
bool ClientManager::isIdle | ( | ) |
Returns if the worker is idel at the monment.
Since we have only one manager this lock free access does not introduce a race condition.
Definition at line 77 of file clientmanager.cpp.
bool ClientManager::readSyncees | ( | ) |
Starts reading the device and computing the synccees.
Returns if a backup could be started. If the function returns with true the job is terminated by by either a signalError( const KSync::Error& ) or a signalFinished( ).
Definition at line 88 of file clientmanager.cpp.
bool ClientManager::writeSyncees | ( | ) |
Starts writing the syncees to the device.
Returns if a backup could be started. If the function returns with true the job is terminated by by either a signalError( const KSync::Error& ) or a signalFinished( ).
Definition at line 106 of file clientmanager.cpp.
bool ClientManager::connectDevice | ( | ) |
Starts connecting the device.
Returns if a backup could be started. If the function returns with true the job is terminated by by either a signalError( const KSync::Error& ) or a signalFinished( ).
Definition at line 125 of file clientmanager.cpp.
bool ClientManager::disconnectDevice | ( | ) |
Starts disconnecting the device.
Returns if a backup could be started. If the function returns with true the job is terminated by by either a signalError( const KSync::Error& ) or a signalFinished( ).
Definition at line 144 of file clientmanager.cpp.
bool ClientManager::terminateThread | ( | ) |
Terminates .
.. FIXME, work out if the usual terminate does a better job ...
Definition at line 159 of file clientmanager.cpp.
void ClientManager::cancelJob | ( | ) |
Sets a flag in the client thread.
We hope, that the worker thread regularly reads that flag ...
Definition at line 176 of file clientmanager.cpp.
void Threaded::ClientManager::signalTerminated | ( | ) | [signal] |
Is emitted when the thread running has terminated.
Then it is save to destroy this class.
void Threaded::ClientManager::signalFinished | ( | ) | [signal] |
Is emitted when the job running has finished.
void Threaded::ClientManager::signalError | ( | const KSync::Error & | ) | [signal] |
Is emitted when the thread running main gets an error.
void Threaded::ClientManager::signalProgress | ( | const KSync::Progress & | ) | [signal] |
Is emitted when the thread running main gets an error.
The documentation for this class was generated from the following files: