#include <icy/symple/presence.h>Inherits:
Message
Symple presence message indicating a peer's online status.
Presence messages carry peer data in the data field. When probe is true the recipient should respond with their own presence.
| Return | Name | Description |
|---|---|---|
Presence | Constructs a presence message with type set to "presence". | |
Presence | Constructs a presence message from a JSON value. | |
Presence | Copy constructor. | |
bool | isProbe | Returns true if this is a presence probe request. Recipients of a probe should send back their own presence. |
void | setProbe | Sets or clears the probe flag on this presence message. |
Presence()Constructs a presence message with type set to "presence".
Presence(const json::Value & root)Constructs a presence message from a JSON value.
root JSON object to initialise from.Presence(const Presence & root)Copy constructor.
root Source presence message.bool isProbe()Returns true if this is a presence probe request. Recipients of a probe should send back their own presence.
void setProbe(bool flag)Sets or clears the probe flag on this presence message.
flag True to mark this as a probe.