class JabberID

A Jabber ID. More...

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

Public Methods

Public Static Methods

Public Members


Detailed Description

This class holds a Jabber ID in form "node@domain/resource" or "node@domain"

inline  JabberID ()

JabberID

Constructor

inline  JabberID (const char* jid)

JabberID

Constructor. Constructs a JID from a given string

Parameters:
jidThe JID string

 JabberID (const char* node, const char* domain, const char* resource = 0)

JabberID

Constructor. Constructs a JID from user, domain, resource

Parameters:
nodeThe node
domainThe domain
resourceThe resource

inline const String&  node ()

node

[const]

Get the node part of the JID

Returns: The node part of the JID

inline const String&  bare ()

bare

[const]

Get the bare JID: "node@domain"

Returns: The bare JID

inline const String&  domain ()

domain

[const]

Get the domain part of the JID

Returns: The domain part of the JID

inline void  domain (const char* d)

domain

Set the domain part of the JID.

Parameters:
dThe new domain part of the JID.

inline const String&  resource ()

resource

[const]

Get the resource part of the JID

Returns: The resource part of the JID

inline bool  isFull ()

isFull

[const]

Check if this is a full JID

Returns: True if this is a full JID

inline bool  match (const JabberID& src)

match

[const]

Try to match another JID to this one. If src has a resource compare it too (case sensitive). Otherwise compare just the bare JID (case insensitive)

Parameters:
srcThe JID to match

Returns: True if matched

inline bool  operator== (const JabberID& src)

operator==

[const]

Equality operator. Do a case senitive resource comparison and a case insensitive bare jid comparison

Parameters:
srcThe JID to compare with

Returns: True if equal

Reimplemented from String.

inline bool  operator== (const String& src)

operator==

[const]

Equality operator. Build a temporary JID and compare with it

Parameters:
srcThe string to compare with

Returns: True if equal

Reimplemented from String.

inline bool  operator!= (const JabberID& src)

operator!=

[const]

Inequality operator

Parameters:
srcThe JID to compare with

Returns: True if not equal

Reimplemented from String.

inline bool  operator!= (const String& src)

operator!=

[const]

Inequality operator

Parameters:
srcThe string to compare with

Returns: True if not equal

Reimplemented from String.

inline void  resource (const char* res)

resource

Set the resource part of the JID

Parameters:
resThe new resource part of the JID

void  set (const char* jid)

set

Set the data

Parameters:
jidThe JID string to assign

void  set (const char* node, const char* domain, const char* resource = 0)

set

Set the data

Parameters:
nodeThe node
domainThe domain
resourceThe resource

bool  valid (const String& value)

valid

[static]

Check if the given string contains valid characters

Parameters:
valueThe string to check

Returns: True if value is valid or 0. False if value is a non empty invalid string

static Regexp s_regExpValid

s_regExpValid


Generated by: paulc on bussard on Mon Mar 8 12:18:15 2010, using kdoc 2.0a54.