aboutsummaryrefslogtreecommitdiff
path: root/plugins/Pipe.hpp
blob: 8a6454a3bef79b840dbcd6ec927e6a268674da1c (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 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);
    private:
        const char *title;
    };
}