|
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 Member Functions inherited from ObjList | |
| ObjList () | |
| virtual | ~ObjList () |
| virtual void * | getObject (const String &name) const |
| unsigned int | length () const |
| unsigned int | count () const |
| GenObject * | get () const |
| GenObject * | set (const GenObject *obj, bool delold=true) |
| ObjList * | next () const |
| ObjList * | last () const |
| ObjList * | skipNull () const |
| ObjList * | skipNext () const |
| GenObject * | at (int index) const |
| ObjList * | operator+ (int index) const |
| GenObject * | operator[] (signed int index) const |
| GenObject * | operator[] (unsigned int index) const |
| GenObject * | operator[] (const String &str) const |
| ObjList * | find (const GenObject *obj) const |
| ObjList * | find (const String &str) const |
| int | index (const GenObject *obj) const |
| int | index (const String &str) const |
| ObjList * | insert (const GenObject *obj, bool compact=true) |
| ObjList * | append (const GenObject *obj, bool compact=true) |
| ObjList * | setUnique (const GenObject *obj, bool compact=true) |
| GenObject * | remove (bool delobj=true) |
| GenObject * | remove (GenObject *obj, bool delobj=true) |
| GenObject * | remove (const String &str, bool delobj=true) |
| void | clear () |
| void | compact () |
| bool | autoDelete () |
| void | setDelete (bool autodelete) |
| void | sort (int(*callbackCompare)(GenObject *obj1, GenObject *obj2, void *context), void *context=0) |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | toString () const |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Public Attributes | |
| JIDIdentityList | m_identities |
| String | m_entityCapsHash |
Additional Inherited Members | |
Static Public Member Functions inherited from ObjList | |
| static const ObjList & | empty () |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
JID feature list.
This class holds a list of JID features
|
inline |
Add a feature to the list
| feature | The feature to add as enumeration |
References ObjList::append(), and get().
|
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 |
References ObjList::append(), and get().
| void add | ( | XmlElement & | xml | ) |
Add this list to an xml element
| xml | Destination element |
|
inline |
Add a feature to the list. Destroy the received parameter if already in the list
| feature | The feature to add |
References ObjList::append(), and get().
| void add | ( | XMPPFeatureList & | list | ) |
Move a list of features to this list. Don't check duplicates
| list | The source list |
| 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 |
| XmlElement * buildStreamFeatures | ( | ) |
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 |
|
inline |
Get a feature from the list
| feature | The feature name to find |
References ObjList::find(), ObjList::get(), and ObjList::ObjList().
| XMPPFeature * get | ( | int | feature | ) |
|
inline |
Get a XMPPFeatureCompress feature from list
References get().
|
inline |
Get a XMPPFeatureSasl feature from list
References get().
|
inline |
Remove a feature from the list
| feature | The feature to remove |
References get(), and ObjList::remove().
|
inline |
Clear data
References ObjList::clear().
| void updateEntityCaps | ( | ) |
Update the entity capabilities hash