QXmppOmemoDevice Class
The QXmppOmemoDevice class represents a XEP-0384: OMEMO Encryption device. More...
| Header: | #include <QXmppOmemoDevice> |
Public Functions
| QXmppOmemoDevice() | |
| QXmppOmemoDevice(const QXmppOmemoDevice &other) | |
| QXmppOmemoDevice(QXmppOmemoDevice &&) | |
| QString | jid() const |
| QByteArray | keyId() const |
| QString | label() const |
| void | setJid(const QString &jid) |
| void | setKeyId(const QByteArray &keyId) |
| void | setLabel(const QString &label) |
| void | setTrustLevel(QXmpp::TrustLevel trustLevel) |
| QXmpp::TrustLevel | trustLevel() const |
| QXmppOmemoDevice & | operator=(QXmppOmemoDevice &&) |
| QXmppOmemoDevice & | operator=(const QXmppOmemoDevice &) |
Detailed Description
Member Function Documentation
QXmppOmemoDevice::QXmppOmemoDevice()
Constructs an OMEMO device.
QXmppOmemoDevice::QXmppOmemoDevice(const QXmppOmemoDevice &other)
Copy-constructor.
[noexcept] QXmppOmemoDevice::QXmppOmemoDevice(QXmppOmemoDevice &&)
Move-constructor.
QString QXmppOmemoDevice::jid() const
Returns the device owner's bare JID.
See also setJid().
QByteArray QXmppOmemoDevice::keyId() const
Returns the ID of the public long-term key which never changes.
See also setKeyId().
QString QXmppOmemoDevice::label() const
Returns the human-readable string used to identify the device by users.
If no label is set, a default-constructed QString is returned.
See also setLabel().
void QXmppOmemoDevice::setJid(const QString &jid)
Sets the device owner's bare JID to jid.
See also jid().
void QXmppOmemoDevice::setKeyId(const QByteArray &keyId)
Sets the ID of the public long-term key (which never changes) to keyId.
See also keyId().
void QXmppOmemoDevice::setLabel(const QString &label)
Sets an optional human-readable string label used to identify the device by users.
The label should not contain more than 53 characters.
See also label().
void QXmppOmemoDevice::setTrustLevel(QXmpp::TrustLevel trustLevel)
Sets the trust level of the key to trustLevel.
See also trustLevel().
QXmpp::TrustLevel QXmppOmemoDevice::trustLevel() const
Returns the trust level of the key.
See also setTrustLevel().
QXmppOmemoDevice &QXmppOmemoDevice::operator=(QXmppOmemoDevice &&)
Move-assignment operator.
QXmppOmemoDevice &QXmppOmemoDevice::operator=(const QXmppOmemoDevice &)
Assignment operator.