diff options
Diffstat (limited to 'src/core/function/gpg/GpgCommandExecutor.h')
-rw-r--r-- | src/core/function/gpg/GpgCommandExecutor.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/function/gpg/GpgCommandExecutor.h b/src/core/function/gpg/GpgCommandExecutor.h index c597feac..da0e7a8b 100644 --- a/src/core/function/gpg/GpgCommandExecutor.h +++ b/src/core/function/gpg/GpgCommandExecutor.h @@ -55,7 +55,7 @@ class GPGFRONTEND_CORE_EXPORT GpgCommandExecutor int channel = SingletonFunctionObject::GetDefaultChannel()); /** - * @brief Excuting an order + * @brief Excuting a command * * @param arguments Command parameters * @param interact_func Command answering function @@ -66,6 +66,11 @@ class GPGFRONTEND_CORE_EXPORT GpgCommandExecutor [](int, std::string, std::string) {}, std::function<void(QProcess *)> interact_func = [](QProcess *) {}); + void ExecuteConcurrently( + std::string cmd, std::vector<std::string> arguments, + std::function<void(int, std::string, std::string)> callback, + std::function<void(QProcess *)> interact_func = [](QProcess *) {}); + private: GpgContext &ctx_ = GpgContext::GetInstance( SingletonFunctionObject::GetChannel()); ///< Corresponding context |