From 65a19e47071078e3ab167160b43b3764886b2bd5 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Tue, 28 Aug 2018 16:44:21 -0400 Subject: [PATCH] Added API entry for logging QSOs --- mainwindow.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 4e9a243..5907df0 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -6609,6 +6609,23 @@ void MainWindow::acceptQSO (QDateTime const& QSO_date_off, QString const& call, m_messageClient->qso_logged (QSO_date_off, call, grid, dial_freq, mode, rpt_sent, rpt_received, tx_power, comments, name, QSO_date_on, operator_call, my_call, my_grid); m_messageClient->logged_ADIF (ADIF); #endif + + sendNetworkMessage("LOG.QSO", QString(ADIF), { + {"UTC.ON", QVariant(QSO_date_on.toMSecsSinceEpoch())}, + {"UTC.OFF", QVariant(QSO_date_off.toMSecsSinceEpoch())}, + {"CALL", QVariant(call)}, + {"GRID", QVariant(grid)}, + {"FREQ", QVariant(dial_freq)}, + {"MODE", QVariant(mode)}, + {"RPT.SENT", QVariant(rpt_sent)}, + {"RPT.RECV", QVariant(rpt_received)}, + {"NAME", QVariant(name)}, + {"COMMENTS", QVariant(comments)}, + {"STATION.OP", QVariant(operator_call)}, + {"STATION.CALL", QVariant(my_call)}, + {"STATION.GRID", QVariant(my_grid)} + }); + if (m_config.clear_DX () and !m_config.bHound()) clearDX (); m_dateTimeQSOOn = QDateTime {}; }