Yate
Public Member Functions | Static Public Member Functions | Public Attributes
JIDIdentity Class Reference

A JID identity. More...

#include <xmpputils.h>

Inheritance diagram for JIDIdentity:
GenObject

List of all members.

Public Member Functions

 JIDIdentity (const char *c, const char *t, const char *name=0)
 JIDIdentity (XmlElement *identity)
XmlElementtoXml () const
void fromXml (XmlElement *identity)

Static Public Member Functions

static XmlElementcreateIdentity (const char *category, const char *type, const char *name)

Public Attributes

String m_category
String m_type
String m_name

Detailed Description

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


Constructor & Destructor Documentation

JIDIdentity ( const char *  c,
const char *  t,
const char *  name = 0 
) [inline]

Constructor. Build a JID identity

Parameters:
cThe JID's category
tThe JID's type
nameOptional identity (JID) name
JIDIdentity ( XmlElement identity) [inline]

Constructor. Build a JID identity from xml

Parameters:
identityThe identity element

Member Function Documentation

static XmlElement* createIdentity ( const char *  category,
const char *  type,
const char *  name 
) [static]

Create an 'identity' element

Parameters:
categoryThe 'category' attribute
typeThe 'type' attribute
nameThe 'name' attribute
Returns:
A valid XmlElement pointer
void fromXml ( XmlElement identity)

Update this identity from an XML element

Parameters:
identityThe source element
XmlElement* toXml ( ) const [inline]

Build an XML element from this identity

Returns:
XmlElement pointer or 0 if category or type are empty

The documentation for this class was generated from the following file: