Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lotw import notes #451

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion logformat/LogFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,25 @@ void LogFormat::runQSLImport(QSLFrom fromService)
if ( QSLRecord.value("qsl_rcvd") != originalRecord.value("lotw_qsl_rcvd")
&& QSLRecord.value("qsl_rcvd").toString() == 'Y' )
{
DxccStatus status = Data::dxccStatus(QSLRecord.value("dxcc").toInt(), band.toString(), mode.toString());
QString DxccStatusStr = "";
if (status == DxccStatus::NewEntity )
{
DxccStatusStr = "(New Entity)";
}
if (status == DxccStatus::NewMode )
{
DxccStatusStr = "(New Mode " + mode.toString() +")";
}
if (status == DxccStatus::NewBandMode )
{
DxccStatusStr = "(New Band/Mode " + band.toString() + " " + mode.toString() + ")";
}
if (status == DxccStatus::NewSlot )
{
DxccStatusStr = "(New Slot " + band.toString() + " " + mode.toString() + ")";
}

originalRecord.setValue("lotw_qsl_rcvd", QSLRecord.value("qsl_rcvd"));

originalRecord.setValue("lotw_qslrdate", QSLRecord.value("qsl_rdate"));
Expand Down Expand Up @@ -711,8 +730,9 @@ void LogFormat::runQSLImport(QSLFrom fromService)
{
qWarning() << "Cannot commit changes to Contact Table - " << model.lastError();
}

stats.qsos_updated++;
stats.newQSLs.append(call.toString());
stats.newQSLs.append(call.toString() + " " + DxccStatusStr);
}
}
else
Expand Down
Loading