A JID identity.
More...
#include <xmpputils.h>
A JID identity.
This class holds an identity for a JID See http://xmpp.org/registrar/disco-categories.html for identity categories and associated types
◆ JIDIdentity() [1/2]
| JIDIdentity |
( |
const char * | c, |
|
|
const char * | t, |
|
|
const char * | name = 0 ) |
|
inline |
Constructor. Build a JID identity
- Parameters
-
| c | The JID's category |
| t | The JID's type |
| name | Optional identity (JID) name |
◆ JIDIdentity() [2/2]
Constructor. Build a JID identity from xml
- Parameters
-
| identity | The identity element |
References fromXml().
◆ createIdentity()
| static XmlElement * createIdentity |
( |
const char * | category, |
|
|
const char * | type, |
|
|
const char * | name ) |
|
static |
Create an 'identity' element
- Parameters
-
| category | The 'category' attribute |
| type | The 'type' attribute |
| name | The 'name' attribute |
- Returns
- A valid XmlElement pointer
Referenced by toXml().
◆ fromXml()
| void fromXml |
( |
XmlElement * | identity | ) |
|
Update this identity from an XML element
- Parameters
-
| identity | The source element |
Referenced by JIDIdentity().
◆ toXml()
| XmlElement * toXml |
( |
| ) |
const |
|
inline |
Build an XML element from this identity
- Returns
- XmlElement pointer or 0 if category or type are empty
References createIdentity().
The documentation for this class was generated from the following file: