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