XDelayedDelivery Class Reference

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

#include <xdelayeddelivery.h>

Inherits gloox::StanzaExtension.

Collaboration diagram for XDelayedDelivery:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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

XEP Version: 1.2

Author:
Jakob Schroeter <js@camaya.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:
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.

Parameters:
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.


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:

Generated on Mon Dec 7 13:28:36 2009 for gloox by  doxygen 1.6.1