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
12class QStandardItem;
13class SymbolReceiver : public dpf::EventHandler,
14 dpf::AutoEventHandlerRegister<SymbolReceiver>
15{
16 Q_OBJECT
17 friend class dpf::AutoEventHandlerRegister<SymbolReceiver>;
18public:
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
28class ProjectProxy : public QObject
29{
30 Q_OBJECT
31 ProjectProxy(){}
32 ProjectProxy(const ProjectProxy&) = delete;
33
34public:
35 static ProjectProxy* instance() {
36 static ProjectProxy ins;
37 return &ins;
38 }
39
40signals:
41 void toSetSymbolRootItem(const dpfservice::ProjectInfo &info);
42};
43
44#endif // PROJECTRECEIVER_H
45