diff options
author | saturneric <[email protected]> | 2023-10-23 06:29:25 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-23 06:29:25 +0000 |
commit | 31fc827672a131da020c4b4a0c3c8a145d477835 (patch) | |
tree | a825cdbf87d69d7449d00f7360c797e755e8f783 /src/core/module/GlobalModuleContext.h | |
parent | fix: improve the stability of thread system (diff) | |
download | GpgFrontend-31fc827672a131da020c4b4a0c3c8a145d477835.tar.gz GpgFrontend-31fc827672a131da020c4b4a0c3c8a145d477835.zip |
feat: improve project structure and add GRT for modules
Diffstat (limited to 'src/core/module/GlobalModuleContext.h')
-rw-r--r-- | src/core/module/GlobalModuleContext.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/module/GlobalModuleContext.h b/src/core/module/GlobalModuleContext.h index fd90d303..82ce23c1 100644 --- a/src/core/module/GlobalModuleContext.h +++ b/src/core/module/GlobalModuleContext.h @@ -26,16 +26,16 @@ * */ -#ifndef GPGFRONTEND_GLOBALMODULECONTEXT_H -#define GPGFRONTEND_GLOBALMODULECONTEXT_H +#pragma once -#include "core/GpgFrontendCore.h" #include "core/module/Event.h" #include "core/thread/TaskRunner.h" +#include "module/GlobalRegisterTable.h" namespace GpgFrontend::Module { class GlobalModuleContext; +class GlobalRegisterTable; class Module; class ModuleManager; @@ -43,7 +43,8 @@ using ModuleIdentifier = std::string; using ModulePtr = std::shared_ptr<Module>; using ModuleRawPtr = Module*; -using GlobalModuleContextPtr = std::shared_ptr<GlobalModuleContext>; +using GMCPtr = std::shared_ptr<GlobalModuleContext>; +using GRTPtr = std::shared_ptr<GlobalRegisterTable>; using TaskRunnerPtr = std::shared_ptr<Thread::TaskRunner>; @@ -79,6 +80,4 @@ class GPGFRONTEND_CORE_EXPORT GlobalModuleContext : public QObject { std::unique_ptr<Impl> p_; }; -} // namespace GpgFrontend::Module - -#endif // GPGFRONTEND_GLOBALMODULECONTEXT_H
\ No newline at end of file +} // namespace GpgFrontend::Module
\ No newline at end of file |