QXmppJingleReason Class

Header: #include <QXmppJingleData.h>

Public Types

(since QXmpp 1.5) enum RtpErrorCondition { NoErrorCondition, InvalidCrypto, CryptoRequired }
enum Type { AlternativeSession, Busy, Cancel, ConnectivityError, Decline, …, None }

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 Type Documentation

[since QXmpp 1.5] enum QXmppJingleReason::RtpErrorCondition

Condition of an RTP-specific error

ConstantValueDescription
QXmppJingleReason::NoErrorCondition0There is no error condition.
QXmppJingleReason::InvalidCrypto1The encryption offer is rejected.
QXmppJingleReason::CryptoRequired2Encryption is required but not offered.

This enum was introduced in QXmpp 1.5.

enum QXmppJingleReason::Type

This enum is used to describe a reason's type.

ConstantValueDescription
QXmppJingleReason::AlternativeSession1The party prefers to use an existing session with the peer rather than initiate a new session; the Jingle session ID of the alternative session SHOULD be provided as the XML character data of the &lt;sid/&gt; child.
QXmppJingleReason::Busy2The party is busy and cannot accept a session.
QXmppJingleReason::Cancel3The initiator wishes to formally cancel the session initiation request.
QXmppJingleReason::ConnectivityError4The action is related to connectivity problems.
QXmppJingleReason::Decline5The party wishes to formally decline the session.
QXmppJingleReason::Expired6The session length has exceeded a pre-defined time limit (e.g., a meeting hosted at a conference service).
QXmppJingleReason::FailedApplication7The party has been unable to initialize processing related to the application type.
QXmppJingleReason::FailedTransport8The party has been unable to establish connectivity for the transport method.
QXmppJingleReason::GeneralError9The action is related to a non-specific application error.
QXmppJingleReason::Gone10The entity is going offline or is no longer available.
QXmppJingleReason::IncompatibleParameters11The party supports the offered application type but does not support the offered or negotiated parameters.
QXmppJingleReason::MediaError12The action is related to media processing problems.
QXmppJingleReason::SecurityError13The action is related to a violation of local security policies.
QXmppJingleReason::Success14The action is generated during the normal course of state management and does not reflect any error.
QXmppJingleReason::Timeout15A request has not been answered so the sender is timing out the request.
QXmppJingleReason::UnsupportedApplications16The party supports none of the offered application types.
QXmppJingleReason::UnsupportedTransports17The party supports none of the offered transport methods.
QXmppJingleReason::None0 

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().