1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef OPTIONMANAGER_H
6#define OPTIONMANAGER_H
7
8#include "optiondatastruct.h"
9#include <QObject>
10
11class OptionManagerPrivate;
12class OptionManager : public QObject
13{
14 Q_OBJECT
15public:
16 static OptionManager *getInstance();
17
18 void updateData();
19
20 QString getMavenToolPath();
21 QString getJdkToolPath();
22 QString getGradleToolPath();
23 QString getPythonToolPath();
24 QString getCMakeToolPath();
25 QString getNinjaToolPath();
26 QString getCxxDebuggerToolPath();
27 QString getJSToolPath();
28 QString getToolPath(const QString &kit);
29signals:
30
31private:
32 explicit OptionManager(QObject *parent = nullptr);
33 virtual ~OptionManager() override;
34
35 OptionManagerPrivate *const d;
36};
37
38#endif // OPTIONMANAGER_H
39