aboutsummaryrefslogtreecommitdiff
path: root/plugins/Pipe.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-06 06:16:47 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-06 06:16:47 +0200
commit04e852c45a3f309d5e139b0ca059b32277c250e4 (patch)
treed704413fa0d76bf7f8c92eacce5e96e0a3d4c874 /plugins/Pipe.hpp
parent797a36228bdb3b77b7314585a31de6f27feab51d (diff)
Create a unified launcher for quickmedia
Diffstat (limited to 'plugins/Pipe.hpp')
-rw-r--r--plugins/Pipe.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Pipe.hpp b/plugins/Pipe.hpp
index 0711ee4..46864be 100644
--- a/plugins/Pipe.hpp
+++ b/plugins/Pipe.hpp
@@ -5,11 +5,13 @@
namespace QuickMedia {
class PipePage : public Page {
public:
- PipePage(Program *program) : Page(program) {}
- const char* get_title() const override { return ""; }
+ 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;
bool is_single_page() const override { return true; }
static void load_body_items_from_stdin(BodyItems &items);
+ private:
+ const char *title;
};
} \ No newline at end of file