ADIF v3.1.1 compliance

Note that FST4 QSOs are logged with MODE=MFSK and SUBMODE=FST4. The
new bands 8m and 5m are recognized. The ADIF header is expanded with
program and time stamp information.
This commit is contained in:
Bill Somerville
2020-09-07 20:36:09 +01:00
parent 72cffc9da4
commit 8d48b44e9a
3 changed files with 17 additions and 2 deletions
+14 -1
View File
@@ -19,7 +19,9 @@
#include <QFileInfo>
#include <QFile>
#include <QTextStream>
#include <QDateTime>
#include "Configuration.hpp"
#include "revision_utils.hpp"
#include "qt_helpers.hpp"
#include "pimpl_impl.hpp"
@@ -442,7 +444,18 @@ bool WorkedBefore::add (QString const& call
QTextStream out {&file};
if (!file.size ())
{
out << "WSJT-X ADIF Export<eoh>" << // new file
auto ts = QDateTime::currentDateTimeUtc ().toString ("yyyyMMdd HHmmss");
auto ver = version (true);
out << // new file
QString {
"ADIF Export\n"
"<adif_ver:5>3.1.1\n"
"<created_timestamp:15>%0\n"
"<programid:6>WSJT-X\n"
"<programversion:%1>%2\n"
"<eoh>"
}.arg (ts).arg (ver.size ()).arg (ver)
<<
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
endl
#else