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

#include "Page.hpp"

namespace QuickMedia {
    class InfoPage : public Page {
    public:
        InfoPage(Program *program) : Page(program) {}
        const char* get_title() const override { return "Info"; }
        PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override;
        bool submit_is_async() override { return false; }

        static std::shared_ptr<BodyItem> add_url(const std::string &url);
        static std::shared_ptr<BodyItem> add_reverse_image_search(const std::string &image_url);
    };
}