| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
|---|---|
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #ifndef DEBUGENGINE_H |
| 6 | #define DEBUGENGINE_H |
| 7 | |
| 8 | |
| 9 | #include <QSharedPointer> |
| 10 | #include <QObject> |
| 11 | |
| 12 | class DapSession; |
| 13 | class JavaDebugger; |
| 14 | class PythonDebugger; |
| 15 | class DebugEngine : public QObject |
| 16 | { |
| 17 | Q_OBJECT |
| 18 | public: |
| 19 | explicit DebugEngine(QObject *parent = nullptr); |
| 20 | |
| 21 | bool start(); |
| 22 | void stop(); |
| 23 | bool exit(); |
| 24 | |
| 25 | signals: |
| 26 | |
| 27 | public slots: |
| 28 | private: |
| 29 | bool initialize(); |
| 30 | |
| 31 | bool isRunning = false; |
| 32 | |
| 33 | QSharedPointer<DapSession> dapSession; |
| 34 | QSharedPointer<JavaDebugger> javaDebugger; |
| 35 | QSharedPointer<PythonDebugger> pythonDebugger; |
| 36 | }; |
| 37 | |
| 38 | #endif // DEBUGENGINE_H |
| 39 |