5 #ifndef QXMPPTRUSTMESSAGEELEMENT_H 6 #define QXMPPTRUSTMESSAGEELEMENT_H 8 #include "QXmppConstants_p.h" 9 #include "QXmppGlobal.h" 11 #include <QSharedDataPointer> 14 class QXmlStreamWriter;
15 class 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;
53 #endif // QXMPPTRUSTMESSAGEELEMENT_H The QXmppTrustMessageKeyOwner class represents a key owner of the trust message as defined by XEP-043...
Definition: QXmppTrustMessageKeyOwner.h:17
The QXmppTrustMessageElement class represents a trust message element as defined by XEP-0434: Trust M...
Definition: QXmppTrustMessageElement.h:18