1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef SHORTCUTUTIL_H |
6 | #define SHORTCUTUTIL_H |
7 | |
8 | #include <QObject> |
9 | |
10 | class ShortcutUtil final: public QObject |
11 | { |
12 | Q_OBJECT |
13 | public: |
14 | static bool readFromJson(const QString &qsFilePath, QMap<QString, QStringList> &mapShortcutItem); |
15 | static bool writeToJson(const QString &qsFilePath, const QMap<QString, QStringList> &mapShortcutItem); |
16 | signals: |
17 | |
18 | private: |
19 | ShortcutUtil(QObject *parent = nullptr); |
20 | virtual ~ShortcutUtil(); |
21 | }; |
22 | |
23 | #endif // SHORTCUTUTIL_H |
24 | |