5 #ifndef QXMPPTRUSTMESSAGEKEYOWNER_H 6 #define QXMPPTRUSTMESSAGEKEYOWNER_H 8 #include "QXmppConstants_p.h" 9 #include "QXmppGlobal.h" 11 #include <QSharedDataPointer> 14 class QXmlStreamWriter;
15 class QXmppTrustMessageKeyOwnerPrivate;
29 void setJid(
const QString &jid);
31 QList<QByteArray> trustedKeys()
const;
32 void setTrustedKeys(
const QList<QByteArray> &keyIds);
34 QList<QByteArray> distrustedKeys()
const;
35 void setDistrustedKeys(
const QList<QByteArray> &keyIds);
38 static constexpr std::tuple XmlTag = { u
"key-owner", QXmpp::Private::ns_tm };
39 void parse(
const QDomElement &element);
40 void toXml(QXmlStreamWriter *writer)
const;
43 static bool isTrustMessageKeyOwner(
const QDomElement &element);
46 QSharedDataPointer<QXmppTrustMessageKeyOwnerPrivate> d;
51 #endif // QXMPPTRUSTMESSAGEKEYOWNER_H The QXmppTrustMessageKeyOwner class represents a key owner of the trust message as defined by XEP-043...
Definition: QXmppTrustMessageKeyOwner.h:17