| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
|---|---|
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #ifndef PLUGINSERVICE_H |
| 6 | #define PLUGINSERVICE_H |
| 7 | |
| 8 | #include "framework/log/frameworklog.h" |
| 9 | #include "framework/framework_global.h" |
| 10 | |
| 11 | #include <QObject> |
| 12 | #include <QHash> |
| 13 | |
| 14 | #include <functional> |
| 15 | |
| 16 | #define DPF_INTERFACE(ret, method, ...) std::function<ret(__VA_ARGS__)> method{nullptr} |
| 17 | |
| 18 | DPF_BEGIN_NAMESPACE |
| 19 | |
| 20 | class PluginService : public QObject |
| 21 | { |
| 22 | Q_OBJECT |
| 23 | Q_DISABLE_COPY(PluginService) |
| 24 | public: |
| 25 | explicit PluginService(QObject *parent = nullptr): QObject(parent) {} |
| 26 | virtual ~PluginService(){} |
| 27 | }; |
| 28 | |
| 29 | DPF_END_NAMESPACE |
| 30 | |
| 31 | #endif // PLUGINSERVICE_H |
| 32 |