OpalPresentityWithCommandThread Class Reference
#include <pres_ent.h>
Detailed Description
Representation of a presence identity that uses a background thread to process commands.
Member Typedef Documentation
Constructor & Destructor Documentation
| OpalPresentityWithCommandThread::OpalPresentityWithCommandThread |
( |
|
) |
[protected] |
Construct the presentity class that uses a command thread.
| OpalPresentityWithCommandThread::~OpalPresentityWithCommandThread |
( |
|
) |
|
Destory the presentity class that uses a command thread. Note this will block until the background thread has stopped.
Member Function Documentation
Lowlevel function to send a command to the presentity handler. All commands are asynchronous. They will usually initiate an action for which an indication (callback) will give a result.
The default implementation queues the command for the background thread to handle.
Returns true if the command was queued. Note that this does not mean the command succeeded, only that the underlying protocol is processing commands, that is the backgrund thread is running
- Parameters:
-
Reimplemented from OpalPresentity.
| void OpalPresentityWithCommandThread::StartQueue |
( |
bool |
startQueue = true |
) |
|
Start/resume processing of queue commands
| void OpalPresentityWithCommandThread::StartThread |
( |
bool |
startQueue = true |
) |
|
Start the background thread to handle commands. This is typically called from the concrete classes Open() function.
If the argument is true (the default) then the thread starts processing queue entries ASAP.
If the argument is false, the thread is still created and still runs, but it does not process queue entries. This allows for presenties that may need to allow commands to be paused, for example during initialisation
| void OpalPresentityWithCommandThread::StopThread |
( |
|
) |
|
Stop the background thread to handle commands. This is typically called from the concrete classes Close() function. It is also called fro the destructor to be sure the thread has stopped before the object is destroyed.
| void OpalPresentityWithCommandThread::ThreadMain |
( |
|
) |
[protected] |
Field Documentation
The documentation for this class was generated from the following file: