aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/GlobalModuleContext.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-10-23 06:29:25 +0000
committersaturneric <[email protected]>2023-10-23 06:29:25 +0000
commit31fc827672a131da020c4b4a0c3c8a145d477835 (patch)
treea825cdbf87d69d7449d00f7360c797e755e8f783 /src/core/module/GlobalModuleContext.h
parentfix: improve the stability of thread system (diff)
downloadGpgFrontend-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.h13
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