aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/Module.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/Module.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/Module.h')
-rw-r--r--src/core/module/Module.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/core/module/Module.h b/src/core/module/Module.h
index bb7678ae..d2f6aa3b 100644
--- a/src/core/module/Module.h
+++ b/src/core/module/Module.h
@@ -26,10 +26,7 @@
*
*/
-#ifndef GPGFRONTEND_MODULE_H
-#define GPGFRONTEND_MODULE_H
-
-#include <memory>
+#pragma once
#include "core/module/Event.h"
#include "core/thread/Task.h"
@@ -45,7 +42,7 @@ using ModuleIdentifier = std::string;
using ModuleVersion = std::string;
using ModuleMetaData = std::map<std::string, std::string>;
using ModulePtr = std::shared_ptr<Module>;
-using GlobalModuleContextPtr = std::shared_ptr<GlobalModuleContext>;
+using GMCPtr = std::shared_ptr<GlobalModuleContext>;
using TaskRunnerPtr = std::shared_ptr<Thread::TaskRunner>;
@@ -66,7 +63,7 @@ class GPGFRONTEND_CORE_EXPORT Module : public QObject {
ModuleIdentifier GetModuleIdentifier() const;
- void SetGPC(GlobalModuleContextPtr);
+ void SetGPC(GMCPtr);
protected:
int getChannel();
@@ -82,6 +79,4 @@ class GPGFRONTEND_CORE_EXPORT Module : public QObject {
std::unique_ptr<Impl> p_;
};
-} // namespace GpgFrontend::Module
-
-#endif // GPGFRONTEND_MODULE_H \ No newline at end of file
+} // namespace GpgFrontend::Module \ No newline at end of file