From 04e852c45a3f309d5e139b0ca059b32277c250e4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 6 Apr 2021 06:16:47 +0200 Subject: Create a unified launcher for quickmedia --- plugins/Pipe.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/Pipe.hpp') 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 &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 -- cgit v1.2.3