1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef EVENTRECEIVER_H |
6 | #define EVENTRECEIVER_H |
7 | |
8 | #include <framework/framework.h> |
9 | #include <QObject> |
10 | |
11 | class DebugEventReceiver : public dpf::EventHandler, dpf::AutoEventHandlerRegister<DebugEventReceiver> |
12 | { |
13 | friend class dpf::AutoEventHandlerRegister<DebugEventReceiver>; |
14 | |
15 | public: |
16 | explicit DebugEventReceiver(QObject *parent = nullptr); |
17 | static Type type(); |
18 | static QStringList topics(); |
19 | |
20 | signals: |
21 | |
22 | public slots: |
23 | |
24 | private: |
25 | virtual void eventProcess(const dpf::Event &event) override; |
26 | }; |
27 | |
28 | #endif // EVENTRECEIVER_H |
29 |