6#ifndef QXMPPOMEMOENVELOPE_H
7#define QXMPPOMEMOENVELOPE_H
9#include "QXmppGlobal.h"
12class QXmlStreamWriter;
14class QXMPP_EXPORT QXmppOmemoEnvelope
17 uint32_t recipientDeviceId()
const;
18 void setRecipientDeviceId(uint32_t
id);
20 bool isUsedForKeyExchange()
const;
21 void setIsUsedForKeyExchange(
bool isUsed);
23 QByteArray data()
const;
24 void setData(
const QByteArray &data);
27 void parse(
const QDomElement &element);
28 void toXml(QXmlStreamWriter *writer)
const;
31 static bool isOmemoEnvelope(
const QDomElement &element);
34 uint32_t m_recipientDeviceId = 0;
35 bool m_isUsedForKeyExchange =
false;
39Q_DECLARE_TYPEINFO(QXmppOmemoEnvelope, Q_MOVABLE_TYPE);