1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef RECENTRECEIVER_H
6#define RECENTRECEIVER_H
7
8#include <framework/framework.h>
9
10class RecentReceiver : public dpf::EventHandler, dpf::AutoEventHandlerRegister<RecentReceiver>
11{
12 Q_OBJECT
13 friend class dpf::AutoEventHandlerRegister<RecentReceiver>;
14public:
15 explicit RecentReceiver(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
24class RecentProxy : public QObject
25{
26 Q_OBJECT
27 RecentProxy(){}
28 RecentProxy(const RecentProxy&) = delete;
29
30public:
31 static RecentProxy* instance();
32
33signals:
34 void saveOpenedProject(const QString &kitName,
35 const QString &language,
36 const QString &workspace);
37 void saveOpenedFile(const QString &filePath);
38};
39
40#endif // RECENTRECEIVER_H
41