16 #include "delayeddelivery.h"
26 m_stanza( stanza ), m_tag( 0 ), m_delay( delay )
32 m_stanza( 0 ), m_tag( 0 ), m_delay( 0 )
67 Tag* f =
new Tag(
"forwarded" );
79 if( !m_tag || !m_delay )
82 return new Forward(
new Message( m_tag ), static_cast<DelayedDelivery*>( m_delay->
clone() ) );
bool setXmlns(const std::string &xmlns, const std::string &prefix=EmptyString)
This is the base class for XMPP stanza abstractions.
This is an implementation of XEP-0203 (Delayed Delivery).
const std::string & filterString() const
void addChild(Tag *child)
Forward(Stanza *stanza, DelayedDelivery *delay)
An abstraction of a message stanza.
virtual Tag * tag() const
The namespace for the gloox library.
This class abstracts a stanza extension, which is usually an element in a specific namespace...
bool hasAttribute(const std::string &name, const std::string &value=EmptyString) const
virtual Tag * tag() const
virtual Tag * tag() const =0
StanzaExtension * clone() const
const std::string & name() const
const std::string XMLNS_STANZA_FORWARDING
virtual StanzaExtension * clone() const
Tag * findChild(const std::string &name) const
This is an abstraction of an XML element.
const std::string XMLNS_DELAY