From 2ba21aa9aa91b975fe0c8be630dde05d0d9b5366 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 13 Oct 2019 03:32:07 +0200 Subject: Manganelo: Download all images at once, and show page after it has downloaded --- plugins/Plugin.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Plugin.hpp') diff --git a/plugins/Plugin.hpp b/plugins/Plugin.hpp index d5802af..dffe898 100644 --- a/plugins/Plugin.hpp +++ b/plugins/Plugin.hpp @@ -50,6 +50,7 @@ namespace QuickMedia { class Plugin { public: + Plugin(const std::string &name) : name(name) {} virtual ~Plugin() = default; virtual PluginResult get_front_page(BodyItems &result_items) { @@ -74,6 +75,8 @@ namespace QuickMedia { virtual int get_search_delay() const = 0; virtual bool search_suggestion_is_search() const { return false; } virtual Page get_page_after_search() const = 0; + + const std::string name; protected: std::string url_param_encode(const std::string ¶m) const; }; -- cgit v1.2.3