aboutsummaryrefslogtreecommitdiff
path: root/include/QuickMedia.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/QuickMedia.hpp')
-rw-r--r--include/QuickMedia.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index 821a427..c043962 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -59,6 +59,10 @@ namespace QuickMedia {
bool is_window_focused();
RoomData* get_current_chat_room();
+
+ void set_go_to_previous_page();
+
+ TaskResult run_task_with_loading_screen(std::function<bool()> callback);
private:
void base_event_handler(sf::Event &event, PageType previous_page, Body *body, SearchBar *search_bar, bool handle_key_press = true, bool handle_searchbar = true);
void page_loop(std::vector<Tab> &tabs);
@@ -71,8 +75,6 @@ namespace QuickMedia {
void chat_page(MatrixChatPage *chat_page, RoomData *current_room);
void after_matrix_login_page();
- TaskResult run_task_with_loading_screen(std::function<bool()> callback);
-
enum class LoadImageResult {
OK,
FAILED,
@@ -135,5 +137,7 @@ namespace QuickMedia {
std::vector<std::string> selected_files;
bool fit_image_to_window = false;
RoomData *current_chat_room = nullptr;
+ bool go_to_previous_page = false;
+ std::thread::id main_thread_id;
};
} \ No newline at end of file