diff options
| author | saturneric <[email protected]> | 2026-09-19 12:01:05 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-09-19 12:01:05 +0200 |
| commit | a951c08beaf825d4ea47dd0806845c35d0ec2a91 (patch) | |
| tree | b732d6db5cab5a52739eaa9a62e70ceeadaef218 /src/m_gpg_info | |
| parent | feat(modules): adopt manifest-driven module builds (diff) | |
| download | modules-a951c08beaf825d4ea47dd0806845c35d0ec2a91.tar.gz modules-a951c08beaf825d4ea47dd0806845c35d0ec2a91.zip | |
refactor(modules): migrate to unified GFModule API
- replace legacy module utility includes across module sources
- simplify bootstrap and translation registration macros
- update module headers to use the unified public interface
- replace secure object creation with SDK object factories
Diffstat (limited to 'src/m_gpg_info')
| -rw-r--r-- | src/m_gpg_info/GnuPGInfoGatheringModule.cpp | 9 | ||||
| -rw-r--r-- | src/m_gpg_info/GnuPGInfoGatheringModule.h | 4 | ||||
| -rw-r--r-- | src/m_gpg_info/GnupgTab.cpp | 4 |
3 files changed, 6 insertions, 11 deletions
diff --git a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp index fc202d8..ff3c233 100644 --- a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp +++ b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp @@ -48,19 +48,16 @@ // c++ #include <optional> -#include "GFModuleCommonUtils.hpp" +#include "GFModule.h" #include "GFModuleBootstrap.h" -#include "GFModuleDefine.h" #include "GnupgTab.h" #include "GpgInfo.h" // Ported to the single bootstrap symbol: this module now describes itself // through one versioned table instead of ten separately-resolved symbols. -GF_MODULE_BOOTSTRAP_V2("com.bktus.gpgfrontend.module.gnupg_info_gathering", - "GatherGnupgInfo", "1.2.2", - "Try gathering gnupg information.", "Saturneric") +GF_MODULE_BOOTSTRAP() -DEFINE_TRANSLATIONS_STRUCTURE(ModuleGnuPGInfoGathering); +DEFINE_TRANSLATIONS_STRUCTURE(); extern auto CalculateBinaryChecksum(const QString &path) -> std::optional<QString>; diff --git a/src/m_gpg_info/GnuPGInfoGatheringModule.h b/src/m_gpg_info/GnuPGInfoGatheringModule.h index e021464..a59d85c 100644 --- a/src/m_gpg_info/GnuPGInfoGatheringModule.h +++ b/src/m_gpg_info/GnuPGInfoGatheringModule.h @@ -28,6 +28,4 @@ #pragma once -#include "GFModuleDeclare.h" - -GF_MODULE_API_DECLARE
\ No newline at end of file +#include "GFModule.h" diff --git a/src/m_gpg_info/GnupgTab.cpp b/src/m_gpg_info/GnupgTab.cpp index 299b53d..3cb9d3d 100644 --- a/src/m_gpg_info/GnupgTab.cpp +++ b/src/m_gpg_info/GnupgTab.cpp @@ -34,7 +34,7 @@ #include <QtConcurrent> -#include "GFModuleCommonUtils.hpp" +#include "GFModule.h" #include "GFSDKModule.h" #include "GnuPGInfoGatheringModule.h" #include "ui_GnuPGInfo.h" @@ -42,7 +42,7 @@ extern auto StartGatheringAllGnuPGInfo() -> int; GnupgTab::GnupgTab(QWidget* parent) - : QWidget(parent), ui_(SecureCreateSharedObject<Ui_GnuPGInfo>()) { + : QWidget(parent), ui_(SdkCreateSharedObject<Ui_GnuPGInfo>()) { ui_->setupUi(this); QStringList components_column_titles; |
