diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-31 07:12:16 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-31 07:12:16 +0100 |
commit | 11f644afe434ce6b6d570c9da2a95590321871b3 (patch) | |
tree | 065ce7f5a9615daba7eb758bb30ccdd46bed3bc2 /include/QuickMedia.hpp | |
parent | 928f2525c29929de0c2ab520f48c82b5cb882aa7 (diff) |
Make matrix posting, deleting, replying, edit async and video check if streamable async
Diffstat (limited to 'include/QuickMedia.hpp')
-rw-r--r-- | include/QuickMedia.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<bool()> callback); + enum class LoadImageResult { OK, FAILED, |