aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-02-12 13:42:04 +0100
committerdec05eba <dec05eba@protonmail.com>2022-02-12 13:42:04 +0100
commita8d597d59e347a80b109060ec8c7a88827487f57 (patch)
tree27ed53ec000739a0b6b21355e5a936ae6e55ba39 /plugins
parent74b98bed98aad3e70e8abe51292767ea8a7d109a (diff)
Local manga: add ctrl+r to search page to mark manga as read/unread
Diffstat (limited to 'plugins')
-rw-r--r--plugins/LocalManga.hpp1
-rw-r--r--plugins/Page.hpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/plugins/LocalManga.hpp b/plugins/LocalManga.hpp
index eca5f96..e85e08b 100644
--- a/plugins/LocalManga.hpp
+++ b/plugins/LocalManga.hpp
@@ -33,6 +33,7 @@ namespace QuickMedia {
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;
private:
std::vector<LocalManga> manga_list;
std::unordered_set<std::string> finished_reading_manga;
diff --git a/plugins/Page.hpp b/plugins/Page.hpp
index 6864a5d..20d6000 100644
--- a/plugins/Page.hpp
+++ b/plugins/Page.hpp
@@ -71,6 +71,8 @@ namespace QuickMedia {
// |selected_item| may be nullptr.
virtual std::shared_ptr<BodyItem> get_bookmark_body_item(BodyItem *selected_item) { (void)selected_item; return nullptr; }
virtual bool is_bookmark_page() const { return false; }
+ // |selected_item| may be nullptr.
+ virtual void toggle_read(BodyItem *selected_item) { (void)selected_item; }
virtual bool is_lazy_fetch_page() const { return false; }
// Note: If submit is done without any selection, then the search term is sent as the |title| and |url|. Submit will only be sent if the input text is not empty or if an item is selected
virtual bool allow_submit_no_selection() const { return false; }