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

#include "Page.hpp"

namespace QuickMedia {
    class SaucenaoPage : public LazyFetchPage {
    public:
        SaucenaoPage(Program *program, const std::string &upload_filepath) : LazyFetchPage(program), upload_filepath(upload_filepath) {}
        const char* get_title() const override { return "SauceNAO"; }
        PluginResult submit(const std::string&, const std::string&, std::vector<Tab>&) override {
            return PluginResult::OK;
        }
        PluginResult lazy_fetch(BodyItems &result_items) override;
        bool is_single_page() const override { return true; }
    private:
        std::string upload_filepath;
    };
}