gloox
1.0
|
#include <oob.h>
Public Member Functions | |
OOB (const std::string &url, const std::string &description, bool iqext) | |
OOB (const Tag *tag) | |
virtual | ~OOB () |
const std::string & | url () const |
const std::string & | desc () const |
virtual const std::string & | filterString () const |
virtual StanzaExtension * | newInstance (const Tag *tag) const |
Tag * | tag () const |
virtual StanzaExtension * | clone () const |
This is an abstraction of a jabber:x:oob namespace element or a jabber:iq:oob namespace element as specified in XEP-0066.
XEP version: 1.5
OOB | ( | const std::string & | url, |
const std::string & | description, | ||
bool | iqext | ||
) |
Constructs an OOB StanzaExtension from teh given URL and description.
url | The out-of-band URL. |
description | The URL's optional description. |
iqext | Whether this object extends an IQ or a Presence/Message stanza (results in either jabber:iq:oob or jabber:x:oob namespaced element). |
virtual StanzaExtension* clone | ( | ) | const [inline, virtual] |
Returns an identical copy of the current StanzaExtension.
Implements StanzaExtension.
const std::string& desc | ( | ) | const [inline] |
const std::string & filterString | ( | ) | const [virtual] |
Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.
Implements StanzaExtension.
virtual StanzaExtension* newInstance | ( | const Tag * | tag | ) | const [inline, virtual] |
Returns a new Instance of the derived type. Usually, for a derived class FooExtension, the implementation of this function looks like:
StanzaExtension* FooExtension::newInstance( const Tag* tag ) const { return new FooExtension( tag ); }
Implements StanzaExtension.
Returns a Tag representation of the extension.
Implements StanzaExtension.
const std::string& url | ( | ) | const [inline] |