gloox
1.0.9
|
#include <jingleplugin.h>
Public Member Functions | |
Plugin () | |
virtual | ~Plugin () |
void | addPlugin (const Plugin *plugin) |
const PluginList & | plugins () const |
virtual const StringList | features () const |
virtual const std::string & | filterString () const =0 |
virtual Tag * | tag () const =0 |
virtual Plugin * | newInstance (const Tag *tag) const =0 |
virtual Plugin * | clone () const =0 |
An abstraction of a Jingle plugin. This is part of Jingle (XEP-0166) et al.
This is the base class for Content and all other pluggable Jingle-related containers, e.g. session information, such as the 'ringing' info in Jingle Audio, or Jingle DTMF, etc.
A Plugin abstracts the XML that gets sent and received as part of a Jingle session negotiation.
XEP Version: 1.1
Definition at line 52 of file jingleplugin.h.
|
inline |
Simple initializer.
Definition at line 61 of file jingleplugin.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 66 of file jingleplugin.h.
|
inline |
Adds another Plugin as child.
plugin | A plugin to be embedded. Will be owned by this instance and deleted in the destructor. |
Definition at line 72 of file jingleplugin.h.
|
pure virtual |
Creates an identical deep copy of the current instance.
Implemented in Session::Reason, ICEUDP, Content, and FileTransfer.
|
inlinevirtual |
Reimplement this function if your plugin wants to add anything to the list of features announced via Disco.
Reimplemented in ICEUDP, and FileTransfer.
Definition at line 85 of file jingleplugin.h.
|
pure virtual |
Returns an XPath expression that describes a path to child elements of a jingle element that the plugin handles. The result should be a single Tag.
Implemented in Session::Reason, ICEUDP, Content, and FileTransfer.
Returns a new instance of the same plugin type, based on the Tag provided.
tag | The Tag to parse and create a new instance from. |
Implemented in Session::Reason, ICEUDP, Content, and FileTransfer.
|
inline |
Returns a reference to a list of embedded plugins.
Definition at line 78 of file jingleplugin.h.
|
pure virtual |
Returns a Tag representation of the plugin.
Implemented in Session::Reason, ICEUDP, Content, and FileTransfer.