QXmpp::Iq::Reply Class

class QXmpp::Iq::Reply
Header: #include <QXmppIqHandling.h>
Since: QXmpp 1.18

Public Functions

Reply()
Reply(QXmppStanza::Error error)
const std::optional<QXmppStanza::Error> &error() const

Static Public Members

QXmpp::Iq::Reply encryptionNotSupported()
QXmpp::Iq::Reply result(Payload payload)

Detailed Description

Reply to an incoming IQ request: a result with an optional payload or an error.

Usually, handlers return the payload, QXmpp::Success or a QXmppStanza::Error and the reply is created from it.

Member Function Documentation

[noexcept default] Reply::Reply()

Constructs an empty result.

Reply::Reply(QXmppStanza::Error error)

Constructs an error reply with error.

[static] QXmpp::Iq::Reply Reply::encryptionNotSupported()

Returns an error reply for handlers not supporting end-to-end encrypted requests.

const std::optional<QXmppStanza::Error> &Reply::error() const

Returns the error, if this is an error reply.

[static] template <IqPayload Payload> QXmpp::Iq::Reply Reply::result(Payload payload)

Constructs a result with payload.