aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/GlobalModuleContext.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-10-28 18:46:15 +0000
committersaturneric <[email protected]>2023-10-28 18:46:15 +0000
commitfd46d4667611c0db9cea3f06205727399b6fb5fd (patch)
tree8755059620d00d1690673d963cd0d913df92ae1c /src/core/module/GlobalModuleContext.h
parentfeat: introduce clang-tidy config and modify clang-format config (diff)
downloadGpgFrontend-fd46d4667611c0db9cea3f06205727399b6fb5fd.tar.gz
GpgFrontend-fd46d4667611c0db9cea3f06205727399b6fb5fd.zip
refactor: start to tidy up code using clang-tidy
Diffstat (limited to 'src/core/module/GlobalModuleContext.h')
-rw-r--r--src/core/module/GlobalModuleContext.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/core/module/GlobalModuleContext.h b/src/core/module/GlobalModuleContext.h
index 8ef1f644..ea9465e1 100644
--- a/src/core/module/GlobalModuleContext.h
+++ b/src/core/module/GlobalModuleContext.h
@@ -53,31 +53,31 @@ using TaskRunnerPtr = std::shared_ptr<Thread::TaskRunner>;
class GPGFRONTEND_CORE_EXPORT GlobalModuleContext : public QObject {
Q_OBJECT
public:
- GlobalModuleContext(TaskRunnerPtr);
+ explicit GlobalModuleContext(TaskRunnerPtr);
- ~GlobalModuleContext();
+ ~GlobalModuleContext() override;
- int GetChannel(ModuleRawPtr);
+ auto GetChannel(ModuleRawPtr) -> int;
- int GetDefaultChannel(ModuleRawPtr);
+ static auto GetDefaultChannel(ModuleRawPtr) -> int;
- std::optional<TaskRunnerPtr> GetTaskRunner(ModuleRawPtr);
+ auto GetTaskRunner(ModuleRawPtr) -> std::optional<TaskRunnerPtr>;
- std::optional<TaskRunnerPtr> GetTaskRunner(ModuleIdentifier);
+ auto GetTaskRunner(ModuleIdentifier) -> std::optional<TaskRunnerPtr>;
- std::optional<TaskRunnerPtr> GetGlobalTaskRunner();
+ auto GetGlobalTaskRunner() -> std::optional<TaskRunnerPtr>;
- bool RegisterModule(ModulePtr);
+ auto RegisterModule(ModulePtr) -> bool;
- bool ActiveModule(ModuleIdentifier);
+ auto ActiveModule(ModuleIdentifier) -> bool;
- bool DeactivateModule(ModuleIdentifier);
+ auto DeactivateModule(ModuleIdentifier) -> bool;
- bool ListenEvent(ModuleIdentifier, EventIdentifier);
+ auto ListenEvent(ModuleIdentifier, EventIdentifier) -> bool;
- bool TriggerEvent(EventRefrernce);
+ auto TriggerEvent(EventRefrernce) -> bool;
- bool IsModuleExists(ModuleIdentifier);
+ auto IsModuleExists(ModuleIdentifier) -> bool;
private:
class Impl;