From 9d16c9d5dfcd1171d713c3ba87a69d0f0fac4f33 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Wed, 29 Nov 2023 17:49:54 +0800 Subject: fix: repair gnupg info listing funtion --- src/core/module/ModuleManager.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/core/module/ModuleManager.h') diff --git a/src/core/module/ModuleManager.h b/src/core/module/ModuleManager.h index 55325ab6..cf845f96 100644 --- a/src/core/module/ModuleManager.h +++ b/src/core/module/ModuleManager.h @@ -28,6 +28,8 @@ #pragma once +#include + #include "core/module/Event.h" namespace GpgFrontend::Thread { @@ -52,9 +54,6 @@ using Namespace = std::string; using Key = std::string; using LPCallback = std::function; -auto GPGFRONTEND_CORE_EXPORT GetRealModuleIdentifier(const ModuleIdentifier& id) - -> ModuleIdentifier; - class GPGFRONTEND_CORE_EXPORT ModuleManager : public QObject { Q_OBJECT public: @@ -78,6 +77,9 @@ class GPGFRONTEND_CORE_EXPORT ModuleManager : public QObject { auto ListenRTPublish(QObject*, Namespace, Key, LPCallback) -> bool; + auto ListRTChildKeys(const std::string&, const std::string&) + -> std::vector; + private: class Impl; std::unique_ptr p_; @@ -114,6 +116,10 @@ auto GPGFRONTEND_CORE_EXPORT UpsertRTValue(const std::string& namespace_, auto GPGFRONTEND_CORE_EXPORT ListenRTPublishEvent(QObject*, Namespace, Key, LPCallback) -> bool; +auto GPGFRONTEND_CORE_EXPORT ListRTChildKeys(const std::string& namespace_, + const std::string& key) + -> std::vector; + template auto RetrieveRTValueTyped(const std::string& namespace_, const std::string& key) -> std::optional { -- cgit v1.2.3