From a12c897435e615618b14f5cbdd50c7d01dd291fa Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 29 Aug 2021 09:27:41 +0200 Subject: Allow bookmarking manga from chapters page --- plugins/Page.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/Page.hpp') diff --git a/plugins/Page.hpp b/plugins/Page.hpp index 39d76d6..3ecb016 100644 --- a/plugins/Page.hpp +++ b/plugins/Page.hpp @@ -61,6 +61,8 @@ namespace QuickMedia { virtual bool is_trackable() const { return false; } // Return nullptr if bookmark is not supported by this page virtual const char* get_bookmark_name() const { return nullptr; } + // If this returns nullptr then the currently selected body item is used instead + virtual std::shared_ptr get_bookmark_body_item() { return nullptr; } virtual bool is_bookmark_page() const { return false; } 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 -- cgit v1.2.3