blob: 9f508249322182c9a0c2b679c1feeacfe2dbbdf0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// SPDX-FileCopyrightText: 2020 Linus Jahn <lnj@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPPUBSUBEVENTMANAGER_H
#define QXMPPPUBSUBEVENTMANAGER_H
#include "QXmppClient.h"
#include "QXmppClientExtension.h"
class QXmppPubSubManager;
class QXMPP_EXPORT QXmppPubSubEventManager : public QXmppClientExtension
{
Q_OBJECT
public:
inline bool handleStanza(const QDomElement &) override
{
return false;
}
protected:
virtual bool handlePubSubEvent(const QDomElement &element, const QString &pubSubService, const QString &nodeName) = 0;
inline QXmppPubSubManager *pubSub()
{
return client()->findExtension<QXmppPubSubManager>();
}
friend class QXmppPubSubManager;
};
#endif
|