Yate
|
JID feature list. More...
#include <xmpputils.h>
Public Member Functions | |
bool | add (int xml, int feature, bool required=false) |
bool | add (int feature) |
bool | add (XMPPFeature *feature) |
void | reset () |
void | add (XMPPFeatureList &list) |
void | fromStreamFeatures (XmlElement &xml) |
void | fromDiscoInfo (XmlElement &xml) |
void | remove (int feature) |
XMPPFeature * | get (int feature) |
XMPPFeature * | get (const String &feature) |
XMPPFeatureSasl * | getSasl () |
XMPPFeatureCompress * | getCompress () |
XmlElement * | buildStreamFeatures () |
XmlElement * | buildDiscoInfo (const char *from, const char *to, const char *id, const char *node=0, const char *cap=0) |
void | add (XmlElement &xml) |
void | updateEntityCaps () |
Public Attributes | |
JIDIdentityList | m_identities |
String | m_entityCapsHash |
JID feature list.
This class holds a list of JID features
bool add | ( | int | xml, |
int | feature, | ||
bool | required = false |
||
) | [inline] |
Add a feature to the list
xml | XML element tag as enumeration |
feature | The feature to add as enumeration |
required | True if this feature is required |
bool add | ( | int | feature | ) | [inline] |
Add a feature to the list
feature | The feature to add as enumeration |
bool add | ( | XMPPFeature * | 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().
void add | ( | XMPPFeatureList & | list | ) |
Move a list of features to this list. Don't check duplicates
list | The source list |
void add | ( | XmlElement & | xml | ) |
Add this list to an xml element
xml | Destination element |
XmlElement* buildDiscoInfo | ( | const char * | from, |
const char * | to, | ||
const char * | id, | ||
const char * | node = 0 , |
||
const char * | cap = 0 |
||
) |
Build an iq query disco info result from this list
from | The 'from' attribute |
to | The 'to' attribute |
id | The 'id' attribute |
node | Optional 'node' attribute |
cap | Optional capability to be set as 'node' suffix |
Build stream features from this list
void fromDiscoInfo | ( | XmlElement & | xml | ) |
Re-build this list from disco info responses
xml | The element to parse |
void fromStreamFeatures | ( | XmlElement & | xml | ) |
Re-build this list from stream features
xml | The features element to parse |
XMPPFeature* get | ( | int | feature | ) |
Get a feature from the list
feature | The feature to get |
XMPPFeature* get | ( | const String & | feature | ) | [inline] |
Get a feature from the list
feature | The feature name to find |
References ObjList::get().
XMPPFeatureCompress* getCompress | ( | ) | [inline] |
Get a XMPPFeatureCompress feature from list
References TelEngine::YOBJECT().
XMPPFeatureSasl* getSasl | ( | ) | [inline] |
Get a XMPPFeatureSasl feature from list
References TelEngine::YOBJECT().
void remove | ( | int | feature | ) | [inline] |
Remove a feature from the list
feature | The feature to remove |
References ObjList::remove().
void reset | ( | ) | [inline] |
Clear data
void updateEntityCaps | ( | ) |
Update the entity capabilities hash