diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-14 19:52:21 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-14 23:45:11 +0200 |
commit | ab36fbffef977b99cc03d0b77ac37bdc1b5705dc (patch) | |
tree | 17207a364eecee330a26ac117a1384ad0b4a1e97 /include/QuickMedia.hpp | |
parent | 4db0876f45533d3b55ee79df2d2bc78b789b5a28 (diff) |
Rework manga plugins downloading.. preparing for parallel downloads
Diffstat (limited to 'include/QuickMedia.hpp')
-rw-r--r-- | include/QuickMedia.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 2877e0c..b387968 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -160,12 +160,14 @@ namespace QuickMedia { std::unordered_set<std::string> watched_videos; AsyncTask<BodyItems> search_suggestion_future; AsyncTask<std::string> autocomplete_future; - AsyncTask<void> image_download_future; + AsyncTask<void, std::promise<int>> image_download_future; std::thread image_upscale_thead; MessageQueue<CopyOp> images_to_upscale_queue; std::vector<char> image_upscale_status; std::string downloading_chapter_url; bool image_download_cancel = false; + std::future<int> num_manga_pages_future; + int num_manga_pages = 0; int exit_code = 0; std::string resources_root; sf::Shader circle_mask_shader; |