|
|
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:
jid | The JID string |
JabberID (const char* node, const char* domain, const char* resource = 0)
| JabberID |
Constructor. Constructs a JID from user, domain, resource
Parameters:
node | The node |
domain | The domain |
resource | The 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:
d | The 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:
src | The 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:
src | The 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:
src | The string to compare with |
Returns: True if equal
Reimplemented from String.
inline bool operator!= (const JabberID& src)
| operator!= |
[const]
Inequality operator
Parameters:
src | The JID to compare with |
Returns: True if not equal
Reimplemented from String.
inline bool operator!= (const String& src)
| operator!= |
[const]
Inequality operator
Parameters:
src | The 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:
res | The new resource part of the JID |
void set (const char* jid)
| set |
Set the data
Parameters:
jid | The JID string to assign |
void set (const char* node, const char* domain, const char* resource = 0)
| set |
Set the data
Parameters:
node | The node |
domain | The domain |
resource | The resource |
bool valid (const String& value)
| valid |
[static]
Check if the given string contains valid characters
Parameters:
value | The 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. |