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