14#include "delayeddelivery.h"
24 if( !m_stamp.empty() )
32 if( !
tag || !
tag->hasAttribute(
"stamp" ) )
39 m_reason =
tag->cdata();
40 m_stamp =
tag->findAttribute(
"stamp" );
41 m_from =
tag->findAttribute(
"from" );
51 static const std::string filter =
64 Tag* t =
new Tag(
"delay" );
68 if( !m_stamp.empty() )
70 if( !m_reason.empty() )
virtual ~DelayedDelivery()
DelayedDelivery(const JID &from, const std::string stamp, const std::string &reason="")
const std::string & stamp() const
virtual const std::string & filterString() const
const std::string & reason() const
virtual Tag * tag() const
StanzaExtension(int type)
This is an abstraction of an XML element.
bool setCData(const std::string &cdata)
bool addAttribute(Attribute *attr)
The namespace for the gloox library.
const std::string XMLNS_DELAY
const std::string XMLNS_X_DELAY