diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-05 18:17:00 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-05 18:17:04 +0200 |
commit | 657edb8eb9ab2fdef60d9c5d23a4c3093a64d859 (patch) | |
tree | a7055146e30551104480efd5f80898e21ae6aa5c /plugins/Manganelo.hpp | |
parent | 7e8a2f23a40e6374ddfb551920257846021e86fa (diff) |
Add manga chapter viewing
Diffstat (limited to 'plugins/Manganelo.hpp')
-rw-r--r-- | plugins/Manganelo.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/Manganelo.hpp b/plugins/Manganelo.hpp index 4ed976f..5e9382e 100644 --- a/plugins/Manganelo.hpp +++ b/plugins/Manganelo.hpp @@ -5,7 +5,13 @@ namespace QuickMedia { class Manganelo : public Plugin { public: - SearchResult search(const std::string &text, std::vector<std::unique_ptr<BodyItem>> &result_items) override; + SearchResult search(const std::string &url, std::vector<std::unique_ptr<BodyItem>> &result_items, Page &next_page) override; SuggestionResult update_search_suggestions(const std::string &text, std::vector<std::unique_ptr<BodyItem>> &result_items) override; + ImageResult get_image_by_index(const std::string &url, int index, std::string &image_data); + private: + ImageResult get_image_urls_for_chapter(const std::string &url, std::vector<std::string> &urls); + private: + std::string last_chapter_url; + std::vector<std::string> last_chapter_image_urls; }; }
\ No newline at end of file |