1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef PROJECTCORERECEIVER_H |
6 | #define PROJECTCORERECEIVER_H |
7 | |
8 | #include <framework/framework.h> |
9 | |
10 | class ProjectCoreReceiver : public dpf::EventHandler, dpf::AutoEventHandlerRegister<ProjectCoreReceiver> |
11 | { |
12 | Q_OBJECT |
13 | friend class dpf::AutoEventHandlerRegister<ProjectCoreReceiver>; |
14 | public: |
15 | explicit ProjectCoreReceiver(QObject * parent = nullptr); |
16 | |
17 | static Type type(); |
18 | |
19 | static QStringList topics(); |
20 | |
21 | virtual void eventProcess(const dpf::Event& event) override; |
22 | }; |
23 | |
24 | class ProjectProxy : public QObject |
25 | { |
26 | Q_OBJECT |
27 | ProjectProxy(){} |
28 | ProjectProxy(const ProjectProxy&) = delete; |
29 | |
30 | public: |
31 | static ProjectProxy* instance() |
32 | { |
33 | static ProjectProxy ins; |
34 | return &ins; |
35 | } |
36 | signals: |
37 | |
38 | }; |
39 | |
40 | #endif // PROJECTCORERECEIVER_H |
41 |