1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef JAVAUTIL_H |
6 | #define JAVAUTIL_H |
7 | |
8 | #include <QObject> |
9 | #include <QDir> |
10 | |
11 | class JavaUtil : public QObject |
12 | { |
13 | Q_OBJECT |
14 | public: |
15 | static QString getMainClassPath(const QDir &dir); |
16 | static QString getMainClass(const QString &mainClassPath, const QString &packageDirName); |
17 | static QString getPackageDir(const QString &mainClassPath, const QString &packageDirName); |
18 | |
19 | signals: |
20 | |
21 | public slots: |
22 | |
23 | private: |
24 | explicit JavaUtil(QObject *parent = nullptr) = delete; |
25 | }; |
26 | |
27 | #endif // JAVAUTIL_H |
28 | |