tool.h 629 B

12345678910111213141516171819202122232425
  1. #ifndef TOOL_H
  2. #define TOOL_H
  3. #include <QDialog>
  4. #include<QAbstractButton>
  5. #include <QFile>
  6. #include <QJsonDocument>
  7. #include <QJsonObject>
  8. #include "QtCore/qjsonarray.h"
  9. class tool
  10. {
  11. public:
  12. static QJsonArray getJsanArra(const QString& filePath);
  13. static void generateFolderJsonFile(const QString& folderPath, const QString& jsonFilePath);
  14. static QJsonObject generateFolderJson(const QString& folderPath);
  15. static QJsonObject readJsonFile(const QString& filePath);
  16. static QStringList getFilesInFolder(const QString& folderPath);
  17. static const QString dir_path;
  18. tool(){}
  19. private:
  20. };
  21. #endif // TOOL_H