aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-02-12 15:42:16 +0100
committerdec05eba <dec05eba@protonmail.com>2022-02-12 16:23:09 +0100
commit2f9ae9e9462a5a366461f20b4d0c2f4b80ef1b68 (patch)
tree165a71177182aec90f8d8fe888ffdbb7d801abcf /include
parenta8d597d59e347a80b109060ec8c7a88827487f57 (diff)
Local-manga: improve loading of page when using slow medium
Especially when using NFS. Only get the latest chapter when needed and cache link to the cover page.
Diffstat (limited to 'include')
-rw-r--r--include/Storage.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/Storage.hpp b/include/Storage.hpp
index 1e38906..c187261 100644
--- a/include/Storage.hpp
+++ b/include/Storage.hpp
@@ -9,9 +9,6 @@ namespace Json {
}
namespace QuickMedia {
- // Return false to stop the iterator
- using FileIteratorCallback = std::function<bool(const Path &filepath)>;
-
enum class FileType {
FILE_NOT_FOUND,
REGULAR,
@@ -23,6 +20,9 @@ namespace QuickMedia {
DESC
};
+ // Return false to stop the iterator
+ using FileIteratorCallback = std::function<bool(const Path &filepath, FileType file_type)>;
+
Path get_home_dir();
Path get_storage_dir();
Path get_cache_dir();