diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-28 22:50:42 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-28 22:50:42 +0200 |
commit | 67618e51ed44effba871447255a5e7389969ccaa (patch) | |
tree | 5831ef112d484c792b51794603740e0f8fc11284 /plugins/Spankbang.hpp | |
parent | 4694f8544c4cbd7e7d92323976b63cc77fdadb27 (diff) |
Create generic media plugin
Diffstat (limited to 'plugins/Spankbang.hpp')
-rw-r--r-- | plugins/Spankbang.hpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/plugins/Spankbang.hpp b/plugins/Spankbang.hpp deleted file mode 100644 index 06ea509..0000000 --- a/plugins/Spankbang.hpp +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -#include "Page.hpp" - -namespace QuickMedia { - class SpankbangSearchPage : public Page { - public: - SpankbangSearchPage(Program *program) : Page(program) {} - 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; - }; - - class SpankbangRelatedVideosPage : public RelatedVideosPage { - public: - SpankbangRelatedVideosPage(Program *program) : RelatedVideosPage(program) {} - PluginResult submit(const std::string&, const std::string&, std::vector<Tab> &result_tabs) override; - }; - - class SpankbangVideoPage : public VideoPage { - public: - SpankbangVideoPage(Program *program, const std::string &url) : VideoPage(program), url(url) {} - const char* get_title() const override { return ""; } - BodyItems get_related_media(const std::string &url, std::string &channel_url) override; - std::unique_ptr<Page> create_search_page(Program *program, int &search_delay) override; - std::unique_ptr<RelatedVideosPage> create_related_videos_page(Program *program, const std::string &video_url, const std::string &video_title) override; - std::unique_ptr<Page> create_channels_page(Program*, const std::string&) override { - return nullptr; - } - std::string get_url() override { return url; } - private: - std::string url; - }; -}
\ No newline at end of file |