QXmpp::Iq::Context Class

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

Public Functions

const std::optional<QXmppE2eeMetadata> &e2eeMetadata() const
const QString &from() const
bool isEncrypted() const

Detailed Description

Information about an incoming IQ request besides its payload.

Member Function Documentation

const std::optional<QXmppE2eeMetadata> &Context::e2eeMetadata() const

Returns the end-to-end encryption metadata of the request, if it was end-to-end encrypted. The reply is end-to-end encrypted the same way.

const QString &Context::from() const

Returns the JID of the sender of the request.

bool Context::isEncrypted() const

Returns whether the request was end-to-end encrypted.