blob: fbf7a41e0545010851db17592e2fa4502eeddd8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#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() const override { return false; }
void copy_to_clipboard(const BodyItem *body_item) const 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);
static std::shared_ptr<BodyItem> add_google_search(const std::string &search_term);
};
}
|