|
gloox
1.0.28
|
#include <jinglecontent.h>

Public Types | |
| enum | Creator { CInitiator , CResponder , InvalidCreator } |
| enum | Senders { SInitiator , SResponder , SBoth , SNone , InvalidSender } |
Public Member Functions | |
| Content (const std::string &name, const PluginList &plugins, Creator creator=CInitiator, Senders senders=SBoth, const std::string &disposition="session") | |
| Content (const Tag *tag=0, PluginFactory *factory=0) | |
| Creator | creator () const |
| Senders | senders () const |
| const std::string & | disposition () const |
| const std::string & | name () const |
| virtual | ~Content () |
| virtual const std::string & | filterString () const |
| virtual Tag * | tag () const |
| virtual Plugin * | newInstance (const Tag *tag) const |
| virtual Plugin * | clone () const |
Public Member Functions inherited from Plugin | |
| Plugin (JinglePluginType type) | |
| virtual | ~Plugin () |
| void | addPlugin (const Plugin *plugin) |
| const Plugin * | findPlugin (int type) const |
| template<class T > | |
| const T * | findPlugin (int type) const |
| const PluginList & | plugins () const |
| virtual const StringList | features () const |
| JinglePluginType | pluginType () const |
An abstraction of a Jingle Content Type. This is part of Jingle (XEP-0166).
See Jingle::Session for more info on Jingle.
XEP Version: 1.1
Definition at line 41 of file jinglecontent.h.
| enum Creator |
The original creator of the content type.
| Enumerator | |
|---|---|
| CInitiator | The creator is the initiator of the session. |
| CResponder | The creator is the responder. |
| InvalidCreator | Invalid value. |
Definition at line 47 of file jinglecontent.h.
| enum Senders |
The parties in the session that will be generating content.
Definition at line 57 of file jinglecontent.h.
| Content | ( | const std::string & | name, |
| const PluginList & | plugins, | ||
| Creator | creator = CInitiator, |
||
| Senders | senders = SBoth, |
||
| const std::string & | disposition = "session" |
||
| ) |
Creates a new Content wrapper.
| name | A unique name for the content type. |
| plugins | A list of application formats, transport methods, security preconditions, ... |
| creator | Which party originally generated the content type; the defined values are "SInitiator" and "SResponder". |
| senders | Which parties in the session will be generating content. |
| disposition | How the content definition is to be interpreted by the recipient. The meaning of this attribute matches the "Content-Disposition" header as defined in RFC 2183 and applied to SIP by RFC 3261. |
Definition at line 46 of file jinglecontent.cpp.
| Content | ( | const Tag * | tag = 0, |
| PluginFactory * | factory = 0 |
||
| ) |
Creates a new Content object from the given tag.
| tag | The Tag to parse. |
| factory | A PluginFactory instance to use for embedding plugins. |
Definition at line 54 of file jinglecontent.cpp.
|
virtual |
Virtual destructor.
Definition at line 69 of file jinglecontent.cpp.
|
virtual |
Creates an identical deep copy of the current instance.
Implements Plugin.
Definition at line 97 of file jinglecontent.cpp.
|
inline |
Returns the content's creator.
Definition at line 89 of file jinglecontent.h.
|
inline |
|
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.
Implements Plugin.
Definition at line 73 of file jinglecontent.cpp.
|
inline |
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. |
Implements Plugin.
Definition at line 121 of file jinglecontent.h.
|
inline |
|
virtual |
Returns a Tag representation of the plugin.
Implements Plugin.
Definition at line 79 of file jinglecontent.cpp.