A Jabber thread that can be added to a list of threads. More...
#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=0, int prio=Thread::Normal) |
Protected Member Functions | |
| JBThread (Type type, JBThreadList *owner, void *client, int sleep=2) | |
| void | runClient () |
| void * | client () |
A Jabber thread that can be added to a list of threads.
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 |
| void* client | ( | ) | [inline, protected] |
Get the stream's client
| void runClient | ( | ) | [protected] |
Process the client
| static bool start | ( | Type | type, | |
| JBThreadList * | list, | |||
| void * | client, | |||
| int | sleep = 0, |
|||
| int | prio = Thread::Normal | |||
| ) | [static] |
1.6.3