class JIDIdentity
|
A JID identity. More... |
|
|
Public Methods
- inline JIDIdentity (const char* c, const char* t, const char* name = 0)
- inline JIDIdentity (XmlElement* identity)
- inline XmlElement* toXml () const
- void fromXml (XmlElement* identity)
Public Static Methods
- static XmlElement* createIdentity (const char* category,
const char* type, const char* name)
Public Members
This class holds an identity for a JID
See http://xmpp.org/registrar/disco-categories.html for identity categories
and associated types
inline JIDIdentity (const char* c, const char* t, const char* name = 0)
| JIDIdentity |
Constructor. Build a JID identity
Parameters:
c | The JID's category
|
t | The JID's type
|
name | Optional identity (JID) name
|
inline JIDIdentity (XmlElement* identity)
| JIDIdentity |
Constructor. Build a JID identity from xml
Parameters:
identity | The identity element
|
inline XmlElement* toXml ()
| toXml |
[const]
Build an XML element from this identity
Returns: XmlElement pointer or 0 if category or type are empty
void fromXml (XmlElement* identity)
| fromXml |
Update this identity from an XML element
Parameters:
identity | The source element
|
XmlElement* createIdentity (const char* category,
const char* type, const char* name)
| createIdentity |
[static]
Create an 'identity' element
Parameters:
category | The 'category' attribute
|
type | The 'type' attribute
|
name | The 'name' attribute
|
Returns: A valid XmlElement pointer
String m_category
| m_category |
Generated by: paulc on bussard on Fri Apr 1 18:17:10 2011, using kdoc 2.0a54. |