| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
|---|---|
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #ifndef DAPCONFIG_H |
| 6 | #define DAPCONFIG_H |
| 7 | |
| 8 | #include <QString> |
| 9 | |
| 10 | namespace support_file { |
| 11 | |
| 12 | struct JavaDapPluginConfig { |
| 13 | QString launchPackageFile; |
| 14 | QString launchConfigPath; |
| 15 | QString dapPackageFile; |
| 16 | QString jrePath; |
| 17 | QString jreExecute; |
| 18 | }; |
| 19 | |
| 20 | class DapSupportConfig final |
| 21 | { |
| 22 | public: |
| 23 | static QString globalPath(); |
| 24 | static QString userPath(); |
| 25 | static bool readFromSupportFile(const QString &dapSupportPath, const QString &arch, JavaDapPluginConfig &javaconfig, const QString &configDir); |
| 26 | |
| 27 | private: |
| 28 | explicit DapSupportConfig(); |
| 29 | }; |
| 30 | |
| 31 | } |
| 32 | #endif // DAPCONFIG_H |
| 33 |