aboutsummaryrefslogtreecommitdiff
path: root/plugins/Page.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-26 09:48:25 +0100
committerdec05eba <dec05eba@protonmail.com>2020-10-29 04:21:15 +0100
commit620123fbd6c18dc48a25cc735565f6d8d85f8639 (patch)
tree1563c8d2867f80f7c5cf00c15c8a1b6612de9f67 /plugins/Page.hpp
parent0d432776c13f7b7bfd94d8ea2a7a41be33f21c8d (diff)
Matrix: add room tags
Fix pinned events that are added after starting QuickMedia (before this change it adds all elements again to the list). Add /me command. Other fixes...
Diffstat (limited to 'plugins/Page.hpp')
-rw-r--r--plugins/Page.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Page.hpp b/plugins/Page.hpp
index de80b4f..cc7dad6 100644
--- a/plugins/Page.hpp
+++ b/plugins/Page.hpp
@@ -14,7 +14,8 @@ namespace QuickMedia {
REGULAR,
MANGA_IMAGES,
IMAGE_BOARD_THREAD,
- VIDEO
+ VIDEO,
+ CHAT
};
class Page {
@@ -46,6 +47,9 @@ namespace QuickMedia {
// This is called both when first navigating to page and when going back to page
virtual void on_navigate_to_page() {};
+ // Called periodically (every frame right now) if this page is the currently active one
+ virtual void update() {}
+
bool is_tor_enabled();
std::unique_ptr<Body> create_body();
std::unique_ptr<SearchBar> create_search_bar(const std::string &placeholder_text, int search_delay);