kitchensync

Threaded::ClientThread Class Reference

#include <clientthread.h>

List of all members.


Detailed Description

Client Thread.

The Worker OBEX client thread. Note that this QObject is only accessed from the client thread. It is used to report events from the working thread. This QObject will be the parent of all QObjects in the working thread. It is in no way connected to the QObject in the main thread.

Definition at line 44 of file clientthread.h.


Public Types

enum  { TerminatedEvent = 46666, FinishedEvent = TerminatedEvent+1, ErrorEvent = TerminatedEvent+2, ProgressEvent = TerminatedEvent+3 }
enum  Command {
  Connect, Disconnect, ReadSyncees, WriteSyncees,
  TerminateThread
}

Public Member Functions

 ClientThread (QObject *)
 ~ClientThread ()
void run ()

Friends

class ClientManager

Member Enumeration Documentation

anonymous enum

Event numbers for the custom event.

Definition at line 51 of file clientthread.h.

Possible commands for the worker.

Definition at line 59 of file clientthread.h.


Constructor & Destructor Documentation

ClientThread::ClientThread ( QObject *   ) 

Constructor.

Definition at line 38 of file clientthread.cpp.

ClientThread::~ClientThread (  ) 

Destructor.

Definition at line 48 of file clientthread.cpp.


Member Function Documentation

void ClientThread::run (  ) 

Worker function of QThread.

It runs the requests and posts events.

Definition at line 56 of file clientthread.cpp.


Friends And Related Function Documentation

friend class ClientManager [friend]

The class has to access several private variables.

Definition at line 125 of file clientthread.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys