QXmpp::Messages::EncryptionSelection Class

class QXmpp::Messages::EncryptionSelection
Header: #include <QXmppMessages.h>

Detailed Description

Input and result of the SelectEncryption hook.

The encryption is identified by its namespace (see QXmpp::E2ee), it is empty for sending the message unencrypted. Replies of QXmpp's managers (e.g. delivery receipts) are preset with the encryption of the message replied to, so they stay encrypted without a handler.

isRequired() is set for sensitive stanzas sent by QXmpp's managers (e.g. roster subscription requests) and for messages with QXmppSendStanzaParams::isEncryptionRequired().