QXmppOmemoOwnDevice Class
The QXmppOmemoOwnDevice class represents the XEP-0384: OMEMO Encryption device of this client instance. More...
| Header: | #include <QXmppOmemoOwnDevice> |
Public Functions
| QXmppOmemoOwnDevice() | |
| QXmppOmemoOwnDevice(const QXmppOmemoOwnDevice &other) | |
| QXmppOmemoOwnDevice(QXmppOmemoOwnDevice &&) | |
| QByteArray | keyId() const |
| QString | label() const |
| void | setKeyId(const QByteArray &keyId) |
| void | setLabel(const QString &label) |
| QXmppOmemoOwnDevice & | operator=(QXmppOmemoOwnDevice &&) |
| QXmppOmemoOwnDevice & | operator=(const QXmppOmemoOwnDevice &) |
Detailed Description
Member Function Documentation
QXmppOmemoOwnDevice::QXmppOmemoOwnDevice()
Constructs an OMEMO device for this client instance.
QXmppOmemoOwnDevice::QXmppOmemoOwnDevice(const QXmppOmemoOwnDevice &other)
Copy-constructor.
[noexcept] QXmppOmemoOwnDevice::QXmppOmemoOwnDevice(QXmppOmemoOwnDevice &&)
Move-constructor.
QByteArray QXmppOmemoOwnDevice::keyId() const
Returns the ID of the public long-term key which never changes.
See also setKeyId().
QString QXmppOmemoOwnDevice::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 QXmppOmemoOwnDevice::setKeyId(const QByteArray &keyId)
Sets the ID of the public long-term key (which never changes) to keyId.
See also keyId().
void QXmppOmemoOwnDevice::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().
QXmppOmemoOwnDevice &QXmppOmemoOwnDevice::operator=(QXmppOmemoOwnDevice &&)
Move-assignment operator.
QXmppOmemoOwnDevice &QXmppOmemoOwnDevice::operator=(const QXmppOmemoOwnDevice &)
Assignment operator.