diff options
Diffstat (limited to 'plugins/Mangatown.hpp')
-rw-r--r-- | plugins/Mangatown.hpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/plugins/Mangatown.hpp b/plugins/Mangatown.hpp deleted file mode 100644 index 0b6c1c4..0000000 --- a/plugins/Mangatown.hpp +++ /dev/null @@ -1,33 +0,0 @@ -#pragma once - -#include "Manga.hpp" -#include <functional> - -namespace QuickMedia { - class MangatownSearchPage : public Page { - public: - MangatownSearchPage(Program *program) : Page(program) {} - const char* get_title() const override { return "All"; } - bool search_is_filter() override { return false; } - SearchResult search(const std::string &str, BodyItems &result_items) override; - PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override; - PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override; - sf::Vector2i get_thumbnail_max_size() override { return sf::Vector2i(101, 141); }; - }; - - class MangatownChaptersPage : public MangaChaptersPage { - public: - MangatownChaptersPage(Program *program, std::string manga_name, std::string manga_url) : MangaChaptersPage(program, std::move(manga_name), std::move(manga_url)) {} - PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override; - protected: - bool extract_id_from_url(const std::string &url, std::string &manga_id) const override; - const char* get_service_name() const override { return "mangatown"; } - }; - - class MangatownImagesPage : public MangaImagesPage { - public: - MangatownImagesPage(Program *program, std::string manga_name, std::string chapter_name, std::string url) : MangaImagesPage(program, std::move(manga_name), std::move(chapter_name), std::move(url)) {} - ImageResult get_page_image_urls(std::vector<std::string> &urls) override; - const char* get_service_name() const override { return "mangatown"; } - }; -}
\ No newline at end of file |