aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Pipe.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/Pipe.hpp b/plugins/Pipe.hpp
new file mode 100644
index 0000000..0711ee4
--- /dev/null
+++ b/plugins/Pipe.hpp
@@ -0,0 +1,15 @@
+#pragma once
+
+#include "Page.hpp"
+
+namespace QuickMedia {
+ class PipePage : public Page {
+ public:
+ PipePage(Program *program) : Page(program) {}
+ const char* get_title() const override { return ""; }
+ 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);
+ };
+} \ No newline at end of file