class JIDIdentity

A JID identity. More...

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

Public Methods

Public Static Methods

Public Members


Detailed Description

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:
cThe JID's category
tThe JID's type
nameOptional identity (JID) name

inline  JIDIdentity (XmlElement* identity)

JIDIdentity

Constructor. Build a JID identity from xml

Parameters:
identityThe 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:
identityThe source element

XmlElement*  createIdentity (const char* category, const char* type, const char* name)

createIdentity

[static]

Create an 'identity' element

Parameters:
categoryThe 'category' attribute
typeThe 'type' attribute
nameThe 'name' attribute

Returns: A valid XmlElement pointer

String m_category

m_category

String m_type

m_type

String m_name

m_name


Generated by: paulc on bussard on Tue Mar 8 18:42:27 2011, using kdoc 2.0a54.