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