QXmpp Version: 1.10.0
QXmppMovedItem_p.h
1// SPDX-FileCopyrightText: 2024 Filipe Azevedo <pasnox@gmail.com>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPMOVEDITEM_P_H
6#define QXMPPMOVEDITEM_P_H
7
8#include <QXmppPubSubBaseItem.h>
9
10class QXmppMovedItem : public QXmppPubSubBaseItem
11{
12public:
13 QXmppMovedItem(const QString &newJid = {});
14
15 QString newJid() const { return m_newJid; }
16 void setNewJid(const QString &newJid) { m_newJid = newJid; }
17
18 static bool isItem(const QDomElement &itemElement);
19
20protected:
21 void parsePayload(const QDomElement &payloadElement) override;
22 void serializePayload(QXmlStreamWriter *writer) const override;
23
24private:
25 QString m_newJid;
26};
27
28#endif // QXMPPMOVEDITEM_P_H
Definition: QXmppPubSubBaseItem.h:19
virtual void serializePayload(QXmlStreamWriter *writer) const
Definition: QXmppPubSubBaseItem.cpp:154
virtual void parsePayload(const QDomElement &payloadElement)
Definition: QXmppPubSubBaseItem.cpp:144
static bool isItem(const QDomElement &element)
Definition: QXmppPubSubBaseItem.cpp:134