gloox
1.0.27
|
#include <forward.h>
Public Member Functions | |
Forward (Stanza *stanza, DelayedDelivery *delay) | |
Forward (const Tag *tag=0) | |
virtual | ~Forward () |
const DelayedDelivery * | when () const |
virtual Stanza * | embeddedStanza () const |
virtual Tag * | embeddedTag () const |
virtual Tag * | tag () const |
const std::string & | filterString () const |
StanzaExtension * | newInstance (const Tag *tag) const |
StanzaExtension * | clone () const |
Public Member Functions inherited from StanzaExtension | |
StanzaExtension (int type) | |
virtual | ~StanzaExtension () |
int | extensionType () const |
This is an implementation of Stanza Forwarding (XEP-0297) as a StanzaExtension.
XEP-Version: 0.5
Forward | ( | Stanza * | stanza, |
DelayedDelivery * | delay | ||
) |
Creates a forwarding StanzaExtension, embedding the given Stanza and DelayedDelivery objects.
stanza | The forwarded Stanza. This Forward instance will own the Stanza object. |
delay | The date/time the forwarded stanza was received at by the forwarder. This Forward instance will own the DelayedDelivery object. |
Definition at line 24 of file forward.cpp.
Creates a forwarding Stanza from the given Tag. The original Tag will be ripped off. If a valid Stanza is conatined (as a child) in the Tag it will be parsed, too. It can then be accessed through embeddedStanza(). The Tag that the Stanza was built from is available through embeddedTag().
tag | The Tag to parse. |
Definition at line 30 of file forward.cpp.
|
virtual |
Virtual destructor.
Definition at line 47 of file forward.cpp.
|
virtual |
Returns an identical copy of the current StanzaExtension.
Implements StanzaExtension.
Definition at line 83 of file forward.cpp.
|
inlinevirtual |
This function returns the embedded Stanza, if any. You only have to reimplement it if your protocol flow contains embedded Stanzas.
Reimplemented from StanzaExtension.
|
inlinevirtual |
|
virtual |
Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.
Implements StanzaExtension.
Definition at line 54 of file forward.cpp.
|
inlinevirtual |
Returns a new Instance of the derived type. Usually, for a derived class FooExtension, the implementation of this function looks like:
Implements StanzaExtension.
|
virtual |
Returns a Tag representation of the extension.
Implements StanzaExtension.
Definition at line 62 of file forward.cpp.
|
inline |
This function returns a pointer to a DelayedDelivery StanzaExtension which indicates when the forwarder originally received the forwarded stanza.