aboutsummaryrefslogtreecommitdiff
path: root/plugins/Pipe.hpp
blob: 46864be67cd9cc27bdd7b8cd2e11e0c7943e40ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "Page.hpp"

namespace QuickMedia {
    class PipePage : public Page {
    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;
        bool is_single_page() const override { return true; }

        static void load_body_items_from_stdin(BodyItems &items);
    private:
        const char *title;
    };
}