QXmpp Version: 1.10.0
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 "QXmppGlobal.h"
10#include "QXmppOmemoDeviceElement_p.h"
11
12#include "QList"
13
14class QDomElement;
15class QXmlStreamWriter;
16
17class QXMPP_AUTOTEST_EXPORT QXmppOmemoDeviceList : public QList<QXmppOmemoDeviceElement>
18{
19public:
21 void parse(const QDomElement &element);
22 void toXml(QXmlStreamWriter *writer) const;
24
25 static bool isOmemoDeviceList(const QDomElement &element);
26};
27
28Q_DECLARE_TYPEINFO(QXmppOmemoDeviceList, Q_MOVABLE_TYPE);
29
30#endif // QXMPPOMEMODEVICELIST_H