QXmppTrustMessageElement Class

The QXmppTrustMessageElement class represents a trust message element as defined by XEP-0434: Trust Messages (TM). More...

Header: #include <QXmppTrustMessageElement.h>
Since: QXmpp 1.5

Public Functions

QXmppTrustMessageElement()
QXmppTrustMessageElement(const QXmppTrustMessageElement &other)
QXmppTrustMessageElement(QXmppTrustMessageElement &&)
void addKeyOwner(const QXmppTrustMessageKeyOwner &keyOwner)
QString encryption() const
QList<QXmppTrustMessageKeyOwner> keyOwners() const
void setEncryption(const QString &encryption)
void setKeyOwners(const QList<QXmppTrustMessageKeyOwner> &keyOwners)
void setUsage(const QString &usage)
QString usage() const
QXmppTrustMessageElement &operator=(QXmppTrustMessageElement &&)
QXmppTrustMessageElement &operator=(const QXmppTrustMessageElement &other)

Static Public Members

bool isTrustMessageElement(const QDomElement &element)

Detailed Description

Member Function Documentation

QXmppTrustMessageElement::QXmppTrustMessageElement()

Constructs a trust message element.

QXmppTrustMessageElement::QXmppTrustMessageElement(const QXmppTrustMessageElement &other)

Copy-constructor.

QXmppTrustMessageElement::QXmppTrustMessageElement(QXmppTrustMessageElement &&)

Move-constructor.

void QXmppTrustMessageElement::addKeyOwner(const QXmppTrustMessageKeyOwner &keyOwner)

Adds a keyOwner containing the corresponding information for trusting or distrusting the owner's keys.

QString QXmppTrustMessageElement::encryption() const

Returns the namespace of the keys' encryption protocol.

See also setEncryption().

[static] bool QXmppTrustMessageElement::isTrustMessageElement(const QDomElement &element)

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

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

QList<QXmppTrustMessageKeyOwner> QXmppTrustMessageElement::keyOwners() const

Returns the key owners containing the corresponding information for trusting or distrusting their keys.

See also setKeyOwners().

void QXmppTrustMessageElement::setEncryption(const QString &encryption)

Sets the namespace of the keys' encryption protocol.

See also encryption().

void QXmppTrustMessageElement::setKeyOwners(const QList<QXmppTrustMessageKeyOwner> &keyOwners)

Sets the keyOwners containing the corresponding information for trusting or distrusting their keys.

See also keyOwners().

void QXmppTrustMessageElement::setUsage(const QString &usage)

Sets the trust management protocol namespace via usage.

See also usage().

QString QXmppTrustMessageElement::usage() const

Returns the namespace of the trust management protocol.

See also setUsage().

QXmppTrustMessageElement &QXmppTrustMessageElement::operator=(QXmppTrustMessageElement &&)

Move-assignment operator.

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

Assignment operator.