6 #ifndef QXMPPOMEMODEVICEELEMENT_H 7 #define QXMPPOMEMODEVICEELEMENT_H 9 #include "QXmppConstants_p.h" 10 #include "QXmppGlobal.h" 13 class QXmlStreamWriter;
15 class QXMPP_AUTOTEST_EXPORT QXmppOmemoDeviceElement
18 bool operator==(
const QXmppOmemoDeviceElement &other)
const;
21 void setId(uint32_t
id);
23 QString label()
const;
24 void setLabel(
const QString &label);
27 static constexpr std::tuple XmlTag = { u
"device", QXmpp::Private::ns_omemo_2 };
28 void parse(
const QDomElement &element);
29 void toXml(QXmlStreamWriter *writer)
const;
32 static bool isOmemoDeviceElement(
const QDomElement &element);
39 Q_DECLARE_TYPEINFO(QXmppOmemoDeviceElement, Q_MOVABLE_TYPE);
41 #endif // QXMPPOMEMODEVICEELEMENT_H