Threaded::ClientManager Class Reference
Client Thread. More...
#include <clientmanager.h>
Inherits QObject, and QThread.
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 ()
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.
Constructor & Destructor Documentation
|
Constructor with the usual parent handling.
|
|
Destructor, make sure that the thread terminated.
|
Member Function Documentation
|
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. |
|
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( const KSync::Progress& ). |
|
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( const KSync::Progress& ). |
|
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( const KSync::Progress& ). |
|
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( const KSync::Progress& ). |
|
Terminates ... FIXME, work out if the usual terminate does a better job ... |
|
Sets a flag in the client thread. We hope, that the worker thread regularly reads that flag ... |
|
Is emitted when the thread running has terminated. Then it is save to destroy this class. |
|
Is emitted when the job running has finished.
|
|
Is emitted when the thread running main gets an error.
|
|
Is emitted when the thread running main gets an error.
|
The documentation for this class was generated from the following files:
- clientmanager.h
- clientmanager.cpp