diff options
author | saturneric <[email protected]> | 2023-10-27 13:21:03 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-27 13:21:03 +0000 |
commit | 41c12e92031284e357bab04fe6e08b45c6dd3ba8 (patch) | |
tree | e5750afe5feee6cca15aa9b3b0915012047e3aba /src/core/function/gpg/GpgCommandExecutor.h | |
parent | feat: gather more gnupg info to rt (diff) | |
download | GpgFrontend-41c12e92031284e357bab04fe6e08b45c6dd3ba8.tar.gz GpgFrontend-41c12e92031284e357bab04fe6e08b45c6dd3ba8.zip |
feat: improve thread system and gathering gnupg options info to rt
Diffstat (limited to 'src/core/function/gpg/GpgCommandExecutor.h')
-rw-r--r-- | src/core/function/gpg/GpgCommandExecutor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/function/gpg/GpgCommandExecutor.h b/src/core/function/gpg/GpgCommandExecutor.h index bd356b8b..fc9f2a83 100644 --- a/src/core/function/gpg/GpgCommandExecutor.h +++ b/src/core/function/gpg/GpgCommandExecutor.h @@ -29,6 +29,9 @@ #pragma once #include <initializer_list> + +#include "core/module/Module.h" +#include "core/thread/TaskRunner.h" #ifndef WINDOWS #include <boost/process.hpp> #endif @@ -55,11 +58,13 @@ class GPGFRONTEND_CORE_EXPORT GpgCommandExecutor const std::vector<std::string> arguments; const GpgCommandExecutorCallback cb_func; const GpgCommandExecutorInteractor int_func; + Module::TaskRunnerPtr task_runner = nullptr; ExecuteContext( std::string cmd, std::vector<std::string> arguments, GpgCommandExecutorCallback callback = [](int, std::string, std::string) {}, + Module::TaskRunnerPtr task_runner = nullptr, GpgCommandExecutorInteractor int_func = [](QProcess *) {}); }; |