diff options
Diffstat (limited to 'src/core/module/GlobalModuleContext.h')
-rw-r--r-- | src/core/module/GlobalModuleContext.h | 14 |
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_; |