| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
|---|---|
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #ifndef NINJADEBUG_H |
| 6 | #define NINJADEBUG_H |
| 7 | |
| 8 | #include "dap/protocol.h" |
| 9 | #include <QObject> |
| 10 | |
| 11 | class NinjaDebugPrivate; |
| 12 | class NinjaDebug : public QObject |
| 13 | { |
| 14 | Q_OBJECT |
| 15 | public: |
| 16 | explicit NinjaDebug(QObject *parent = nullptr); |
| 17 | ~NinjaDebug(); |
| 18 | |
| 19 | bool requestDAPPort(const QString &uuid, const QString &kit, |
| 20 | const QString &targetPath, const QStringList &arguments, |
| 21 | QString &retMsg); |
| 22 | bool isLaunchNotAttach(); |
| 23 | dap::LaunchRequest launchDAP(const QString &targetPath, const QStringList &argments); |
| 24 | |
| 25 | signals: |
| 26 | |
| 27 | private slots: |
| 28 | |
| 29 | private: |
| 30 | NinjaDebugPrivate *const d; |
| 31 | }; |
| 32 | |
| 33 | #endif // NINJADEBUG_H |
| 34 |