mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-12 23:26:15 -05:00
3c384f7cbb
When "Auto Grid" is checked in "Settings->General" UDP messages of type "Location" will update a temporary DE grid square. The intent is to allow an external application joining the WSJT-X UDP message protocol to dynamically update the DE grid during mobile operation. This change also tidies up some outstanding issues around logging the operator call. This change adds a new UDP message "Logged ADIF" that is emitted in parallel with "QSO Logged" messages. The new message is valid ADIF file format and contains the logged QSO fields. The intent is that basic UDP server applications might already have ADIF log record capture capabilities and could use this message to feed existing ADIF parsing routines to log QSOs. All that should be needed is to identify this message type and the single field is ADIF compatible ASCII. Thanks to Brian, N9ADG, for the patches that lead to these enhancements. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8454 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
69 lines
1.8 KiB
C++
69 lines
1.8 KiB
C++
// -*- Mode: C++ -*-
|
|
#ifndef LogQSO_H
|
|
#define LogQSO_H
|
|
|
|
#ifdef QT5
|
|
#include <QtWidgets>
|
|
#else
|
|
#include <QtGui>
|
|
#endif
|
|
|
|
#include <QString>
|
|
#include <QScopedPointer>
|
|
#include <QDateTime>
|
|
|
|
#include "Radio.hpp"
|
|
|
|
namespace Ui {
|
|
class LogQSO;
|
|
}
|
|
|
|
class QSettings;
|
|
class Configuration;
|
|
class QByteArray;
|
|
|
|
class LogQSO : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LogQSO(QString const& programTitle, QSettings *, Configuration const *, QWidget *parent = 0);
|
|
~LogQSO();
|
|
void initLogQSO(QString const& hisCall, QString const& hisGrid, QString mode,
|
|
QString const& rptSent, QString const& rptRcvd, QDateTime const& dateTimeOn,
|
|
QDateTime const& dateTimeOff,
|
|
Radio::Frequency dialFreq, QString const& myCall, QString const& myGrid,
|
|
bool noSuffix, bool toRTTY, bool dBtoComments, bool bFox, QString const& opCall);
|
|
|
|
public slots:
|
|
void accept();
|
|
|
|
signals:
|
|
void acceptQSO (QDateTime const& QSO_date_off, QString const& call, QString const& grid
|
|
, Radio::Frequency dial_freq, QString const& mode
|
|
, QString const& rpt_sent, QString const& rpt_received
|
|
, QString const& tx_power, QString const& comments
|
|
, QString const& name, QDateTime const& QSO_date_on, QString const& operator_call
|
|
, QString const& my_call, QString const& my_grid, QByteArray const& ADIF);
|
|
|
|
protected:
|
|
void hideEvent (QHideEvent *);
|
|
|
|
private:
|
|
void loadSettings ();
|
|
void storeSettings () const;
|
|
|
|
QScopedPointer<Ui::LogQSO> ui;
|
|
QSettings * m_settings;
|
|
Configuration const * m_config;
|
|
QString m_txPower;
|
|
QString m_comments;
|
|
Radio::Frequency m_dialFreq;
|
|
QString m_myCall;
|
|
QString m_myGrid;
|
|
QDateTime m_dateTimeOn;
|
|
QDateTime m_dateTimeOff;
|
|
};
|
|
|
|
#endif // LogQSO_H
|