QXmpp: QXmppOmemoDeviceList_p.h Source File

QXmpp Version: 1.14.2

Loading...
Searching...
No Matches
QXmppOmemoDeviceList_p.h
1// SPDX-FileCopyrightText: 2021 Germán Márquez Mejía <mancho@olomono.de>
2// SPDX-FileCopyrightText: 2021 Melvin Keskin <melvo@olomono.de>
3//
4// SPDX-License-Identifier: LGPL-2.1-or-later
5
6#ifndef QXMPPOMEMODEVICELIST_H
7#define QXMPPOMEMODEVICELIST_H
8
9#include "QXmppConstants_p.h"
10#include "QXmppGlobal.h"
11#include "QXmppOmemoDeviceElement_p.h"
12
13#include "QList"
14
15class QDomElement;
16class QXmlStreamWriter;
17
18class QXMPP_AUTOTEST_EXPORT QXmppOmemoDeviceList : public QList<QXmppOmemoDeviceElement>
19{
20public:
22 static constexpr std::tuple XmlTag = { u"devices", QXmpp::Private::ns_omemo_2 };
23 void parse(const QDomElement &element);
24 void toXml(QXmlStreamWriter *writer) const;
26
27 static bool isOmemoDeviceList(const QDomElement &element);
28};
29
30Q_DECLARE_TYPEINFO(QXmppOmemoDeviceList, Q_MOVABLE_TYPE);
31
32#endif // QXMPPOMEMODEVICELIST_H