A resource list. More...
#include <yatejabber.h>
Public Member Functions | |
| JIDResourceList () | |
| bool | add (const String &name) |
| bool | add (JIDResource *resource) |
| void | remove (JIDResource *resource, bool del=true) |
| void | clear () |
| JIDResource * | get (const String &name) |
| JIDResource * | getFirst () |
| JIDResource * | getAudio (bool availableOnly=true) |
Friends | |
| class | XMPPUser |
| class | JBPresence |
A resource list.
This class holds a resource list
| JIDResourceList | ( | ) | [inline] |
Constructor
| bool add | ( | JIDResource * | resource | ) |
Add a resource to the list if not already there. Destroy the received resource if not added
| resource | The resource to add |
| bool add | ( | const String & | name | ) | [inline] |
Add a resource to the list if a resource with the given name doesn't exists
| name | The resource name |
References JIDResourceList::add().
Referenced by JIDResourceList::add().
| void clear | ( | ) | [inline] |
Clear the list
| JIDResource* get | ( | const String & | name | ) |
Get a resource with the given name
| name | The resource name |
| JIDResource* getAudio | ( | bool | availableOnly = true |
) |
Get the first resource with audio capability
| availableOnly | True to get only if available |
| JIDResource* getFirst | ( | ) | [inline] |
Get the first resource from the list
References ObjList::get().
| void remove | ( | JIDResource * | resource, | |
| bool | del = true | |||
| ) | [inline] |
Remove a resource from the list
| resource | The resource to remove | |
| del | True to delete the resource |
1.6.3