JIDFeatureList Class Reference

JID feature list. More...

#include <xmpputils.h>

List of all members.

Public Member Functions

bool add (XMPPNamespace::Type feature, bool required=false)
bool add (JIDFeature *feature)
void remove (XMPPNamespace::Type feature)
JIDFeatureget (XMPPNamespace::Type feature)
XMLElementaddTo (XMLElement *element)
void clear ()


Detailed Description

JID feature list.

This class holds a list of JID features


Member Function Documentation

bool add ( XMPPNamespace::Type  feature,
bool  required = false 
) [inline]

Add a feature to the list

Parameters:
feature The feature to add
required True if this feature is required
Returns:
False if the given feature already exists

bool add ( JIDFeature feature  )  [inline]

Add a feature to the list. Destroy the received parameter if already in the list

Parameters:
feature The feature to add
Returns:
False if the given feature already exists

References TelEngine::destruct().

void remove ( XMPPNamespace::Type  feature  )  [inline]

Remove a feature from the list

Parameters:
feature The feature to remove

JIDFeature* get ( XMPPNamespace::Type  feature  ) 

Get a feature from the list

Parameters:
feature The feature to get
Returns:
Pointer to the feature or 0 if it doesn't exists

XMLElement* addTo ( XMLElement element  ) 

Add 'feature' children to the given element

Parameters:
element The target XMLElement
Returns:
The given element

void clear (  )  [inline]

Clear the feature list


The documentation for this class was generated from the following file:

Generated on Mon Aug 11 16:17:53 2008 for Yate by  doxygen 1.5.6