From 41c12e92031284e357bab04fe6e08b45c6dd3ba8 Mon Sep 17 00:00:00 2001 From: saturneric Date: Fri, 27 Oct 2023 21:21:03 +0800 Subject: feat: improve thread system and gathering gnupg options info to rt --- src/core/function/gpg/GpgCommandExecutor.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/function/gpg/GpgCommandExecutor.h') 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 + +#include "core/module/Module.h" +#include "core/thread/TaskRunner.h" #ifndef WINDOWS #include #endif @@ -55,11 +58,13 @@ class GPGFRONTEND_CORE_EXPORT GpgCommandExecutor const std::vector arguments; const GpgCommandExecutorCallback cb_func; const GpgCommandExecutorInteractor int_func; + Module::TaskRunnerPtr task_runner = nullptr; ExecuteContext( std::string cmd, std::vector arguments, GpgCommandExecutorCallback callback = [](int, std::string, std::string) {}, + Module::TaskRunnerPtr task_runner = nullptr, GpgCommandExecutorInteractor int_func = [](QProcess *) {}); }; -- cgit v1.2.3