#ifndef FILEHANDLER_H #define FILEHANDLER_H #include class QJsonDocument; class QString; class QByteArray; class FileHandler { public: /// JSON static bool saveToFile(const QJsonDocument& doc, const QString& fileName); static QByteArray loadJSONDataFromFile(const QString fileName); /// CSV static QList> getItemValuesFromCSVFile(const QString& filePath); private: explicit FileHandler(); static QPair getFileContent(const QString& filePath); }; #endif // FILEHANDLER_H