-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XEP 0283: Moved - Introduce QXmppMovedItem and QXmppMovedManager
This will be used to handle publishing moved statement later and allow to handle moved users.
- Loading branch information
Showing
10 changed files
with
785 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// SPDX-FileCopyrightText: 2024 Filipe Azevedo <[email protected]> | ||
// | ||
// SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
#ifndef QXMPPMOVEDITEM_P_H | ||
#define QXMPPMOVEDITEM_P_H | ||
|
||
#include <QXmppPubSubBaseItem.h> | ||
|
||
class QXmppMovedItem : public QXmppPubSubBaseItem | ||
{ | ||
public: | ||
QXmppMovedItem(const QString &newJid = {}); | ||
|
||
QString newJid() const { return m_newJid; } | ||
void setNewJid(const QString &newJid) { m_newJid = newJid; } | ||
|
||
static bool isItem(const QDomElement &itemElement); | ||
|
||
protected: | ||
/// \cond | ||
void parsePayload(const QDomElement &payloadElement) override; | ||
void serializePayload(QXmlStreamWriter *writer) const override; | ||
/// \endcond | ||
|
||
private: | ||
QString m_newJid; | ||
}; | ||
|
||
#endif // QXMPPMOVEDITEM_P_H |
Oops, something went wrong.