From b7ceed0b87752077fe19fefe9b0df8ec27ce0531 Mon Sep 17 00:00:00 2001 From: saturneric Date: Wed, 25 Oct 2023 22:28:25 +0800 Subject: feat: moving gnupg info gathering logic to a new module --- src/core/module/ModuleManager.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/core/module/ModuleManager.cpp') diff --git a/src/core/module/ModuleManager.cpp b/src/core/module/ModuleManager.cpp index 4a78a85b..ba24ec7a 100644 --- a/src/core/module/ModuleManager.cpp +++ b/src/core/module/ModuleManager.cpp @@ -89,8 +89,8 @@ class ModuleManager::Impl { return grt_->LookupKV(n, k); } - bool ListenPublish(QObject* o, Namespace n, Key k, LPCallback c) { - return grt_->ListenPublish(o, n, k, c); + bool ListenPublish(QObject* o, Namespace n, Key k, LPCallback c, bool c_o) { + return grt_->ListenPublish(o, n, k, c, c_o); } private: @@ -107,8 +107,9 @@ bool UpsertRTValue(const std::string& namespace_, const std::string& key, } bool GPGFRONTEND_CORE_EXPORT ListenRTPublishEvent(QObject* o, Namespace n, - Key k, LPCallback c) { - return ModuleManager::GetInstance()->ListenRTPublish(o, n, k, c); + Key k, LPCallback c, + bool c_o) { + return ModuleManager::GetInstance()->ListenRTPublish(o, n, k, c, c_o); } ModuleManager::ModuleManager() : p_(std::make_unique()) {} @@ -146,8 +147,8 @@ std::optional ModuleManager::RetrieveRTValue(Namespace n, Key k) { } bool ModuleManager::ListenRTPublish(QObject* o, Namespace n, Key k, - LPCallback c) { - return p_->ListenPublish(o, n, k, c); + LPCallback c, bool c_o) { + return p_->ListenPublish(o, n, k, c, c_o); } ModuleIdentifier GetRealModuleIdentifier(const ModuleIdentifier& id) { -- cgit v1.2.3