#include <presence.h>
Inherits Stanza.
Inheritance diagram for Presence:

Public Types | |
| enum | PresenceType { Available, Chat, Away, DND, XA, Unavailable, Probe, Error, Invalid } |
Public Member Functions | |
| Presence (PresenceType type, const JID &to, const std::string &status=EmptyString, int priority=0, const std::string &xmllang=EmptyString) | |
| virtual | ~Presence () |
| PresenceType | subtype () const |
| const Capabilities * | capabilities () const |
| PresenceType | presence () const |
| void | setPresence (PresenceType type) |
| const std::string | status (const std::string &lang="default") const |
| void | addStatus (const std::string &status, const std::string &lang=EmptyString) |
| void | resetStatus () |
| int | priority () const |
| void | setPriority (int priority) |
| virtual Tag * | tag () const |
Definition at line 32 of file presence.h.
|
|
Describes the different valid presence types.
Definition at line 42 of file presence.h. |
|
||||||||||||||||||||||||
|
Creates a Presence request.
Definition at line 72 of file presence.cpp. |
|
|
Destructor. Definition at line 81 of file presence.cpp. |
|
||||||||||||
|
Adds a (possibly translated) status message.
Definition at line 117 of file presence.h. |
|
|
A convenience function returning the stanza's Capabilities, if any. May be 0.
Definition at line 103 of file presence.cpp. |
|
|
Returns the presence's type.
Definition at line 89 of file presence.h. |
|
|
Returns the presence priority in the legal range: -128 to +127.
Definition at line 131 of file presence.h. |
|
|
Resets the default status message as well as all language-specific ones. Definition at line 86 of file presence.cpp. |
|
|
Sets the presence type.
Definition at line 95 of file presence.h. |
|
|
Sets the priority. Legal range: -128 to +127.
Definition at line 93 of file presence.cpp. |
|
|
Returns the status text of a presence stanza for the given language if available. If the requested language is not available, the default status text (without a xml:lang attribute) will be returned.
Definition at line 106 of file presence.h. |
|
|
Returns the presence's type.
Definition at line 76 of file presence.h. |
|
|
Creates a Tag representation of the Stanza. The Tag is completely independent of the Stanza and will not be updated when the Stanza is modified. Implements Stanza. Definition at line 108 of file presence.cpp. |
1.4.1