1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef CONFIGURE_H |
6 | #define CONFIGURE_H |
7 | |
8 | #include <QString> |
9 | #include <QJsonDocument> |
10 | |
11 | class Configure |
12 | { |
13 | Configure() = delete; |
14 | Configure(const Configure &other) = delete; |
15 | public: |
16 | static bool enabled(); |
17 | static void setEnabled(bool enabled); |
18 | private: |
19 | static QString filePath(); |
20 | static QJsonDocument doc(); |
21 | }; |
22 | |
23 | #endif // CONFIGURE_H |
24 |