QXmppSendStanzaParams Class
| Header: | #include <QXmppSendStanzaParams> |
| Since: | QXmpp 1.5 |
Public Functions
| QXmppSendStanzaParams(const QXmppSendStanzaParams &other) | |
| QXmppSendStanzaParams(QXmppSendStanzaParams &&) | |
| std::optional<QXmpp::TrustLevels> | acceptedTrustLevels() const |
| QVector<QString> | encryptionJids() const |
| void | setAcceptedTrustLevels(std::optional<QXmpp::TrustLevels> trustLevels) |
| void | setEncryptionJids(QVector<QString> encryptionJids) |
| QXmppSendStanzaParams & | operator=(QXmppSendStanzaParams &&) |
| QXmppSendStanzaParams & | operator=(const QXmppSendStanzaParams &) |
Detailed Description
Contains additional parameters for sending stanzas.
Member Function Documentation
QXmppSendStanzaParams::QXmppSendStanzaParams(const QXmppSendStanzaParams &other)
Copy-constructor
QXmppSendStanzaParams::QXmppSendStanzaParams(QXmppSendStanzaParams &&)
Move-constructor
std::optional<QXmpp::TrustLevels> QXmppSendStanzaParams::acceptedTrustLevels() const
Returns the possible trust levels a key must have to be used for encryption (the trust levels of the keys used for encryption).
If no trust levels are set, the encryption manager uses an own default.
See also setAcceptedTrustLevels().
QVector<QString> QXmppSendStanzaParams::encryptionJids() const
Returns the list of JIDs that the stanza should be encrypted for.
If this is empty, the stanza should be encrypted for the recipient. This option is useful for groupchats.
See also setEncryptionJids().
void QXmppSendStanzaParams::setAcceptedTrustLevels(std::optional<QXmpp::TrustLevels> trustLevels)
Sets the possible trustLevels a key must have to be used for encryption.
If no trust levels are set, the encryption manager uses an own default.
See also acceptedTrustLevels().
void QXmppSendStanzaParams::setEncryptionJids(QVector<QString> encryptionJids)
Sets the list of JIDs that the stanza should be encrypted for.
If this is empty, the stanza should be encrypted for the recipient. This option is useful for groupchats.
encryptionJids.
See also encryptionJids().
QXmppSendStanzaParams &QXmppSendStanzaParams::operator=(QXmppSendStanzaParams &&)
Move-assignment operator
QXmppSendStanzaParams &QXmppSendStanzaParams::operator=(const QXmppSendStanzaParams &)
Assignment operator