aboutsummaryrefslogtreecommitdiff
path: root/plugins/Page.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-29 09:27:41 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-29 09:27:41 +0200
commita12c897435e615618b14f5cbdd50c7d01dd291fa (patch)
treedae906a7a4a46f45f77ff2d41c53569b1354d8f6 /plugins/Page.hpp
parentb4f2787ef695f9957fbf6c8674ef1669d8524b0a (diff)
Allow bookmarking manga from chapters page
Diffstat (limited to 'plugins/Page.hpp')
-rw-r--r--plugins/Page.hpp2
1 files changed, 2 insertions, 0 deletions
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<BodyItem> 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