1#ifndef IV_SRC_THREADS_PROCESSINGWITHDIALOG_HPP_
2#define IV_SRC_THREADS_PROCESSINGWITHDIALOG_HPP_
16 std::string
title {
"Processing"};
17 std::string
message {
"Some processing is happening, please wait..."};
Definition CDialog.hpp:21
Definition BackgroundTaskWithDialog.hpp:24
void runTask() const
Definition BackgroundTaskWithDialog.cpp:56
bool isCancelled() const
Definition BackgroundTaskWithDialog.cpp:51
std::thread m_thread
Definition BackgroundTaskWithDialog.hpp:39
std::weak_ptr< CDialog > m_dialog
Definition BackgroundTaskWithDialog.hpp:40
BackgroundTaskWithDialogParams m_params
Definition BackgroundTaskWithDialog.hpp:36
~BackgroundTaskWithDialog()
Definition BackgroundTaskWithDialog.cpp:15
void execute(CDialog *dlgFather)
Definition BackgroundTaskWithDialog.cpp:25
std::atomic_bool m_cancelRequested
Definition BackgroundTaskWithDialog.hpp:38
BackgroundTaskWithDialog(BackgroundTaskWithDialogParams params)
Definition BackgroundTaskWithDialog.cpp:10
Definition BackgroundTaskWithDialog.cpp:8
Definition BackgroundTaskWithDialog.hpp:15
std::string message
Definition BackgroundTaskWithDialog.hpp:17
bool showCancelButton
Definition BackgroundTaskWithDialog.hpp:20
std::string title
Definition BackgroundTaskWithDialog.hpp:16
std::function< void(const std::atomic_bool &cancelRequest)> processingFunction
Definition BackgroundTaskWithDialog.hpp:18
std::function< void(bool wasCancelled)> completionCallback
Definition BackgroundTaskWithDialog.hpp:19