QXmppTrustMessageKeyOwner Class

The QXmppTrustMessageKeyOwner class represents a key owner of the trust message as defined by XEP-0434: Trust Messages (TM). More...

Header: #include <QXmppTrustMessageKeyOwner>
Since: QXmpp 1.5

Public Functions

QXmppTrustMessageKeyOwner()
QXmppTrustMessageKeyOwner(const QXmppTrustMessageKeyOwner &other)
QXmppTrustMessageKeyOwner(QXmppTrustMessageKeyOwner &&)
QList<QByteArray> distrustedKeys() const
QString jid() const
void setDistrustedKeys(const QList<QByteArray> &keyIds)
void setJid(const QString &jid)
void setTrustedKeys(const QList<QByteArray> &keyIds)
QList<QByteArray> trustedKeys() const
QXmppTrustMessageKeyOwner &operator=(QXmppTrustMessageKeyOwner &&)
QXmppTrustMessageKeyOwner &operator=(const QXmppTrustMessageKeyOwner &other)

Static Public Members

bool isTrustMessageKeyOwner(const QDomElement &element)

Detailed Description

Member Function Documentation

QXmppTrustMessageKeyOwner::QXmppTrustMessageKeyOwner()

Constructs a trust message key owner.

QXmppTrustMessageKeyOwner::QXmppTrustMessageKeyOwner(const QXmppTrustMessageKeyOwner &other)

Copy constructor.

QXmppTrustMessageKeyOwner::QXmppTrustMessageKeyOwner(QXmppTrustMessageKeyOwner &&)

Copy constructor.

QList<QByteArray> QXmppTrustMessageKeyOwner::distrustedKeys() const

Returns the IDs of the keys that are distrusted.

See also setDistrustedKeys().

[static] bool QXmppTrustMessageKeyOwner::isTrustMessageKeyOwner(const QDomElement &element)

Determines whether the given DOM element is a trust message key owner.

Returns true if element is a trust message key owner, otherwise false.

QString QXmppTrustMessageKeyOwner::jid() const

Returns the bare JID of the key owner.

See also setJid().

void QXmppTrustMessageKeyOwner::setDistrustedKeys(const QList<QByteArray> &keyIds)

Sets the keyIds of keys that are distrusted.

See also distrustedKeys().

void QXmppTrustMessageKeyOwner::setJid(const QString &jid)

Sets the bare jid of the key owner.

If a full JID is passed, it is converted into a bare JID.

See also jid().

void QXmppTrustMessageKeyOwner::setTrustedKeys(const QList<QByteArray> &keyIds)

Sets the keyIds of keys that are trusted.

See also trustedKeys().

QList<QByteArray> QXmppTrustMessageKeyOwner::trustedKeys() const

Returns the IDs of the keys that are trusted.

See also setTrustedKeys().

QXmppTrustMessageKeyOwner &QXmppTrustMessageKeyOwner::operator=(QXmppTrustMessageKeyOwner &&)

Assignment operator.

QXmppTrustMessageKeyOwner &QXmppTrustMessageKeyOwner::operator=(const QXmppTrustMessageKeyOwner &other)

Assignment operator.