QXmpp::Iq::EncryptionSelection Class
class QXmpp::Iq::EncryptionSelection| Header: | #include <QXmppIqHandling.h> |
| Since: | QXmpp 1.18 |
Public Functions
| const QString & | encryption() const |
| bool | isRequired() const |
| void | setEncryption(QStringView encryption) |
| const QString & | to() const |
| QXmpp::Iq::Type | type() const |
Detailed Description
Input and result of the QXmpp::Iq::SelectEncryption hook.
The payload of the IQ is not available, it is only serialized when the IQ is encrypted.
Member Function Documentation
const QString &EncryptionSelection::encryption() const
Returns the namespace of the encryption (see QXmpp::E2ee), empty for sending the IQ unencrypted.
See also setEncryption().
bool EncryptionSelection::isRequired() const
Returns whether sending fails if no encryption is selected (see QXmppSendStanzaParams::isEncryptionRequired()).
void EncryptionSelection::setEncryption(QStringView encryption)
Sets the namespace of the encryption.
See also encryption().
const QString &EncryptionSelection::to() const
Returns the JID of the recipient, the own bare JID for IQs to the own account.
QXmpp::Iq::Type EncryptionSelection::type() const
Returns the type of the IQ, requests and responses are encrypted.