aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/ModuleManager.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-04-14 12:56:18 +0000
committersaturneric <[email protected]>2024-04-14 12:56:18 +0000
commitcb2672ca430c54244df7bd46ef97256c3d840cbf (patch)
treea54bb28d61cf9dbf608261782c4f3febec72ea8c /src/core/module/ModuleManager.cpp
parentfix: use qt designer placeholder instead of custom initialized (diff)
downloadGpgFrontend-cb2672ca430c54244df7bd46ef97256c3d840cbf.tar.gz
GpgFrontend-cb2672ca430c54244df7bd46ef97256c3d840cbf.zip
feat: add a grt viewer and solve some issues in gnupg info tab
Diffstat (limited to 'src/core/module/ModuleManager.cpp')
-rw-r--r--src/core/module/ModuleManager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/module/ModuleManager.cpp b/src/core/module/ModuleManager.cpp
index 6da48eec..e00c8c8c 100644
--- a/src/core/module/ModuleManager.cpp
+++ b/src/core/module/ModuleManager.cpp
@@ -196,6 +196,8 @@ class ModuleManager::Impl {
return gmc_->IsModuleActivated(id);
}
+ auto GRT() -> GlobalRegisterTable* { return grt_.get(); }
+
private:
static ModuleMangerPtr global_module_manager;
SecureUniquePtr<GlobalModuleContext> gmc_;
@@ -299,4 +301,7 @@ auto ModuleManager::IsModuleActivated(ModuleIdentifier id) -> bool {
auto ModuleManager::ListAllRegisteredModuleID() -> QList<ModuleIdentifier> {
return p_->ListAllRegisteredModuleID();
};
+
+auto ModuleManager::GRT() -> GlobalRegisterTable* { return p_->GRT(); }
+
} // namespace GpgFrontend::Module \ No newline at end of file