Skip to content

Import dxcc record#965

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

Import dxcc record#965
aa5sh wants to merge 4 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 4 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant