|
Yate
|
JID feature list. More...
#include <xmpputils.h>
Public Member Functions | |
| bool | add (XMPPNamespace::Type feature, bool required=false) |
| bool | add (JIDFeature *feature) |
| void | remove (XMPPNamespace::Type feature) |
| JIDFeature * | get (XMPPNamespace::Type feature) |
| XMLElement * | addTo (XMLElement *element) |
| void | fromXml (XMLElement *element, bool reset=true) |
| void | clear () |
JID feature list.
This class holds a list of JID features
| bool add | ( | XMPPNamespace::Type | feature, |
| bool | required = false |
||
| ) | [inline] |
Add a feature to the list
| feature | The feature to add |
| required | True if this feature is required |
| bool add | ( | JIDFeature * | feature | ) | [inline] |
Add a feature to the list. Destroy the received parameter if already in the list
| feature | The feature to add |
References TelEngine::destruct().
| XMLElement* addTo | ( | XMLElement * | element | ) |
Add 'feature' children to the given element
| element | The target XMLElement |
| void clear | ( | ) | [inline] |
Clear the feature list
| void fromXml | ( | XMLElement * | element, |
| bool | reset = true |
||
| ) |
Update the list from 'feature' children of the given element
| element | The source XMLElement |
| reset | True to clear the list before updating |
| JIDFeature* get | ( | XMPPNamespace::Type | feature | ) |
Get a feature from the list
| feature | The feature to get |
| void remove | ( | XMPPNamespace::Type | feature | ) | [inline] |
Remove a feature from the list
| feature | The feature to remove |
1.7.3