diff options
| author | saturneric <[email protected]> | 2026-09-22 21:18:54 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-09-22 21:18:54 +0200 |
| commit | 4dabcb5c04bd018d838e5191b299dc7d04929f21 (patch) | |
| tree | 9a872c9b0a71051093aec34b6ec364a2416b2e62 /src/m_key_server_sync/SearchKeyDialog.cpp | |
| parent | refactor(gpg-info): migrate to module SDK APIs (diff) | |
| download | modules-4dabcb5c04bd018d838e5191b299dc7d04929f21.tar.gz modules-4dabcb5c04bd018d838e5191b299dc7d04929f21.zip | |
refactor(key-server-sync): migrate to SDK APIs
- use module-scoped storage and application user-agent providers
- replace legacy key export and import calls with SDK wrappers
- register and unregister settings pages through the SDK
- migrate GPG channel lookup and session cache operations
- declare storage capability in the module manifest
Diffstat (limited to 'src/m_key_server_sync/SearchKeyDialog.cpp')
| -rw-r--r-- | src/m_key_server_sync/SearchKeyDialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/m_key_server_sync/SearchKeyDialog.cpp b/src/m_key_server_sync/SearchKeyDialog.cpp index 5d790d5..3017d2b 100644 --- a/src/m_key_server_sync/SearchKeyDialog.cpp +++ b/src/m_key_server_sync/SearchKeyDialog.cpp @@ -369,12 +369,11 @@ void SearchKeyDialog::slot_lookup_finished_pks( FLOG_DEBUG("importing key data of size %1, data: %2", key_data.size(), QString::fromUtf8(key_data)); - auto channel = GFGpgCurrentGpgContextChannel(); + auto channel = GFGpgCurrentChannel(GFModuleSdkContext()); if (channel < 0) { slot_set_error_message(tr("No GPG context is available.")); return; } - GFGpgImportKeys(channel, this, key_data.data(), - static_cast<int>(key_data.size())); + gf::sdk::ImportKeys(GFModuleSdkContext(), channel, this, key_data); } |
