A JID identity. More...
#include <xmpputils.h>
Public Types | |
| enum | Category { Account, Client, Component, Gateway, CategoryUnknown } |
| enum | Type { AccountRegistered, ClientPhone, ComponentGeneric, ComponentPresence, GatewayGeneric, TypeUnknown } |
Public Member Functions | |
| JIDIdentity (Category c, Type t, const char *name=0) | |
| virtual | ~JIDIdentity () |
| XMLElement * | toXML () |
| bool | fromXML (const XMLElement *element) |
| virtual const String & | toString () const |
| virtual void * | getObject (const String &name) const |
| void | setName (const char *name) |
Static Public Member Functions | |
| static const char * | categoryText (Category c) |
| static Category | categoryValue (const char *c) |
| static const char * | typeText (Type t) |
| static Type | typeValue (const char *t) |
A JID identity.
This class holds an identity for a JID
| enum Category |
JID category enumeration
| enum Type |
JID type enumeration
| JIDIdentity | ( | Category | c, | |
| Type | t, | |||
| const char * | name = 0 | |||
| ) | [inline] |
Constructor. Build a JID identity
| c | The JID's category | |
| t | The JID's type | |
| name | The name of this identity |
| virtual ~JIDIdentity | ( | ) | [inline, virtual] |
Destructor
| static const char* categoryText | ( | Category | c | ) | [inline, static] |
Lookup for a text associated with a given category
References TelEngine::lookup().
| static Category categoryValue | ( | const char * | c | ) | [inline, static] |
Lookup for a value associated with a given category name
References TelEngine::lookup().
| bool fromXML | ( | const XMLElement * | element | ) |
Build this identity from an XML element
| virtual void* getObject | ( | const String & | name | ) | const [inline, virtual] |
Get a pointer from this object
| name | The requested pointer's name |
Reimplemented from GenObject.
References GenObject::getObject().
| void setName | ( | const char * | name | ) | [inline] |
Set the name of this identity
| name | New identity name |
| virtual const String& toString | ( | ) | const [inline, virtual] |
| XMLElement* toXML | ( | ) |
Build an XML element from this identity
| static const char* typeText | ( | Type | t | ) | [inline, static] |
Lookup for a text associated with a given category type
References TelEngine::lookup().
| static Type typeValue | ( | const char * | t | ) | [inline, static] |
Lookup for a value associated with a given category type
References TelEngine::lookup().
1.6.3