QXmpp: QXmppOmemoItems_p.h Source File

QXmpp Version: 1.14.2

Loading...
Searching...
No Matches
QXmppOmemoItems_p.h
1// SPDX-FileCopyrightText: 2022 Melvin Keskin <melvo@olomono.de>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPOMEMOITEMS_H
6#define QXMPPOMEMOITEMS_H
7
8#include "QXmppOmemoDeviceBundle_p.h"
9#include "QXmppOmemoDeviceList_p.h"
10#include "QXmppPubSubBaseItem.h"
11
12class QXmppOmemoDeviceBundleItem : public QXmppPubSubBaseItem
13{
14public:
15 QXmppOmemoDeviceBundle deviceBundle() const;
16 void setDeviceBundle(const QXmppOmemoDeviceBundle &deviceBundle);
17
18 static bool isItem(const QDomElement &itemElement);
19
20protected:
21 void parsePayload(const QDomElement &payloadElement) override;
22 void serializePayload(QXmlStreamWriter *writer) const override;
23
24private:
25 QXmppOmemoDeviceBundle m_deviceBundle;
26};
27
28class QXmppOmemoDeviceListItem : public QXmppPubSubBaseItem
29{
30public:
31 QXmppOmemoDeviceList deviceList() const;
32 void setDeviceList(const QXmppOmemoDeviceList &deviceList);
33
34 static bool isItem(const QDomElement &itemElement);
35
36protected:
37 void parsePayload(const QDomElement &payloadElement) override;
38 void serializePayload(QXmlStreamWriter *writer) const override;
39
40private:
41 QXmppOmemoDeviceList m_deviceList;
42};
43
44#endif // QXMPPOMEMOITEMS_H
QXmppPubSubBaseItem
Definition QXmppPubSubBaseItem.h:19