From 6c85194c3b1baef0eaa011c4f1b8e48e11860f45 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 3 Aug 2021 15:06:57 +0200 Subject: 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. --- plugins/Matrix.hpp | 2 -- plugins/Page.hpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins') 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 &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 body_item); @@ -352,7 +351,6 @@ namespace QuickMedia { PluginResult submit(const std::string &title, const std::string &url, std::vector &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 body_item, const std::string &tag); void remove_room_body_item_from_tag(std::shared_ptr 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 -- cgit v1.2.3