QXmppJingleRtpHeaderExtensionProperty Class
The QXmppJingleRtpHeaderExtensionProperty class represents the XEP-0294: Jingle RTP Header Extensions Negotiation "rtp-hdrext" element. More...
| Header: | #include <QXmppJingleRtpHeaderExtensionProperty> |
| Since: | QXmpp 1.5 |
Public Types
| enum | Senders { Both, Initiator, Responder } |
Public Functions
| QXmppJingleRtpHeaderExtensionProperty() | |
(since QXmpp 1.14) | QXmppJingleRtpHeaderExtensionProperty(const QString &uri, uint32_t id) |
| uint32_t | id() const |
| QList<QXmppSdpParameter> | parameters() const |
| QXmppJingleRtpHeaderExtensionProperty::Senders | senders() const |
| void | setId(uint32_t id) |
| void | setParameters(const QList<QXmppSdpParameter> ¶meters) |
| void | setSenders(QXmppJingleRtpHeaderExtensionProperty::Senders senders) |
| void | setUri(const QString &uri) |
| QString | uri() const |
Static Public Members
| bool | isJingleRtpHeaderExtensionProperty(const QDomElement &element) |
Detailed Description
Member Type Documentation
enum QXmppJingleRtpHeaderExtensionProperty::Senders
Parties that are allowed to send the negotiated RTP header extension.
| Constant | Value | Description |
|---|---|---|
QXmppJingleRtpHeaderExtensionProperty::Both | 0 | The initiator and the sender are allowed. |
QXmppJingleRtpHeaderExtensionProperty::Initiator | 1 | Only the initiator is allowed. |
QXmppJingleRtpHeaderExtensionProperty::Responder | 2 | Only the responder is allowed. |
Member Function Documentation
QXmppJingleRtpHeaderExtensionProperty::QXmppJingleRtpHeaderExtensionProperty()
Default constructor
[since QXmpp 1.14] QXmppJingleRtpHeaderExtensionProperty::QXmppJingleRtpHeaderExtensionProperty(const QString &uri, uint32_t id)
Default constructor
This function was introduced in QXmpp 1.14.
uint32_t QXmppJingleRtpHeaderExtensionProperty::id() const
Returns the ID of the RTP header extension.
The ID is 0 if it is unset.
See also setId().
[static] bool QXmppJingleRtpHeaderExtensionProperty::isJingleRtpHeaderExtensionProperty(const QDomElement &element)
Determines whether the given DOM element is an RTP header extensions property element.
Returns true if element is an RTP header extension property element.
QList<QXmppSdpParameter> QXmppJingleRtpHeaderExtensionProperty::parameters() const
Returns the parameters of the RTP header extension.
See also setParameters().
QXmppJingleRtpHeaderExtensionProperty::Senders QXmppJingleRtpHeaderExtensionProperty::senders() const
Returns the parties that are allowed to send the negotiated RTP header extensions.
See also setSenders().
void QXmppJingleRtpHeaderExtensionProperty::setId(uint32_t id)
Sets the id of the RTP header extension.
The ID must either be at least 1 and at most 256 or at least 4096 and at most 4351.
See also id().
void QXmppJingleRtpHeaderExtensionProperty::setParameters(const QList<QXmppSdpParameter> ¶meters)
Sets the parameters of the RTP header extension.
Additional parameters can be set by this method.
See also parameters().
void QXmppJingleRtpHeaderExtensionProperty::setSenders(QXmppJingleRtpHeaderExtensionProperty::Senders senders)
Sets the senders that are allowed to send the negotiated RTP header extensions.
See also senders().
void QXmppJingleRtpHeaderExtensionProperty::setUri(const QString &uri)
Sets the uri defning the RTP header extension.
See also uri().
QString QXmppJingleRtpHeaderExtensionProperty::uri() const
Returns the URI defning the RTP header extension.
See also setUri().