forked from qxmpp-project/qxmpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
99 additions
and
1 deletion.
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
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,19 @@ | ||
// SPDX-FileCopyrightText: 2022 Linus Jahn <[email protected]> | ||
// | ||
// SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
/// | ||
/// \class QXmppMessageHandler | ||
/// | ||
/// Interface for handling messages. | ||
/// | ||
/// \since QXmpp 1.5 | ||
/// | ||
|
||
/// | ||
/// \fn QXmppMessageHandler::handleMessage() | ||
/// | ||
/// Handles the message. | ||
/// | ||
/// \returns Whether the message has been handled and no other extensions should process it. | ||
/// |
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,21 @@ | ||
// SPDX-FileCopyrightText: 2022 Linus Jahn <[email protected]> | ||
// | ||
// SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
#ifndef QXMPPMESSAGEHANDLER_H | ||
#define QXMPPMESSAGEHANDLER_H | ||
|
||
#include "QXmppExtension.h" | ||
#include "QXmppMessage.h" | ||
|
||
#include <variant> | ||
|
||
#include <QFuture> | ||
|
||
class QXMPP_EXPORT QXmppMessageHandler : public QXmppExtension | ||
{ | ||
public: | ||
virtual bool handleMessage(const QXmppMessage &) = 0; | ||
}; | ||
|
||
#endif // QXMPPMESSAGEHANDLER_H |