diff options
author | saturneric <[email protected]> | 2023-10-26 12:55:53 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-26 12:55:53 +0000 |
commit | ffc635e82ed2d85e41a86a5c9a12c6c98180d4b7 (patch) | |
tree | 3fc0682d0ea44da90840573ed0ad2904ab916e81 /src/core/function/gpg/GpgCommandExecutor.h | |
parent | feat: moving gnupg info gathering logic to a new module (diff) | |
download | GpgFrontend-ffc635e82ed2d85e41a86a5c9a12c6c98180d4b7.tar.gz GpgFrontend-ffc635e82ed2d85e41a86a5c9a12c6c98180d4b7.zip |
fix: improve the commu between gig module and core
Diffstat (limited to 'src/core/function/gpg/GpgCommandExecutor.h')
-rw-r--r-- | src/core/function/gpg/GpgCommandExecutor.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/core/function/gpg/GpgCommandExecutor.h b/src/core/function/gpg/GpgCommandExecutor.h index f8dc3a9c..bd356b8b 100644 --- a/src/core/function/gpg/GpgCommandExecutor.h +++ b/src/core/function/gpg/GpgCommandExecutor.h @@ -53,18 +53,14 @@ class GPGFRONTEND_CORE_EXPORT GpgCommandExecutor struct ExecuteContext { const std::string cmd; const std::vector<std::string> arguments; - const GpgCommandExecutorCallback callback; - const GpgCommandExecutorInteractor interact_func; + const GpgCommandExecutorCallback cb_func; + const GpgCommandExecutorInteractor int_func; ExecuteContext( std::string cmd, std::vector<std::string> arguments, GpgCommandExecutorCallback callback = [](int, std::string, std::string) {}, - GpgCommandExecutorInteractor interact_func = [](QProcess *) {}) - : cmd(cmd), - arguments(arguments), - callback(callback), - interact_func(interact_func) {} + GpgCommandExecutorInteractor int_func = [](QProcess *) {}); }; using ExecuteContexts = std::vector<ExecuteContext>; @@ -93,7 +89,7 @@ class GPGFRONTEND_CORE_EXPORT GpgCommandExecutor GpgContext &ctx_ = GpgContext::GetInstance( SingletonFunctionObject::GetChannel()); ///< Corresponding context - Thread::Task *build_task(const ExecuteContext &); + Thread::Task *build_task_from_exec_ctx(const ExecuteContext &); }; } // namespace GpgFrontend |