1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef GLOBALCONFIGURE_H
6#define GLOBALCONFIGURE_H
7
8#include <QString>
9
10class CustomPaths final
11{
12 CustomPaths() = delete;
13 Q_DISABLE_COPY(CustomPaths)
14public:
15 enum Flags{
16 Applition,
17 DependLibs,
18 Plugins,
19 Tools,
20 Packages,
21 Extensions,
22 Resources,
23 Configures,
24 Scripts,
25 Translations,
26 Templates
27 };
28 static QString user(Flags flags);
29 static QString global(Flags flags);
30 static bool installed();
31 static QString endSeparator(const QString &path);
32 static QString projectGeneratePath(const QString &path);
33 static QString lspRuntimePath(const QString &language);
34 static bool checkDir(const QString &path);
35 static QString projectCachePath(const QString &projectPath);
36};
37
38#endif // GLOBALCONFIGURE_H
39