mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 13:48:42 -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
53 lines
1.5 KiB
C++
53 lines
1.5 KiB
C++
#ifndef WSJTX_MESSAGE_AGGREGATOR_MAIN_WINDOW_MODEL_HPP__
|
|
#define WSJTX_MESSAGE_AGGREGATOR_MAIN_WINDOW_MODEL_HPP__
|
|
|
|
#include <QMainWindow>
|
|
#include <QHash>
|
|
#include <QString>
|
|
|
|
#include "MessageServer.hpp"
|
|
|
|
class QDateTime;
|
|
class QStandardItemModel;
|
|
class QMenu;
|
|
class DecodesModel;
|
|
class BeaconsModel;
|
|
class QLineEdit;
|
|
class QTableView;
|
|
class ClientWidget;
|
|
|
|
using Frequency = MessageServer::Frequency;
|
|
|
|
class MessageAggregatorMainWindow
|
|
: public QMainWindow
|
|
{
|
|
Q_OBJECT;
|
|
|
|
public:
|
|
MessageAggregatorMainWindow ();
|
|
|
|
Q_SLOT void log_qso (QString const& /*id*/, QDateTime time_off, QString const& dx_call, QString const& dx_grid
|
|
, Frequency dial_frequency, QString const& mode, QString const& report_sent
|
|
, QString const& report_received, QString const& tx_power, QString const& comments
|
|
, QString const& name, QDateTime time_on, QString const& operator_call
|
|
, QString const& my_call, QString const& my_grid);
|
|
|
|
private:
|
|
void add_client (QString const& id, QString const& version, QString const& revision);
|
|
void remove_client (QString const& id);
|
|
|
|
QStandardItemModel * log_;
|
|
QMenu * view_menu_;
|
|
DecodesModel * decodes_model_;
|
|
BeaconsModel * beacons_model_;
|
|
MessageServer * server_;
|
|
QLineEdit * multicast_group_line_edit_;
|
|
QTableView * log_table_view_;
|
|
|
|
// maps client id to widgets
|
|
using ClientsDictionary = QHash<QString, ClientWidget *>;
|
|
ClientsDictionary dock_widgets_;
|
|
};
|
|
|
|
#endif
|