blob: b9627fe71156b47e0582e7088cf5160419d93c41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "Manga.hpp"
#include <vector>
#include <map>
namespace QuickMedia {
struct MangaPlugin {
std::unique_ptr<Page> page;
std::string title;
std::string service_name;
std::string logo_path;
};
class MangaCombinedSearchPage : public Page {
public:
MangaCombinedSearchPage(Program *program, std::vector<MangaPlugin> search_pages);
const char* get_title() const override { return "All"; }
bool search_is_filter() override { return false; }
SearchResult search(const std::string &str, BodyItems &result_items) override;
PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override;
PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override;
sf::Vector2i get_thumbnail_max_size() override { return sf::Vector2i(101, 141); };
private:
std::vector<MangaPlugin> search_pages;
};
}
|