1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef LISTENER_H |
6 | #define LISTENER_H |
7 | |
8 | #include "framework/framework_global.h" |
9 | |
10 | #include <QObject> |
11 | |
12 | DPF_BEGIN_NAMESPACE |
13 | |
14 | class ListenerPrivate; |
15 | class Listener final : public QObject |
16 | { |
17 | Q_OBJECT |
18 | friend class ListenerPrivate; |
19 | ListenerPrivate *const d; |
20 | friend class PluginManagerPrivate; |
21 | public: |
22 | explicit Listener(QObject *parent = nullptr); |
23 | static Listener &instance(); |
24 | signals: |
25 | void pluginsInitialized(); |
26 | void pluginsStarted(); |
27 | void pluginsStoped(); |
28 | }; |
29 | |
30 | DPF_END_NAMESPACE |
31 | |
32 | #endif // LISTENER_H |
33 |