aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_gpg_info
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2026-09-19 14:41:22 +0200
committersaturneric <[email protected]>2026-09-19 14:41:22 +0200
commit7b9bb0845f49b26857cf851f46c82695b62c8c88 (patch)
tree885fdfcdaf1fcb6313e3dcf419aa3038361e3236 /src/m_gpg_info
parentrefactor(modules): migrate modules to runtime API (diff)
downloadmodules-7b9bb0845f49b26857cf851f46c82695b62c8c88.tar.gz
modules-7b9bb0845f49b26857cf851f46c82695b62c8c88.zip
style(formatting): reformat module source files
- apply consistent C++ formatting across email and key modules - normalize include ordering and line wrapping - preserve existing behavior while improving readability
Diffstat (limited to 'src/m_gpg_info')
-rw-r--r--src/m_gpg_info/GnupgTab.cpp29
1 files changed, 18 insertions, 11 deletions
diff --git a/src/m_gpg_info/GnupgTab.cpp b/src/m_gpg_info/GnupgTab.cpp
index 3cb9d3d..6f32f12 100644
--- a/src/m_gpg_info/GnupgTab.cpp
+++ b/src/m_gpg_info/GnupgTab.cpp
@@ -131,7 +131,8 @@ void GnupgTab::slot_process_software_info() {
int row = 0;
for (auto& component : components) {
auto component_info_json_bytes = UDUP(GFModuleRetrieveRTValueOrDefault(
- GFGetModuleID(), (QString("gnupg.components.%1").arg(component)).toUtf8().constData(),
+ GFGetModuleID(),
+ (QString("gnupg.components.%1").arg(component)).toUtf8().constData(),
""));
auto component_info_json =
@@ -186,7 +187,8 @@ void GnupgTab::slot_process_software_info() {
row = 0;
for (auto& dir : dirs) {
const auto dir_path = UDUP(GFModuleRetrieveRTValueOrDefault(
- GFGetModuleID(), (QString("gnupg.dirs.%1").arg(dir)).toUtf8().constData(), ""));
+ GFGetModuleID(),
+ (QString("gnupg.dirs.%1").arg(dir)).toUtf8().constData(), ""));
if (dir_path.isEmpty()) continue;
@@ -209,7 +211,9 @@ void GnupgTab::slot_process_software_info() {
char** p_options;
auto p_options_size = GFModuleListRTChildKeys(
GFGetModuleID(),
- (QString("gnupg.components.%1.options").arg(component)).toUtf8().constData(),
+ (QString("gnupg.components.%1.options").arg(component))
+ .toUtf8()
+ .constData(),
&p_options);
auto options = CharArrayToQStringList(p_options, p_options_size);
@@ -218,8 +222,10 @@ void GnupgTab::slot_process_software_info() {
UDUP(GFModuleRetrieveRTValueOrDefault(
GFGetModuleID(),
(QString("gnupg.components.%1.options.%2")
- .arg(component)
- .arg(option)).toUtf8().constData(),
+ .arg(component)
+ .arg(option))
+ .toUtf8()
+ .constData(),
""))
.toUtf8());
@@ -241,16 +247,18 @@ void GnupgTab::slot_process_software_info() {
char** pc_options;
auto pc_options_size = GFModuleListRTChildKeys(
GFGetModuleID(),
- (QString("gnupg.components.%1.options").arg(component)).toUtf8().constData(),
+ (QString("gnupg.components.%1.options").arg(component))
+ .toUtf8()
+ .constData(),
&pc_options);
auto c_options = CharArrayToQStringList(pc_options, pc_options_size);
for (auto& option : c_options) {
auto option_info_json_bytes = UDUP(GFModuleRetrieveRTValueOrDefault(
GFGetModuleID(),
- (QString("gnupg.components.%1.options.%2")
- .arg(component)
- .arg(option)).toUtf8().constData(),
+ (QString("gnupg.components.%1.options.%2").arg(component).arg(option))
+ .toUtf8()
+ .constData(),
""));
auto option_info_json =
@@ -324,8 +332,7 @@ GnupgTabWatcher::GnupgTabWatcher(GnupgTab* tab) {
auto future = QtConcurrent::run(QThreadPool::globalInstance(), [=]() {
if (StartGatheringAllGnuPGInfo() >= 0) {
- GFModuleUpsertRTValueBool("ui",
- "env.state.gnupg_info_gathering", 1);
+ GFModuleUpsertRTValueBool("ui", "env.state.gnupg_info_gathering", 1);
emit SignalGnuPGInfoGathered();
}
this->deleteLater();