#include <yatejabber.h>
Public Types | |
enum | Type { StreamConnect, EngineReceive, EngineProcess, Presence, Jingle, Message } |
Public Member Functions | |
virtual | ~JBThread () |
Type | type () const |
virtual void | cancelThread (bool hard=false)=0 |
Static Public Member Functions | |
static bool | start (Type type, JBThreadList *list, void *client, int sleep, int prio) |
Protected Member Functions | |
JBThread (Type type, JBThreadList *owner, void *client, int sleep=2) | |
void | runClient () |
void * | client () |
This class holds encapsulates a private library thread
virtual ~JBThread | ( | ) | [virtual] |
Destructor. Remove itself from the owner's list
JBThread | ( | Type | type, | |
JBThreadList * | owner, | |||
void * | client, | |||
int | sleep = 2 | |||
) | [protected] |
virtual void cancelThread | ( | bool | hard = false |
) | [pure virtual] |
Cancel (terminate) this thread
hard | Kill the thread the hard way rather than just setting an exit check marker |
static bool start | ( | Type | type, | |
JBThreadList * | list, | |||
void * | client, | |||
int | sleep, | |||
int | prio | |||
) | [static] |
void runClient | ( | ) | [protected] |
Process the client
void* client | ( | ) | [inline, protected] |
Get the stream's client