aboutsummaryrefslogtreecommitdiff
path: root/plugins/Info.hpp
blob: d2d9db3d8a41e345ddfe1019a586864711c4ef0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;

        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);
    };
}