|
|
This class holds a resource list
inline JIDResourceList ()
| JIDResourceList |
Constructor
inline bool add (const String& name)
| add |
Add a resource to the list if a resource with the given name doesn't exists
Parameters:
name | The resource name |
Returns: False if the the resource already exists in the list
bool add (JIDResource* resource)
| add |
Add a resource to the list if not already there. Destroy the received resource if not added
Parameters:
resource | The resource to add |
Returns: False if the the resource already exists in the list
inline void remove (JIDResource* resource, bool del = true)
| remove |
Remove a resource from the list
Parameters:
resource | The resource to remove |
del | True to delete the resource |
inline void clear ()
| clear |
Clear the list
JIDResource* get (const String& name)
| get |
Get a resource with the given name
Parameters:
name | The resource name |
Returns: A pointer to the resource or 0
inline JIDResource* getFirst ()
| getFirst |
Get the first resource from the list
Returns: A pointer to the resource or 0
JIDResource* getAudio (bool availableOnly = true)
| getAudio |
Get the first resource with audio capability
Parameters:
availableOnly | True to get only if available |
Returns: A pointer to the resource or 0
Generated by: paulc on bussard on Wed Oct 21 01:57:30 2009, using kdoc 2.0a54. |