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 )
88 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 XMLNS_CLIENT
const std::string & name() const
Tag * findChild(const std::string &name) const
const std::string & filterString() const
virtual StanzaExtension * clone() const
void addChild(Tag *child)
Forward(Stanza *stanza, DelayedDelivery *delay)
virtual Tag * tag() const
An abstraction of a message stanza.
StanzaExtension * clone() const
The namespace for the gloox library.
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
virtual Tag * tag() const =0
virtual Tag * tag() const
const std::string XMLNS_STANZA_FORWARDING
bool hasAttribute(const std::string &name, const std::string &value=EmptyString) const
This is an abstraction of an XML element.
const std::string XMLNS_DELAY