aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/GlobalModuleContext.h
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2024-05-11 17:18:36 +0000
committerGitHub <[email protected]>2024-05-11 17:18:36 +0000
commitf909f2c4c35b187eb165ec5545e35d54c6d92bf3 (patch)
tree428fe9e63ecae6bb93be6f20cd2b1ee9b29ffd8d /src/core/module/GlobalModuleContext.h
parentMerge pull request #145 from jermanuts/jermanuts-wizard-links-update (diff)
parentfix: remove qt5compat and redirect dll output path of modules (diff)
downloadGpgFrontend-f909f2c4c35b187eb165ec5545e35d54c6d92bf3.tar.gz
GpgFrontend-f909f2c4c35b187eb165ec5545e35d54c6d92bf3.zip
Merge pull request #148 from saturneric/develop
Develop 2.1.3.1
Diffstat (limited to 'src/core/module/GlobalModuleContext.h')
-rw-r--r--src/core/module/GlobalModuleContext.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/core/module/GlobalModuleContext.h b/src/core/module/GlobalModuleContext.h
index 1c971bb5..8942b04d 100644
--- a/src/core/module/GlobalModuleContext.h
+++ b/src/core/module/GlobalModuleContext.h
@@ -58,6 +58,8 @@ class GPGFRONTEND_CORE_EXPORT GlobalModuleContext : public QObject {
~GlobalModuleContext() override;
+ auto SearchModule(ModuleIdentifier) -> ModulePtr;
+
auto GetChannel(ModuleRawPtr) -> int;
static auto GetDefaultChannel(ModuleRawPtr) -> int;
@@ -68,7 +70,7 @@ class GPGFRONTEND_CORE_EXPORT GlobalModuleContext : public QObject {
auto GetGlobalTaskRunner() -> std::optional<TaskRunnerPtr>;
- auto RegisterModule(ModulePtr) -> bool;
+ auto RegisterModule(ModulePtr, bool) -> bool;
auto ActiveModule(ModuleIdentifier) -> bool;
@@ -76,10 +78,18 @@ class GPGFRONTEND_CORE_EXPORT GlobalModuleContext : public QObject {
auto ListenEvent(ModuleIdentifier, EventIdentifier) -> bool;
- auto TriggerEvent(EventRefrernce) -> bool;
+ auto TriggerEvent(EventReference) -> bool;
+
+ auto SearchEvent(EventTriggerIdentifier) -> std::optional<EventReference>;
+
+ auto GetModuleListening(ModuleIdentifier) -> QList<EventIdentifier>;
auto IsModuleActivated(ModuleIdentifier) -> bool;
+ auto IsIntegratedModule(ModuleIdentifier) -> bool;
+
+ auto ListAllRegisteredModuleID() -> QList<ModuleIdentifier>;
+
private:
class Impl;
SecureUniquePtr<Impl> p_;