From 11f644afe434ce6b6d570c9da2a95590321871b3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 31 Oct 2020 07:12:16 +0100 Subject: Make matrix posting, deleting, replying, edit async and video check if streamable async --- include/QuickMedia.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/QuickMedia.hpp') diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 6f8e3ff..b9ec2d9 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -36,6 +36,12 @@ namespace QuickMedia { Path source; Path destination; }; + + enum class TaskResult { + TRUE, + FALSE, + CANCEL + }; class Program { public: @@ -65,6 +71,8 @@ namespace QuickMedia { void chat_page(MatrixChatPage *chat_page, RoomData *current_room); void after_matrix_login_page(); + TaskResult run_task_with_loading_screen(std::function callback); + enum class LoadImageResult { OK, FAILED, -- cgit v1.2.3