aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/ModuleManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/module/ModuleManager.h')
-rw-r--r--src/core/module/ModuleManager.h12
1 files changed, 9 insertions, 3 deletions
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 <vector>
+
#include "core/module/Event.h"
namespace GpgFrontend::Thread {
@@ -52,9 +54,6 @@ using Namespace = std::string;
using Key = std::string;
using LPCallback = std::function<void(Namespace, Key, int, std::any)>;
-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<Key>;
+
private:
class Impl;
std::unique_ptr<Impl> 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<Key>;
+
template <typename T>
auto RetrieveRTValueTyped(const std::string& namespace_, const std::string& key)
-> std::optional<T> {