class XMPPFeatureList

JID feature list. More...

Full nameTelEngine::XMPPFeatureList
Definition#include <libs/yjabber/xmpputils.h>
InheritsTelEngine::ObjList [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

This class holds a list of JID features

inline bool  add (int xml, int feature, bool required = false)

add

Add a feature to the list

Parameters:
xmlXML element tag as enumeration
featureThe feature to add as enumeration
requiredTrue if this feature is required

Returns: False if the given feature already exists

inline bool  add (int feature)

add

Add a feature to the list

Parameters:
featureThe feature to add as enumeration

Returns: False if the given feature already exists

inline bool  add (XMPPFeature* 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  reset ()

reset

Clear data

void  add (XMPPFeatureList& list)

add

Move a list of features to this list. Don't check duplicates

Parameters:
listThe source list

void  fromStreamFeatures (XmlElement& xml)

fromStreamFeatures

Re-build this list from stream features

Parameters:
xmlThe features element to parse

void  fromDiscoInfo (XmlElement& xml)

fromDiscoInfo

Re-build this list from disco info responses

Parameters:
xmlThe element to parse

inline void  remove (int feature)

remove

Remove a feature from the list

Parameters:
featureThe feature to remove

Reimplemented from ObjList.

XMPPFeature*  get (int 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

Reimplemented from ObjList.

inline XMPPFeature*  get (const String& feature)

get

Get a feature from the list

Parameters:
featureThe feature name to find

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

Reimplemented from ObjList.

inline XMPPFeatureSasl*  getSasl ()

getSasl

Get a XMPPFeatureSasl feature from list

Returns: XMPPFeatureSasl pointer or 0 if not found

inline XMPPFeatureCompress*  getCompress ()

getCompress

Get a XMPPFeatureCompress feature from list

Returns: XMPPFeatureCompress pointer or 0 if not found

XmlElement*  buildStreamFeatures ()

buildStreamFeatures

Build stream features from this list

Returns: XmlElement pointer

XmlElement*  buildDiscoInfo (const char* from, const char* to, const char* id, const char* node = 0, const char* cap = 0)

buildDiscoInfo

Build an iq query disco info result from this list

Parameters:
fromThe 'from' attribute
toThe 'to' attribute
idThe 'id' attribute
nodeOptional 'node' attribute
capOptional capability to be set as 'node' suffix

Returns: XmlElement pointer

void  add (XmlElement& xml)

add

Add this list to an xml element

Parameters:
xmlDestination element

void  updateEntityCaps ()

updateEntityCaps

Update the entity capabilities hash

JIDIdentityList m_identities

m_identities

String m_entityCapsHash

m_entityCapsHash


Generated by: paulc on bussard on Tue Apr 12 17:15:21 2011, using kdoc 2.0a54.