This is an implementation of XEP-0091 (Delayed Delivery). More...
#include <xdelayeddelivery.h>
Inherits gloox::StanzaExtension.
Public Member Functions | |
GLOOX_DEPRECATED_CTOR | XDelayedDelivery (const JID &from, const std::string stamp, const std::string &reason) |
XDelayedDelivery (Tag *tag) | |
virtual | ~XDelayedDelivery () |
const std::string & | stamp () const |
const JID & | from () const |
const std::string & | reason () const |
virtual Tag * | tag () const |
This is an implementation of XEP-0091 (Delayed Delivery).
XEP Version: 1.2
Definition at line 34 of file xdelayeddelivery.h.
XDelayedDelivery | ( | const JID & | from, | |
const std::string | stamp, | |||
const std::string & | reason | |||
) |
Constructs a new object and fills it according to the parameters.
from | The JID of the original sender or the entity that delayed the sending. | |
stamp | The datetime stamp of the original send. | |
reason | A natural language reason for the delay. |
Definition at line 21 of file xdelayeddelivery.cpp.
XDelayedDelivery | ( | Tag * | tag | ) |
Constructs a new object from the given Tag.
tag | The Tag to parse. |
Definition at line 28 of file xdelayeddelivery.cpp.
~XDelayedDelivery | ( | ) | [virtual] |
Virtual Destructor.
Definition at line 41 of file xdelayeddelivery.cpp.
const JID& from | ( | ) | const [inline] |
Returns the JID of the original sender of the stanza or of the entity that delayed the sending.
Definition at line 70 of file xdelayeddelivery.h.
const std::string& reason | ( | ) | const [inline] |
Returns a natural language reason for the delay.
Definition at line 76 of file xdelayeddelivery.h.
const std::string& stamp | ( | ) | const [inline] |
Returns the datetime when the stanza was originally sent. The format SHOULD be "CCYYMMDDThh:mm:ss" and is to be understood as UTC.
Definition at line 63 of file xdelayeddelivery.h.
Tag * tag | ( | ) | const [virtual] |
Returns a Tag representation of the extension.
Implements StanzaExtension.
Definition at line 45 of file xdelayeddelivery.cpp.