|
|
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:
| feature | The feature to add |
| required | True 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:
| feature | The 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:
| feature | The feature to remove |
| JIDFeature* get (XMPPNamespace::Type feature)
| get |
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)
| addTo |
Add 'feature' children to the given element
Parameters:
| element | The 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:
| element | The source XMLElement |
| reset | True 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. |