QXmpp: QXmppMovedItem_p.h Source File

QXmpp Version: 1.14.4

Loading...
Searching...
No Matches
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
QXmppPubSubBaseItem
Definition QXmppPubSubBaseItem.h:19