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" );
73 Tag* tmp = m_stanza->
tag();
74 if( tmp->
name() ==
"message" )
85 if( !m_tag || !m_delay )
This is an implementation of XEP-0203 (Delayed Delivery).
virtual StanzaExtension * clone() const
virtual Tag * tag() const
StanzaExtension * clone() const
const std::string & filterString() const
Forward(Stanza *stanza, DelayedDelivery *delay)
virtual Tag * tag() const
An abstraction of a message stanza.
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
This is the base class for XMPP stanza abstractions.
virtual Tag * tag() const =0
This is an abstraction of an XML element.
Tag * findChild(const std::string &name) const
void addChild(Tag *child)
bool hasAttribute(const std::string &name, const std::string &value=EmptyString) const
const std::string & name() const
bool setXmlns(const std::string &xmlns, const std::string &prefix=EmptyString)
The namespace for the gloox library.
const std::string XMLNS_DELAY
const std::string XMLNS_STANZA_FORWARDING
const std::string XMLNS_CLIENT