blob: 1c391e300edd8ef9c9c3bbb6a9e0478a9a82d7f8 (
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
|
// SPDX-FileCopyrightText: 2021 Germán Márquez Mejía <mancho@olomono.de>
// SPDX-FileCopyrightText: 2021 Melvin Keskin <melvo@olomono.de>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPOMEMODEVICEELEMENT_H
#define QXMPPOMEMODEVICEELEMENT_H
#include "QXmppGlobal.h"
class QDomElement;
class QXmlStreamWriter;
class QXMPP_AUTOTEST_EXPORT QXmppOmemoDeviceElement
{
public:
bool operator==(const QXmppOmemoDeviceElement &other) const;
uint32_t id() const;
void setId(uint32_t id);
QString label() const;
void setLabel(const QString &label);
/// \cond
void parse(const QDomElement &element);
void toXml(QXmlStreamWriter *writer) const;
/// \endcond
static bool isOmemoDeviceElement(const QDomElement &element);
private:
uint32_t m_id = 0;
QString m_label;
};
Q_DECLARE_TYPEINFO(QXmppOmemoDeviceElement, Q_MOVABLE_TYPE);
#endif // QXMPPOMEMODEVICEELEMENT_H
|