|
Yate
|
A feature. More...
#include <xmpputils.h>
Public Member Functions | |
| XMPPFeature (int xml, int feature, bool required=false) | |
| XMPPFeature (int xml, const char *feature, bool required=false) | |
| XMPPFeature (int feature) | |
| XMPPFeature (const char *feature) | |
| virtual | ~XMPPFeature () |
| bool | required () const |
| virtual XmlElement * | build (bool addReq=true) |
| virtual XmlElement * | buildFeature () |
| void | addReqChild (XmlElement &xml) |
Static Public Member Functions | |
| static XMPPFeature * | fromStreamFeature (XmlElement &xml) |
A feature.
This class holds an XMPP feature
| XMPPFeature | ( | int | xml, |
| int | feature, | ||
| bool | required = false |
||
| ) | [inline] |
Constructor
| xml | XML element tag as enumeration |
| feature | The feature (namespace) index |
| required | True if this feature is required |
| XMPPFeature | ( | int | xml, |
| const char * | feature, | ||
| bool | required = false |
||
| ) | [inline] |
Constructor
| xml | XML element tag as enumeration |
| feature | The feature name |
| required | True if this feature is required |
| XMPPFeature | ( | int | feature | ) | [inline] |
Constructor. Build from feature index
| feature | The feature |
| XMPPFeature | ( | const char * | feature | ) | [inline] |
Constructor. Build from feature name
| feature | The feature |
| virtual ~XMPPFeature | ( | ) | [inline, virtual] |
Destructor
| void addReqChild | ( | XmlElement & | xml | ) |
Add a required/optional child to an element
| xml | Destination element |
| virtual XmlElement* build | ( | bool | addReq = true | ) | [virtual] |
Build an xml element from this feature
| addReq | True to add the required/optional child |
Reimplemented in XMPPFeatureCompress, and XMPPFeatureSasl.
| virtual XmlElement* buildFeature | ( | ) | [virtual] |
Build a feature element from this one
| static XMPPFeature* fromStreamFeature | ( | XmlElement & | xml | ) | [static] |
Build a feature from a stream:features child
| xml | The feature element to parse |
| bool required | ( | ) | const [inline] |
Check if this feature is a required one
1.7.6.1