5#ifndef QXMPPTRUSTMESSAGEKEYOWNER_H
6#define QXMPPTRUSTMESSAGEKEYOWNER_H
8#include "QXmppConstants_p.h"
9#include "QXmppGlobal.h"
11#include <QSharedDataPointer>
14class QXmlStreamWriter;
15class 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;
The QXmppTrustMessageKeyOwner class represents a key owner of the trust message as defined by XEP-043...
Definition QXmppTrustMessageKeyOwner.h:18
QXmppTrustMessageKeyOwner & operator=(QXmppTrustMessageKeyOwner &&)
Assignment operator.
QXmppTrustMessageKeyOwner & operator=(const QXmppTrustMessageKeyOwner &other)
Assignment operator.
QXmppTrustMessageKeyOwner(QXmppTrustMessageKeyOwner &&)
Copy constructor.
QXmppTrustMessageKeyOwner(const QXmppTrustMessageKeyOwner &other)
Copy constructor.