6#ifndef QXMPPOMEMOELEMENT_H
7#define QXMPPOMEMOELEMENT_H
9#include "QXmppGlobal.h"
10#include "QXmppOmemoEnvelope_p.h"
17class QXmlStreamWriter;
19class QXMPP_EXPORT QXmppOmemoElement
22 uint32_t senderDeviceId()
const;
23 void setSenderDeviceId(uint32_t
id);
25 QByteArray payload()
const;
26 void setPayload(
const QByteArray &payload);
28 std::optional<QXmppOmemoEnvelope> searchEnvelope(
const QString &recipientJid, uint32_t recipientDeviceId)
const;
29 void addEnvelope(
const QString &recipientJid,
const QXmppOmemoEnvelope &envelope);
32 void parse(
const QDomElement &element);
33 void toXml(QXmlStreamWriter *writer)
const;
36 static bool isOmemoElement(
const QDomElement &element);
39 uint32_t m_senderDeviceId = 0;
41 QMultiMap<QString, QXmppOmemoEnvelope> m_envelopes;
44Q_DECLARE_TYPEINFO(QXmppOmemoElement, Q_MOVABLE_TYPE);