Skip to content

Import dxcc record#965

Open
aa5sh wants to merge 11 commits intofoldynl:masterfrom
aa5sh:ImportDXCCRecord
Open

Import dxcc record#965
aa5sh wants to merge 11 commits intofoldynl:masterfrom
aa5sh:ImportDXCCRecord

Conversation

@aa5sh
Copy link
Copy Markdown

@aa5sh aa5sh commented Mar 18, 2026

This adds an option to pull down DXCC Credits granted and updates the log appropriately.
image

aa5sh added 6 commits March 17, 2026 23:49
Add support for downloading and importing LoTW DXCC credit records. Introduces a LOTW_DXCC enum and a new LogFormat::runQSOCreditImport() that matches QSOs by callsign/band/date and updates credit fields (credit_submitted/granted and app_lotw_credit_submitted/granted). ADI mapping and export params updated to include app_lotw_credit_* fields. LotwQSLDownloader gains a LotwDXCCCredits flag and uses a separate DXCC_CREDIT_API endpoint and parameter set; it calls runQSOCreditImport when DXCC mode is enabled. UI: DownloadQSLDialog adds a "LoTW DXCC Credits" group box, persists its state, and queues a DXCC download task. Also adds /build to .gitignore.
AdiFormat: default to midnight UTC when a record has a valid date but no valid time to avoid creating invalid QDateTime values.

LogFormat: make DXCC credit import more robust by matching records using a ±1 day tolerance (JULIANDAY difference) instead of exact same-date-only matching, log found matches, and update every matching contact (handling multiple QSOs) by setting each record and committing changes; also improve error/debug messages and adjust row-count handling.

UI (DownloadQSLDialog): replace the LoTW DXCC GroupBox with a one-off checkbox (lotwDXCCCheckBox), default it to unchecked/disabled when LoTW is not configured, stop persisting its state, and update the .ui layout and tabstops accordingly.
Remove handling of app_lotw_credit_submitted and app_lotw_credit_granted across the logging code. Changes remove setting these fields into SQL records (AdiFormat::contactFields2SQLRecord), remove them from DB->ADIF export parameters (AdiFormat::DB2ADIFExportParams), and stop checking them during QSO credit import condition updates (LogFormat::runQSOCreditImport). This cleans up unused/removed LoTW app credit fields.
Updated macOS build workflow to use macos-latest and modified installation steps for Qt libraries. Added notarization and signing steps for the app and DMG.
@foldynl
Copy link
Copy Markdown
Owner

foldynl commented Apr 2, 2026

I am just saving the specification : https://lotw.arrl.org/lotw-help/developer-query-dxcc-credits/

I'm a little worried about performance. Model operations are very expensive.

Can you please tell me when it should be turned off and when it should be turned on?

@aa5sh
Copy link
Copy Markdown
Author

aa5sh commented Apr 2, 2026

This operation would be something run very infrequently. Really only after an operator would submit a DXCC Application and it is finalized to update their log with new credits - like annually. So it may make sense to not have it here but maybe somewhere else so people don't run it often.

aa5sh added 4 commits April 26, 2026 05:58
Updated macOS CI workflow to include additional dependencies, improved tagging support, and enhanced error handling for notarization and codesigning processes.
This workflow builds QLog for Windows using GitHub Actions, creating both a portable ZIP and a Qt IFW installer. It includes steps for setting up the environment, installing dependencies, building the application, and packaging the outputs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants