#include <xmpp.h>
List of all members.
Public Types |
enum | PresenceType {
Available,
Unavailable,
Subscribe,
Subscribed,
Unsubscribe,
Unsubscribed,
Probe,
Error,
Unknown = 999
} |
enum | ShowType {
Online,
Away,
Chat,
DND,
XA,
Other = 999
} |
Public Member Functions |
| Presence () |
| Construct a new empty presence.
|
| Presence (PXML &pdu) |
| Construct a presence from a (received) xml PDU.
|
| Presence (PXML *pdu) |
virtual PBoolean | IsValid () const |
virtual PresenceType | GetType (PString *typeName=0) const |
virtual ShowType | GetShow (PString *showName=0) const |
virtual BYTE | GetPriority () const |
virtual PString | GetStatus (const PString &lang=PString::Empty()) |
| Get the status for the specified language.
|
virtual PXMLElement * | GetStatusElement (const PString &lang=PString::Empty()) |
virtual void | SetType (PresenceType type) |
virtual void | SetType (const PString &type) |
virtual void | SetShow (ShowType show) |
virtual void | SetShow (const PString &show) |
virtual void | SetPriority (BYTE priority) |
virtual void | SetStatus (const PString &status, const PString &lang=PString::Empty()) |
Static Public Member Functions |
static const PCaselessString & | TypeTag () |
| Various constant strings.
|
static const PCaselessString & | ShowTag () |
static const PCaselessString & | StatusTag () |
static const PCaselessString & | PriorityTag () |
static PBoolean | IsValid (const PXML *pdu) |
Member Enumeration Documentation
- Enumerator:
Available |
|
Unavailable |
|
Subscribe |
|
Subscribed |
|
Unsubscribe |
|
Unsubscribed |
|
Probe |
|
Error |
|
Unknown |
|
- Enumerator:
Online |
|
Away |
|
Chat |
|
DND |
|
XA |
|
Other |
|
Constructor & Destructor Documentation
Construct a new empty presence.
Construct a presence from a (received) xml PDU.
The root of the pdu MUST be a presence stanza. NOTE: the root of the pdu is cloned.
Member Function Documentation
Get the status for the specified language.
The default status (if any) is returned in case no language is specified or a matching one cannot be found
Various constant strings.
The documentation for this class was generated from the following file: