aboutsummaryrefslogtreecommitdiff
path: root/plugins/Plugin.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-10-13 03:32:07 +0200
committerdec05eba <dec05eba@protonmail.com>2019-10-13 03:32:10 +0200
commit2ba21aa9aa91b975fe0c8be630dde05d0d9b5366 (patch)
tree272124e9068febe01630acc23ddea36866f77484 /plugins/Plugin.hpp
parentcc25c30cf177ee83d800925c72b7d334b76fb83d (diff)
Manganelo: Download all images at once, and show page after it has downloaded
Diffstat (limited to 'plugins/Plugin.hpp')
-rw-r--r--plugins/Plugin.hpp3
1 files changed, 3 insertions, 0 deletions
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 &param) const;
};