summaryrefslogtreecommitdiff
path: root/logbook/logbook.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logbook/logbook.cpp')
-rwxr-xr-xlogbook/logbook.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/logbook/logbook.cpp b/logbook/logbook.cpp
index 8ba47e8f..888c1c89 100755
--- a/logbook/logbook.cpp
+++ b/logbook/logbook.cpp
@@ -69,12 +69,18 @@ void LogBook::rescan ()
worked_before_.reload ();
}
+QString const LogBook::cty_version() const
+{
+ return worked_before_.cty_version();
+}
+
QByteArray LogBook::QSOToADIF (QString const& hisCall, QString const& hisGrid, QString const& mode,
QString const& rptSent, QString const& rptRcvd, QDateTime const& dateTimeOn,
QDateTime const& dateTimeOff, QString const& band, QString const& comments,
QString const& name, QString const& strDialFreq, QString const& myCall,
QString const& myGrid, QString const& txPower, QString const& operator_call,
- QString const& xSent, QString const& xRcvd, QString const& propmode)
+ QString const& xSent, QString const& xRcvd, QString const& propmode,
+ QString const& satellite, QString const& satmode, QString const& freqRx)
{
QString t;
t = "<call:" + QString::number(hisCall.size()) + ">" + hisCall;
@@ -96,12 +102,15 @@ QByteArray LogBook::QSOToADIF (QString const& hisCall, QString const& hisGrid, Q
t += " <band:" + QString::number(band.size()) + ">" + band;
t += " <freq:" + QString::number(strDialFreq.size()) + ">" + strDialFreq;
t += " <station_callsign:" + QString::number(myCall.size()) + ">" + myCall;
- t += " <my_gridsquare:" + QString::number(myGrid.size()) + ">" + myGrid;
+ if(myGrid!="") t += " <my_gridsquare:" + QString::number(myGrid.size()) + ">" + myGrid;
if(txPower!="") t += " <tx_pwr:" + QString::number(txPower.size()) + ">" + txPower;
if(comments!="") t += " <comment:" + QString::number(comments.size()) + ">" + comments;
if(name!="") t += " <name:" + QString::number(name.size()) + ">" + name;
if(operator_call!="") t+=" <operator:" + QString::number(operator_call.size()) + ">" + operator_call;
if(propmode!="") t += " <prop_mode:" + QString::number(propmode.size()) + ">" + propmode;
+ if(satellite!="") t += " <sat_name:" + QString::number(satellite.size()) + ">" + satellite;
+ if(satmode!="") t += " <sat_mode:" + QString::number(satmode.size()) + ">" + satmode;
+ if(freqRx!="") t += " <freq_rx:" + QString::number(freqRx.size()) + ">" + freqRx;
if (xSent.size ())
{
auto words = xSent.split (' '