|
Yate
|
A Jingle data payload. More...
#include <yatejingle.h>
Public Member Functions | |
| JGRtpMedia (const char *id, const char *name, const char *clockrate, const char *synonym, const char *channels=0, const char *pTime=0, const char *maxPTime=0, const char *bitRate=0) | |
| JGRtpMedia (XmlElement *xml) | |
| JGRtpMedia (const JGRtpMedia &src) | |
| void | set (const char *id, const char *name, const char *clockrate, const char *synonym=0, const char *channels=0, const char *pTime=0, const char *maxPTime=0, const char *bitRate=0) |
| virtual const String & | toString () const |
| XmlElement * | toXml () const |
| void | fromXml (XmlElement *xml) |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | toString () const |
| virtual const String & | traceId () const |
| virtual void * | getObject (const String &name) const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Public Attributes | |
| String | m_id |
| String | m_name |
| String | m_clockrate |
| String | m_synonym |
| String | m_channels |
| String | m_pTime |
| String | m_maxPTime |
| String | m_bitRate |
| NamedList | m_params |
Additional Inherited Members | |
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 () |
A Jingle data payload.
This class holds a Jingle data payload description
|
inline |
Constructor. Fill this object from the given attributes
| id | The 'id' attribute |
| name | The 'name' attribute |
| clockrate | The 'clockrate' attribute |
| synonym | Application synonym for this payload |
| channels | Optional 'channels' attribute (the number of channels) |
| pTime | Optional "ptime" attribute (packet time) |
| maxPTime | Optional "maxptime" attribute (maximum packet time) |
| bitRate | Optional "bitrate" attribute |
References JGRtpMedia::set().
|
inline |
Constructor. Fill this object from an XML element
| xml | The element to fill from |
References JGRtpMedia::fromXml().
|
inline |
Copy constructor
References JGRtpMedia::m_bitRate, JGRtpMedia::m_channels, JGRtpMedia::m_clockrate, JGRtpMedia::m_id, JGRtpMedia::m_maxPTime, JGRtpMedia::m_name, JGRtpMedia::m_params, JGRtpMedia::m_pTime, JGRtpMedia::m_synonym, and JGRtpMedia::set().
| void fromXml | ( | XmlElement * | xml | ) |
Fill this object from a given element
| xml | The element |
Referenced by JGRtpMedia::JGRtpMedia().
|
inline |
Set the data
| id | The 'id' attribute |
| name | The 'name' attribute |
| clockrate | The 'clockrate' attribute |
| synonym | Application synonym for this payload |
| channels | Optional 'channels' attribute (the number of channels) |
| pTime | Optional "ptime" attribute (packet time) |
| maxPTime | Optional "maxptime" attribute (maximum packet time) |
| bitRate | Optional "bitrate" attribute |
References NamedList::clearParams(), JGRtpMedia::m_bitRate, JGRtpMedia::m_channels, JGRtpMedia::m_clockrate, JGRtpMedia::m_id, JGRtpMedia::m_maxPTime, JGRtpMedia::m_name, JGRtpMedia::m_params, JGRtpMedia::m_pTime, and JGRtpMedia::m_synonym.
Referenced by JGRtpMedia::JGRtpMedia().
|
inlinevirtual |
Get the string repreasentation (id) of this payload
Reimplemented from GenObject.
References JGRtpMedia::m_id.
| XmlElement * toXml | ( | ) | const |
Create a 'payload-type' element from this object
| String m_bitRate |
Data bit rate
Referenced by JGRtpMedia::JGRtpMedia(), and JGRtpMedia::set().
| String m_channels |
The number of channels
Referenced by JGRtpMedia::JGRtpMedia(), and JGRtpMedia::set().
| String m_clockrate |
The clockrate of this payload
Referenced by JGRtpMedia::JGRtpMedia(), and JGRtpMedia::set().
| String m_id |
The numeric id of this payload
Referenced by JGRtpMedia::JGRtpMedia(), JGRtpMedia::set(), and JGRtpMedia::toString().
| String m_maxPTime |
Maximum packet time
Referenced by JGRtpMedia::JGRtpMedia(), and JGRtpMedia::set().
| String m_name |
The Jingle name of this payload
Referenced by JGRtpMedia::JGRtpMedia(), and JGRtpMedia::set().
| NamedList m_params |
List of optional parameters
Referenced by JGRtpMedia::JGRtpMedia(), and JGRtpMedia::set().
| String m_pTime |
Packet time
Referenced by JGRtpMedia::JGRtpMedia(), and JGRtpMedia::set().
| String m_synonym |
A synonym of this payload's name
Referenced by JGRtpMedia::JGRtpMedia(), and JGRtpMedia::set().