|
gloox
1.0.28
|
#include <jinglesession.h>

Public Types | |
| enum | Reasons { AlternativeSession , Busy , Cancel , ConnectivityError , Decline , Expired , FailedApplication , FailedTransport , GeneralError , Gone , IncompatibleParameters , MediaError , SecurityError , Success , Timeout , UnsupportedApplications , UnsupportedTransports , InvalidReason } |
Public Member Functions | |
| Reason (Reasons reason, const std::string &sid=EmptyString, const std::string &text=EmptyString) | |
| Reason (const Tag *tag=0) | |
| virtual | ~Reason () |
| Reasons | reason () const |
| const std::string & | sid () const |
| const std::string & | text () const |
| 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 (XEP-0166) session terminate reason.
XEP Version: 1.1
Definition at line 104 of file jinglesession.h.
| enum Reasons |
Defined reasons for terminating a Jingle Session.
| Enumerator | |
|---|---|
| AlternativeSession | An alternative session exists that should be used. |
| Busy | The terminating party is busy. |
| Cancel | The session has been canceled. |
| ConnectivityError | Connectivity error. |
| Decline | The terminating party formally declines the request. |
| Expired | The session has expired. |
| FailedApplication | Application type setup failed. |
| FailedTransport | Transport setup has failed. |
| GeneralError | General error. |
| Gone | Participant went away. |
| IncompatibleParameters | Offered or negotiated application type parameters not supported. |
| MediaError | Media error. |
| SecurityError | Security error. |
| Success | Session terminated after successful call. |
| Timeout | A timeout occured. |
| UnsupportedApplications | The terminating party does not support any of the offered application formats. |
| UnsupportedTransports | The terminating party does not support any of the offered transport methods. |
| InvalidReason | Invalid reason. |
Definition at line 110 of file jinglesession.h.
| Reason | ( | Reasons | reason, |
| const std::string & | sid = EmptyString, |
||
| const std::string & | text = EmptyString |
||
| ) |
Constructor.
| reason | The reason for the termination of the session. |
| sid | An optional session ID (only used if reason is AlternativeSession). |
| text | An optional human-readable text explaining the reason for the session termination. |
Definition at line 78 of file jinglesession.cpp.
Constructs a new element by parsing the given Tag.
| tag | A tag to parse. |
Definition at line 85 of file jinglesession.cpp.
|
virtual |
Virtual destructor.
Definition at line 102 of file jinglesession.cpp.
|
virtual |
Creates an identical deep copy of the current instance.
Implements Plugin.
Definition at line 128 of file jinglesession.cpp.
|
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 106 of file jinglesession.cpp.
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 179 of file jinglesession.h.
|
inline |
Returns the reason for the session termination.
Definition at line 156 of file jinglesession.h.
|
inline |
Returns the session ID of the alternate session, if given (only applicable if reason() returns AlternativeSession).
Definition at line 163 of file jinglesession.h.
|
virtual |
Returns a Tag representation of the plugin.
Implements Plugin.
Definition at line 112 of file jinglesession.cpp.
|
inline |
Returns the content of an optional, human-readable <text> element.
Definition at line 170 of file jinglesession.h.