class JIDResourceList

A resource list. More...

Full nameTelEngine::JIDResourceList
Definition#include <libs/yjingle/yatejabber.h>
InheritsTelEngine::Mutex [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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:
nameThe 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:
resourceThe 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:
resourceThe resource to remove
delTrue 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:
nameThe 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:
availableOnlyTrue to get only if available

Returns: A pointer to the resource or 0


Generated by: paulc on bussard on Mon Mar 8 12:18:15 2010, using kdoc 2.0a54.