From 75c610d1f65d741bbeba9f1ddeef60a6e9315427 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 7 Feb 2022 22:54:20 +0100 Subject: Use one struct for all args in Page::submit instead of multiple args (easier to add new fields without changing code) Also remove submit_body_item from page. --- plugins/MangaCombined.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/MangaCombined.hpp') diff --git a/plugins/MangaCombined.hpp b/plugins/MangaCombined.hpp index 39a143c..1348b1b 100644 --- a/plugins/MangaCombined.hpp +++ b/plugins/MangaCombined.hpp @@ -21,7 +21,7 @@ namespace QuickMedia { 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 &result_tabs) override; + PluginResult submit(const SubmitArgs &args, std::vector &result_tabs) override; void cancel_operation() override; private: std::vector search_pages; -- cgit v1.2.3