QXmppJingleReason Class
| Header: | #include <QXmppJingleReason> |
Public Functions
| QXmppJingleReason() | |
(since QXmpp 1.11) | QXmppJingleReason(QXmppJingleReason::Type type, const QString &text, std::optional<QXmppJingleReason::RtpErrorCondition> rtpError) |
(since QXmpp 1.5) QXmppJingleReason::RtpErrorCondition | rtpErrorCondition() const |
(since QXmpp 1.5) void | setRtpErrorCondition(QXmppJingleReason::RtpErrorCondition rtpErrorCondition) |
| void | setText(const QString &text) |
| void | setType(QXmppJingleReason::Type type) |
| QString | text() const |
| QXmppJingleReason::Type | type() const |
Detailed Description
The QXmppJingleReason class represents the "reason" element of a QXmppJingle element.
Member Function Documentation
QXmppJingleReason::QXmppJingleReason()
Constructs an empty QXmppJingleReason.
[since QXmpp 1.11] QXmppJingleReason::QXmppJingleReason(QXmppJingleReason::Type type, const QString &text, std::optional<QXmppJingleReason::RtpErrorCondition> rtpError)
Constructs a QXmppJingleReason with specific type, error text and RTP error condition.
This function was introduced in QXmpp 1.11.
[since QXmpp 1.5] QXmppJingleReason::RtpErrorCondition QXmppJingleReason::rtpErrorCondition() const
Returns the RTP error condition as specified by XEP-0167: Jingle RTP Sessions.
This function was introduced in QXmpp 1.5.
See also setRtpErrorCondition().
[since QXmpp 1.5] void QXmppJingleReason::setRtpErrorCondition(QXmppJingleReason::RtpErrorCondition rtpErrorCondition)
Sets the rtpErrorCondition as specified by XEP-0167: Jingle RTP Sessions.
This function was introduced in QXmpp 1.5.
See also rtpErrorCondition().
void QXmppJingleReason::setText(const QString &text)
Sets the reason's textual description.
text.
See also text().
void QXmppJingleReason::setType(QXmppJingleReason::Type type)
Sets the reason's type.
See also type().
QString QXmppJingleReason::text() const
Returns the reason's textual description.
See also setText().
QXmppJingleReason::Type QXmppJingleReason::type() const
Gets the reason's type.
See also setType().