class JIDFeatureList

JID feature list. More...

Full nameTelEngine::JIDFeatureList
Definition#include <libs/yjingle/xmpputils.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class holds a list of JID features

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

add

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

inline bool  add (JIDFeature* feature)

add

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

inline void  remove (XMPPNamespace::Type feature)

remove

Remove a feature from the list

Parameters:
featureThe feature to remove

JIDFeature*  get (XMPPNamespace::Type feature)

get

Get a feature from the list

Parameters:
featureThe feature to get

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

XMLElement*  addTo (XMLElement* element)

addTo

Add 'feature' children to the given element

Parameters:
elementThe target XMLElement

Returns: The given element

void  fromXml (XMLElement* element, bool reset = true)

fromXml

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

inline void  clear ()

clear

Clear the feature list


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