diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-08-03 15:06:57 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-08-05 05:50:23 +0200 |
commit | 6c85194c3b1baef0eaa011c4f1b8e48e11860f45 (patch) | |
tree | 61f3eb4304091fd2203519702a4f4daf184c5a59 /plugins | |
parent | cbc6997c0a5659239d2cd971f2fa77eeda53550b (diff) |
Make body items private, add accessor functions
This allows body to automatically update dirty state (and other states).
Correctly format newlines in codeblocks in matrix.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Matrix.hpp | 2 | ||||
-rw-r--r-- | plugins/Page.hpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index dd633e5..e94cc13 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -321,7 +321,6 @@ namespace QuickMedia { PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override; bool submit_is_async() override { return false; } bool clear_search_after_submit() override { return true; } - void on_navigate_to_page(Body *body) override; void add_body_item(std::shared_ptr<BodyItem> body_item); @@ -352,7 +351,6 @@ namespace QuickMedia { PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override; bool submit_is_async() override { return false; } bool clear_search_after_submit() override { return true; } - void on_navigate_to_page(Body *body) override; void add_room_body_item_to_tag(std::shared_ptr<BodyItem> body_item, const std::string &tag); void remove_room_body_item_from_tag(std::shared_ptr<BodyItem> body_item, const std::string &tag); diff --git a/plugins/Page.hpp b/plugins/Page.hpp index 6cea186..c61fd6d 100644 --- a/plugins/Page.hpp +++ b/plugins/Page.hpp @@ -8,6 +8,7 @@ #include "../include/MediaChapter.hpp" namespace QuickMedia { + class Program; constexpr int SEARCH_DELAY_FILTER = 50; // TODO: Remove to PageType when the other PageType is removed |