From 58481b46a2c64fda4f506e15ee94dd97f527d552 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 6 Aug 2019 03:12:16 +0200 Subject: Save and show progress in manga and return to last page" --- include/Storage.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/Storage.hpp (limited to 'include/Storage.hpp') diff --git a/include/Storage.hpp b/include/Storage.hpp new file mode 100644 index 0000000..bd4283c --- /dev/null +++ b/include/Storage.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include "Path.hpp" + +namespace QuickMedia { + enum class FileType { + FILE_NOT_FOUND, + REGULAR, + DIRECTORY + }; + + Path get_home_dir(); + Path get_storage_dir(); + int create_directory_recursive(const Path &path); + FileType get_file_type(const Path &path); + int file_get_content(const Path &path, std::string &result); + int file_overwrite(const Path &path, const std::string &data); +} \ No newline at end of file -- cgit v1.2.3