mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-07 16:34:55 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user