aboutsummaryrefslogtreecommitdiff
path: root/include/Storage.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-06 03:12:16 +0200
committerdec05eba <dec05eba@protonmail.com>2019-08-06 03:12:40 +0200
commit58481b46a2c64fda4f506e15ee94dd97f527d552 (patch)
tree337809ed5aadece3cc6a3746aa78a24b390472ca /include/Storage.hpp
parent7ce2139650012d4c571c7e7600924853ab7032bb (diff)
Save and show progress in manga and return to last page"
Diffstat (limited to 'include/Storage.hpp')
-rw-r--r--include/Storage.hpp18
1 files changed, 18 insertions, 0 deletions
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