Loading...
Searching...
No Matches
QXmppOmemoDeviceElement_p.h
// 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);
void parse(const QDomElement &element);
void toXml(QXmlStreamWriter *writer) const;
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