Yate
|
The roster of a local user. More...
#include <yatejabber.h>
Public Member Functions | |
virtual | ~XMPPUserRoster () |
const JabberID & | jid () const |
JBPresence * | engine () |
JIDResourceList & | resources () |
ObjList & | users () |
XMPPUser * | getUser (const JabberID &jid, bool add=false, bool *added=0) |
bool | removeUser (const JabberID &remote) |
void | cleanup () |
bool | timeout (u_int64_t time) |
XMLElement * | createDiscoInfoResult (const char *from, const char *to, const char *id) |
Protected Member Functions | |
XMPPUserRoster (JBPresence *engine, const char *node, const char *domain, JBEngine::Protocol proto=JBEngine::Component) | |
Friends | |
class | JBPresence |
class | JBClientStream |
class | XMPPUser |
The roster of a local user.
This class holds the roster for a local user.
virtual ~XMPPUserRoster | ( | ) | [virtual] |
Destructor. Remove this roster from engine's queue.
XMPPUserRoster | ( | JBPresence * | engine, |
const char * | node, | ||
const char * | domain, | ||
JBEngine::Protocol | proto = JBEngine::Component |
||
) | [protected] |
Constructor.
engine | Pointer to the presence engine this user belongs to |
node | User's name |
domain | User's domain |
proto | Protocol. Used to create identity |
void cleanup | ( | ) | [inline] |
() Clear remote user list.
XMLElement* createDiscoInfoResult | ( | const char * | from, |
const char * | to, | ||
const char * | id | ||
) | [inline] |
Create an iq result to respond to disco info. Add user's features and identity
from | The from attribute |
to | The to attribute |
id | The id attribute |
References XMPPUtils::createDiscoInfoRes().
JBPresence* engine | ( | ) | [inline] |
Get the presence engine this user belongs to.
Get a remote user. This method is thread safe.
jid | User's jid. |
add | True to add if not found. |
added | Optional flag to set if added a new user. |
const JabberID& jid | ( | ) | const [inline] |
Get the local user's jid.
bool removeUser | ( | const JabberID & | remote | ) |
Remove a remote user. This method is thread safe.
remote | The user to remove. |
JIDResourceList& resources | ( | ) | [inline] |
Get the list of available resources belonging to the same user
bool timeout | ( | u_int64_t | time | ) |
Check timeout. This method is thread safe.
time | Current time. |
ObjList& users | ( | ) | [inline] |
Get the list of remote users