aboutsummaryrefslogtreecommitdiff
path: root/plugins/Page.hpp
diff options
context:
space:
mode:
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);