diff options
author | Saturneric <[email protected]> | 2023-10-25 07:40:43 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-10-25 07:40:43 +0000 |
commit | a23b2fbc707406dec0dd924c089b4285bc7f0010 (patch) | |
tree | 7773e4a3e45a26a38735450f065c637e170f202d /src/core/module/ModuleManager.h | |
parent | feat: use module instead of integrated code at version checking task (diff) | |
download | GpgFrontend-a23b2fbc707406dec0dd924c089b4285bc7f0010.tar.gz GpgFrontend-a23b2fbc707406dec0dd924c089b4285bc7f0010.zip |
feat: use rt listen publish event function in main windows' app version upgrade notification
Diffstat (limited to 'src/core/module/ModuleManager.h')
-rw-r--r-- | src/core/module/ModuleManager.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/module/ModuleManager.h b/src/core/module/ModuleManager.h index 586627b6..865f196b 100644 --- a/src/core/module/ModuleManager.h +++ b/src/core/module/ModuleManager.h @@ -76,7 +76,7 @@ class GPGFRONTEND_CORE_EXPORT ModuleManager : public QObject { std::optional<std::any> RetrieveRTValue(Namespace, Key); - bool ListenPublish(QObject*, Namespace, Key, LPCallback); + bool ListenRTPublish(QObject*, Namespace, Key, LPCallback); private: class Impl; @@ -106,9 +106,12 @@ void TriggerEvent(const EventIdentifier& event_id, Args&&... args) { std::move(MakeEvent(event_id, std::forward<Args>(args)...))); } -bool GPGFRONTEND_CORE_EXPORT UpsertRTValueTyped(const std::string& namespace_, - const std::string& key, - const std::any& value); +bool GPGFRONTEND_CORE_EXPORT UpsertRTValue(const std::string& namespace_, + const std::string& key, + const std::any& value); + +bool GPGFRONTEND_CORE_EXPORT ListenRTPublishEvent(QObject*, Namespace, Key, + LPCallback); template <typename T> std::optional<T> RetrieveRTValueTyped(const std::string& namespace_, |