diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-07 22:54:20 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-07 22:55:11 +0100 |
commit | 75c610d1f65d741bbeba9f1ddeef60a6e9315427 (patch) | |
tree | 0dd79a5a7f35c89b9672d55fbf24cb1f6de13aa9 /plugins/Pipe.hpp | |
parent | 9539a71dbeafdc4107d3b92eefada332ee45579a (diff) |
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.
Diffstat (limited to 'plugins/Pipe.hpp')
-rw-r--r-- | plugins/Pipe.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Pipe.hpp b/plugins/Pipe.hpp index 46864be..8a6454a 100644 --- a/plugins/Pipe.hpp +++ b/plugins/Pipe.hpp @@ -7,7 +7,7 @@ namespace QuickMedia { public: PipePage(Program *program, const char *title = "") : Page(program), title(title) {} const char* get_title() const override { return title; } - PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override; + PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override; bool is_single_page() const override { return true; } static void load_body_items_from_stdin(BodyItems &items); |