// SPDX-FileCopyrightText: 2021 Melvin Keskin // // SPDX-License-Identifier: LGPL-2.1-or-later #ifndef QXMPPTRUSTMESSAGEKEYOWNER_H #define QXMPPTRUSTMESSAGEKEYOWNER_H #include "QXmppGlobal.h" #include class QDomElement; class QXmlStreamWriter; class QXmppTrustMessageKeyOwnerPrivate; class QXMPP_EXPORT QXmppTrustMessageKeyOwner { public: QXmppTrustMessageKeyOwner(); QXmppTrustMessageKeyOwner(const QXmppTrustMessageKeyOwner &other); QXmppTrustMessageKeyOwner(QXmppTrustMessageKeyOwner &&); ~QXmppTrustMessageKeyOwner(); QXmppTrustMessageKeyOwner &operator=(const QXmppTrustMessageKeyOwner &other); QXmppTrustMessageKeyOwner &operator=(QXmppTrustMessageKeyOwner &&); QString jid() const; void setJid(const QString &jid); QList trustedKeys() const; void setTrustedKeys(const QList &keyIds); QList distrustedKeys() const; void setDistrustedKeys(const QList &keyIds); /// \cond void parse(const QDomElement &element); void toXml(QXmlStreamWriter *writer) const; /// \endcond static bool isTrustMessageKeyOwner(const QDomElement &element); private: QSharedDataPointer d; }; Q_DECLARE_TYPEINFO(QXmppTrustMessageKeyOwner, Q_MOVABLE_TYPE); #endif // QXMPPTRUSTMESSAGEKEYOWNER_H