diff options
author | saturneric <[email protected]> | 2023-10-17 18:04:05 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-17 18:04:05 +0000 |
commit | 4fa7cc872224014f6e5bc731164c74bfa96db06e (patch) | |
tree | 5bb101372e27524b26c7d8c8ce256832463104e8 /src/core/module/GlobalModuleContext.h | |
parent | fix: solve params mismatch issues (diff) | |
download | GpgFrontend-4fa7cc872224014f6e5bc731164c74bfa96db06e.tar.gz GpgFrontend-4fa7cc872224014f6e5bc731164c74bfa96db06e.zip |
feat: imporve module system
Diffstat (limited to 'src/core/module/GlobalModuleContext.h')
-rw-r--r-- | src/core/module/GlobalModuleContext.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/module/GlobalModuleContext.h b/src/core/module/GlobalModuleContext.h index e4dcac2f..fd90d303 100644 --- a/src/core/module/GlobalModuleContext.h +++ b/src/core/module/GlobalModuleContext.h @@ -41,6 +41,7 @@ class Module; class ModuleManager; using ModuleIdentifier = std::string; using ModulePtr = std::shared_ptr<Module>; +using ModuleRawPtr = Module*; using GlobalModuleContextPtr = std::shared_ptr<GlobalModuleContext>; @@ -53,11 +54,11 @@ class GPGFRONTEND_CORE_EXPORT GlobalModuleContext : public QObject { ~GlobalModuleContext(); - int GetChannel(ModulePtr); + int GetChannel(ModuleRawPtr); - int GetDefaultChannel(ModulePtr); + int GetDefaultChannel(ModuleRawPtr); - std::optional<TaskRunnerPtr> GetTaskRunner(ModulePtr); + std::optional<TaskRunnerPtr> GetTaskRunner(ModuleRawPtr); std::optional<TaskRunnerPtr> GetTaskRunner(ModuleIdentifier); |