#ifndef FILEUTILS_H #define FILEUTILS_H #include #include #include #include #include #include #include "model/recipe/instruction.h" namespace FileUtils{ const QString appDataPath = QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.recipeDB/"; void ensureAppDataFolderExists(); bool saveInstruction(int nr, Instruction instruction); Instruction loadInstruction(int nr); bool deleteInstruction(int nr); bool saveImage(int nr, QImage image); QImage loadImage(int nr); bool deleteImage(int nr); } #endif // FILEUTILS_H