|
Yate
|
A Jabber client engine. More...
#include <yatejabber.h>
Public Member Functions | |
| JBClientEngine (const char *name="jbclientengine") | |
| ~JBClientEngine () | |
| virtual void | cleanup (bool final=false, bool waitTerminate=true) |
| JBClientStream * | findAccount (const String &account) |
| JBClientStream * | create (const String &account, const NamedList ¶ms, const String &name=String::empty()) |
| virtual void | getStreamList (RefPointer< JBStreamSetList > &list, int type) |
Protected Member Functions | |
| virtual void | addStream (JBStream *stream) |
| virtual void | removeStream (JBStream *stream, bool delObj=true) |
| virtual void | stopStreamSets (bool waitTerminate=true) |
Protected Attributes | |
| JBStreamSetList * | m_receive |
| JBStreamSetList * | m_process |
A Jabber client engine.
This class implements a Jabber client engine
| JBClientEngine | ( | const char * | name = "jbclientengine" | ) |
Constructor
| name | Engine name |
| ~JBClientEngine | ( | ) |
Destructor
Add a stream to one of the stream lists
| stream | The stream to add |
Reimplemented from JBEngine.
| virtual void cleanup | ( | bool | final = false, |
| bool | waitTerminate = true |
||
| ) | [virtual] |
Terminate all streams. Stop all sets processors. Release memory if final
| final | True if called from destructor |
| waitTerminate | True to wait for all streams to terminate |
Reimplemented from JBEngine.
| JBClientStream* create | ( | const String & | account, |
| const NamedList & | params, | ||
| const String & | name = String::empty() |
||
| ) |
Build an outgoing client stream
| account | Account name |
| params | Stream parameters |
| name | Optional stream name |
| JBClientStream* findAccount | ( | const String & | account | ) |
Find a stream by account
| account | Account name |
| virtual void getStreamList | ( | RefPointer< JBStreamSetList > & | list, |
| int | type | ||
| ) | [virtual] |
| virtual void removeStream | ( | JBStream * | stream, |
| bool | delObj = true |
||
| ) | [protected, virtual] |
Remove a stream
| stream | The stream to remove |
| delObj | True to release the stream, false to remove it from list without releasing it |
Reimplemented from JBEngine.
| virtual void stopStreamSets | ( | bool | waitTerminate = true | ) | [protected, virtual] |
Stop all stream sets
| waitTerminate | True to wait for all streams to terminate |
Reimplemented from JBEngine.
1.7.6.1