gloox
1.1-svn
|
#include <jinglesession.h>
Public Types | |
enum | Reasons { AlternativeSession, Busy, Cancel, ConnectivityError, Decline, Expired, GeneralError, Gone, 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 * | clone () const |
Public Member Functions inherited from Plugin | |
virtual | ~Plugin () |
An abstraction of a terminate reason.
XEP Version: 0.33
Definition at line 105 of file jinglesession.h.
enum Reasons |
Defied reasons for terminating a Jingle Session.
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. |
GeneralError |
General error. |
Gone |
Participant went away. |
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 111 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 77 of file jinglesession.cpp.
Constructs a new element by parsing the given Tag.
tag | A tag to parse. |
Definition at line 84 of file jinglesession.cpp.
|
inlinevirtual |
Virtual destructor.
Definition at line 148 of file jinglesession.h.
|
virtual |
Creates an identical deep copy of the current instance.
Implements Plugin.
Definition at line 122 of file jinglesession.cpp.
|
virtual |
Returns an XPath expression that describes a path to child elements of a jingle element that a plugin handles.
Implements Plugin.
Definition at line 100 of file jinglesession.cpp.
|
inline |
Returns the reason for the session termination.
Definition at line 154 of file jinglesession.h.
|
inline |
Returns the session ID of the alternate session, if given (only applicable if reason() returns AlternativeSession).
Definition at line 161 of file jinglesession.h.
|
virtual |
Returns a Tag representation of the plugin.
Implements Plugin.
Definition at line 106 of file jinglesession.cpp.
|
inline |
Returns the content of an optional, human-readable <text> element.
Definition at line 168 of file jinglesession.h.