5#ifndef QXMPPTRUSTMESSAGEELEMENT_H
6#define QXMPPTRUSTMESSAGEELEMENT_H
8#include "QXmppConstants_p.h"
9#include "QXmppGlobal.h"
11#include <QSharedDataPointer>
14class QXmlStreamWriter;
15class QXmppTrustMessageElementPrivate;
29 QString usage()
const;
30 void setUsage(
const QString &usage);
32 QString encryption()
const;
33 void setEncryption(
const QString &encryption);
35 QList<QXmppTrustMessageKeyOwner> keyOwners()
const;
36 void setKeyOwners(
const QList<QXmppTrustMessageKeyOwner> &keyOwners);
40 static constexpr std::tuple XmlTag = { u
"trust-message", QXmpp::Private::ns_tm };
41 void parse(
const QDomElement &element);
42 void toXml(QXmlStreamWriter *writer)
const;
45 static bool isTrustMessageElement(
const QDomElement &element);
48 QSharedDataPointer<QXmppTrustMessageElementPrivate> d;
The QXmppTrustMessageElement class represents a trust message element as defined by XEP-0434: Trust M...
Definition QXmppTrustMessageElement.h:19
QXmppTrustMessageElement(QXmppTrustMessageElement &&)
Move-constructor.
QXmppTrustMessageElement(const QXmppTrustMessageElement &other)
Copy-constructor.
QXmppTrustMessageElement & operator=(QXmppTrustMessageElement &&)
Move-assignment operator.
QXmppTrustMessageElement & operator=(const QXmppTrustMessageElement &other)
Assignment operator.
The QXmppTrustMessageKeyOwner class represents a key owner of the trust message as defined by XEP-043...
Definition QXmppTrustMessageKeyOwner.h:18