gloox  0.9.9.12
Public Member Functions | List of all members
XDelayedDelivery Class Reference

#include <xdelayeddelivery.h>

Inheritance diagram for XDelayedDelivery:
Inheritance graph
[legend]
Collaboration diagram for XDelayedDelivery:
Collaboration graph
[legend]

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 JIDfrom () const
const std::string & reason () const
virtual Tagtag () const
- Public Member Functions inherited from StanzaExtension
 StanzaExtension (StanzaExtensionType type)
virtual ~StanzaExtension ()
StanzaExtensionType type () const

Detailed Description

This is an implementation of XEP-0091 (Delayed Delivery).

XEP Version: 1.2

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
0.9

Definition at line 34 of file xdelayeddelivery.h.

Constructor & Destructor Documentation

XDelayedDelivery ( const JID from,
const std::string  stamp,
const std::string &  reason 
)

Constructs a new object and fills it according to the parameters.

Parameters
fromThe JID of the original sender or the entity that delayed the sending.
stampThe datetime stamp of the original send.
reasonA 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.

Parameters
tagThe Tag to parse.

Definition at line 28 of file xdelayeddelivery.cpp.

~XDelayedDelivery ( )
virtual

Virtual Destructor.

Definition at line 41 of file xdelayeddelivery.cpp.

Member Function Documentation

const JID& from ( ) const
inline

Returns the JID of the original sender of the stanza or of the entity that delayed the sending.

Returns
The JID.

Definition at line 70 of file xdelayeddelivery.h.

const std::string& reason ( ) const
inline

Returns a natural language reason for the delay.

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.

Returns
The original datetime.

Definition at line 63 of file xdelayeddelivery.h.

Tag * tag ( ) const
virtual

Returns a Tag representation of the extension.

Returns
A Tag representation of the extension.

Implements StanzaExtension.

Definition at line 45 of file xdelayeddelivery.cpp.


The documentation for this class was generated from the following files: