16#include "delayeddelivery.h"
26 m_stanza( stanza ), m_tag( 0 ), m_delay( delay )
32 m_stanza( 0 ), m_tag( 0 ), m_delay( 0 )
39 Tag* m =
tag->findChild(
"message" );
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).
StanzaExtension * clone() const
const std::string & filterString() const
Forward(Stanza *stanza, DelayedDelivery *delay)
virtual Tag * tag() const
An abstraction of a message stanza.
StanzaExtension(int type)
This is the base class for XMPP stanza abstractions.
This is an abstraction of an XML element.
const std::string & name() const
void addChild(Tag *child)
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