aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/LocalAnime.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/LocalAnime.hpp b/plugins/LocalAnime.hpp
new file mode 100644
index 0000000..cd240d3
--- /dev/null
+++ b/plugins/LocalAnime.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "Page.hpp"
+
+// TODO: Progress > 90% = fully watched (because ending might have been skipped)
+
+namespace QuickMedia {
+ class LocalAnimeSearchPage : public LazyFetchPage {
+ public:
+ LocalAnimeSearchPage(Program *program) : LazyFetchPage(program) {}
+ const char* get_title() const override { return "Search"; }
+ bool search_is_filter() override { return true; }
+ PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override;
+ PluginResult lazy_fetch(BodyItems &result_items) override;
+ const char* get_bookmark_name() const override { return "local-anime"; }
+ bool reload_on_page_change() override { return true; }
+ bool reseek_to_body_item_by_url() override { return true; }
+ std::shared_ptr<BodyItem> get_bookmark_body_item(BodyItem *selected_item) override;
+ void toggle_read(BodyItem *selected_item) override;
+ };
+} \ No newline at end of file