Yate
Public Member Functions

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 fromXml (XMLElement *element, bool reset=true)
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:
featureThe feature to add
requiredTrue 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:
featureThe feature to add
Returns:
False if the given feature already exists

References TelEngine::destruct().

XMLElement* addTo ( XMLElement element)

Add 'feature' children to the given element

Parameters:
elementThe target XMLElement
Returns:
The given element
void clear ( ) [inline]

Clear the feature list

void fromXml ( XMLElement element,
bool  reset = true 
)

Update the list from 'feature' children of the given element

Parameters:
elementThe source XMLElement
resetTrue to clear the list before updating
Returns:
The given element
JIDFeature* get ( XMPPNamespace::Type  feature)

Get a feature from the list

Parameters:
featureThe feature to get
Returns:
Pointer to the feature or 0 if it doesn't exists
void remove ( XMPPNamespace::Type  feature) [inline]

Remove a feature from the list

Parameters:
featureThe feature to remove

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