|
Yate
|
A Jingle session content. More...
#include <yatejingle.h>
Public Types | |
| enum | Type { Unknown = -1 , UnknownFileTransfer = -2 , RtpIceUdp = 1 , RtpRawUdp , RtpP2P , RtpGoogleRawUdp , FileBSBOffer , FileBSBRequest } |
| enum | Senders { SendUnknown = 0 , SendBoth = 1 , SendInitiator = 2 , SendResponder = 3 } |
| enum | Creator { CreatorUnknown = 0 , CreatorInitiator = 1 , CreatorResponder = 2 } |
Public Member Functions | |
| JGSessionContent (Type t, const char *name, Senders senders, Creator creator, const char *disposition=0) | |
| Type | type () const |
| Senders | senders () const |
| Creator | creator () const |
| bool | isValidAudio () const |
| virtual const String & | toString () const |
| bool | isSession () const |
| bool | isEarlyMedia () const |
| void | setEarlyMedia () |
| XmlElement * | toXml (bool minimum, bool addDesc, bool addTrans, bool addCandidates, bool addAuth) const |
Public Member Functions inherited from RefObject | |
| RefObject () | |
| virtual | ~RefObject () |
| virtual void * | getObject (const String &name) const |
| virtual bool | alive () const |
| bool | ref () |
| bool | deref () |
| int | refcount () const |
| virtual void | destruct () |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Static Public Member Functions | |
| static JGSessionContent * | fromXml (XmlElement *xml, XMPPError::Type &err, String &error) |
Static Public Member Functions inherited from RefObject | |
| static bool | alive (const RefObject *obj) |
| static bool | efficientIncDec () |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Public Attributes | |
| JGRtpMediaList | m_rtpMedia |
| JGRtpCandidates | m_rtpLocalCandidates |
| JGRtpCandidates | m_rtpRemoteCandidates |
| NamedList | m_fileTransfer |
Static Public Attributes | |
| static const TokenDict | s_senders [] |
| static const TokenDict | s_creator [] |
Additional Inherited Members | |
Protected Member Functions inherited from RefObject | |
| virtual void | zeroRefs () |
| bool | resurrect () |
| virtual void | destroyed () |
A Jingle session content.
This class holds a Jingle content negotiated during a session It can be built from a received xml element and it can build an xml element from itself
| enum Creator |
Enumeration values for the 'creator' attribute (required)
| enum Senders |
Enumeration values for the 'senders' attribute (required)
| enum Type |
Enumeration of content type
| JGSessionContent | ( | Type | t, |
| const char * | name, | ||
| Senders | senders, | ||
| Creator | creator, | ||
| const char * | disposition = 0 ) |
|
inline |
|
static |
Decode 'content' element attributes
| xml | The XML element |
| err | The error on failure |
| error | Error text to be sent on failure |
References JGSessionContent().
|
inline |
Check if the content disposition is early media
|
inline |
Check if the content disposition is session XEP-0166: true if disposition is missing
|
inline |
Check if this content is a valid audio one: it's media list type is Audio and the payload list is not empty
References m_rtpMedia.
|
inline |
|
inline |
Set this content's disposition to early media
|
inlinevirtual |
Get the name of this content
Reimplemented from GenObject.
| XmlElement * toXml | ( | bool | minimum, |
| bool | addDesc, | ||
| bool | addTrans, | ||
| bool | addCandidates, | ||
| bool | addAuth ) const |
Build a 'content' XML element from this object
| minimum | Minimum data (only creator and name) |
| addDesc | True to add the description child |
| addTrans | True to add the transport child |
| addCandidates | True to add the transport candidate children |
| addAuth | RtpIceUdp only: add auth data |
|
inline |
Get the content type
| JGRtpCandidates m_rtpLocalCandidates |
The RTP local candidates
| JGRtpMediaList m_rtpMedia |
The RTP media description if used
Referenced by isValidAudio().
| JGRtpCandidates m_rtpRemoteCandidates |
The RTP remote candidates