#ifndef TOOL_H #define TOOL_H #include #include #include #include #include #include "QtCore/qjsonarray.h" class tool { public: static QJsonArray getJsanArra(const QString& filePath); static void generateFolderJsonFile(const QString& folderPath, const QString& jsonFilePath); static QJsonObject generateFolderJson(const QString& folderPath); static QJsonObject readJsonFile(const QString& filePath); static QStringList getFilesInFolder(const QString& folderPath); static const QString dir_path; tool(){} static bool writeJsonFile(const QString& fileName, const QJsonObject& jsonObject); private: }; #endif // TOOL_H