aboutsummaryrefslogtreecommitdiff
path: root/plugins/Plugin.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Plugin.hpp')
-rw-r--r--plugins/Plugin.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Plugin.hpp b/plugins/Plugin.hpp
index 3df53ca..54d49e5 100644
--- a/plugins/Plugin.hpp
+++ b/plugins/Plugin.hpp
@@ -44,11 +44,14 @@ namespace QuickMedia {
public:
virtual ~Plugin() = default;
- virtual SearchResult search(const std::string &text, std::vector<std::unique_ptr<BodyItem>> &result_items, Page &next_page) = 0;
+ virtual SearchResult search(const std::string &text, std::vector<std::unique_ptr<BodyItem>> &result_items);
virtual SuggestionResult update_search_suggestions(const std::string &text, std::vector<std::unique_ptr<BodyItem>> &result_items);
virtual std::vector<std::unique_ptr<BodyItem>> get_related_media(const std::string &url);
virtual bool search_suggestions_has_thumbnails() const = 0;
virtual bool search_results_has_thumbnails() const = 0;
+ virtual int get_search_delay() const = 0;
+ virtual bool search_suggestion_is_search() const { return false; }
+ virtual Page get_page_after_search() const = 0;
protected:
std::string url_param_encode(const std::string &param) const;
};