Items can be saved to JSON file "items.json" (in standard location).
This commit is contained in:
15
data/filehandler.h
Normal file
15
data/filehandler.h
Normal file
@ -0,0 +1,15 @@
|
||||
#ifndef FILEHANDLER_H
|
||||
#define FILEHANDLER_H
|
||||
|
||||
class QJsonDocument;
|
||||
class QString;
|
||||
|
||||
class FileHandler {
|
||||
public:
|
||||
static bool saveToFile(const QJsonDocument& doc, const QString& fileName);
|
||||
|
||||
private:
|
||||
explicit FileHandler();
|
||||
};
|
||||
|
||||
#endif // FILEHANDLER_H
|
||||
Reference in New Issue
Block a user