blob: 3d8c89cd09d1251256f2ec10f267bcf5950e2714 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// SPDX-FileCopyrightText: 2021 Melvin Keskin <melvo@olomono.de>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPTRUSTMESSAGEELEMENT_H
#define QXMPPTRUSTMESSAGEELEMENT_H
#include "QXmppGlobal.h"
#include <QSharedDataPointer>
class QDomElement;
class QXmlStreamWriter;
class QXmppTrustMessageElementPrivate;
class QXmppTrustMessageKeyOwner;
class QXMPP_EXPORT QXmppTrustMessageElement
{
public:
QXmppTrustMessageElement();
QXmppTrustMessageElement(const QXmppTrustMessageElement &other);
~QXmppTrustMessageElement();
QXmppTrustMessageElement &operator=(const QXmppTrustMessageElement &other);
QString usage() const;
void setUsage(const QString &usage);
QString encryption() const;
void setEncryption(const QString &encryption);
QList<QXmppTrustMessageKeyOwner> keyOwners() const;
void setKeyOwners(const QList<QXmppTrustMessageKeyOwner> &keyOwners);
void addKeyOwner(const QXmppTrustMessageKeyOwner &keyOwner);
/// \cond
void parse(const QDomElement &element);
void toXml(QXmlStreamWriter *writer) const;
/// \endcond
static bool isTrustMessageElement(const QDomElement &element);
private:
QSharedDataPointer<QXmppTrustMessageElementPrivate> d;
};
Q_DECLARE_TYPEINFO(QXmppTrustMessageElement, Q_MOVABLE_TYPE);
#endif // QXMPPTRUSTMESSAGEELEMENT_H
|