From 0fda98b233ae0f44b1f0a8691958087619b243e1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 12 Oct 2019 08:10:32 +0200 Subject: Start on 4chan, go to previous/next chapter when reaching beginning/end --- plugins/Fourchan.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 plugins/Fourchan.hpp (limited to 'plugins/Fourchan.hpp') diff --git a/plugins/Fourchan.hpp b/plugins/Fourchan.hpp new file mode 100644 index 0000000..d6b482b --- /dev/null +++ b/plugins/Fourchan.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include "Plugin.hpp" + +namespace QuickMedia { + class Fourchan : public Plugin { + public: + PluginResult get_front_page(BodyItems &result_items) override; + SearchResult search(const std::string &url, BodyItems &result_items) override; + SuggestionResult update_search_suggestions(const std::string &text, BodyItems &result_items) override; + PluginResult get_content_list(const std::string &url, BodyItems &result_items) override; + PluginResult get_content_details(const std::string &list_url, const std::string &url, BodyItems &result_items) override; + bool search_suggestions_has_thumbnails() const override { return false; } + bool search_results_has_thumbnails() const override { return false; } + int get_search_delay() const override { return 150; } + Page get_page_after_search() const override { return Page::CONTENT_LIST; } + }; +} \ No newline at end of file -- cgit v1.2.3