From f647d78463c1250ce9c99af664615fafccf5e959 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Tue, 7 Apr 2026 19:02:45 +0200 Subject: New upstream version 3.0.0 --- UDPExamples/BeaconsModel.hpp | 80 ++++++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 40 deletions(-) mode change 100755 => 100644 UDPExamples/BeaconsModel.hpp (limited to 'UDPExamples/BeaconsModel.hpp') diff --git a/UDPExamples/BeaconsModel.hpp b/UDPExamples/BeaconsModel.hpp old mode 100755 new mode 100644 index 19f0e21e..2baa99ec --- a/UDPExamples/BeaconsModel.hpp +++ b/UDPExamples/BeaconsModel.hpp @@ -1,40 +1,40 @@ -#ifndef WSJTX_UDP_BEACONS_MODEL_HPP__ -#define WSJTX_UDP_BEACONS_MODEL_HPP__ - -#include - -#include "MessageServer.hpp" - -using Frequency = MessageServer::Frequency; - -class QString; -class QTime; - -// -// Beacons Model - simple data model for all beacon spots -// -// The model is a basic table with uniform row format. Rows consist of -// QStandardItem instances containing the string representation of the -// column data and if the underlying field is not a string then the -// UserRole+1 role contains the underlying data item. -// -// Two slots are provided to add a new decode and remove all spots for -// a client. -// -class BeaconsModel - : public QStandardItemModel -{ - Q_OBJECT; - - using ClientKey = MessageServer::ClientKey; - -public: - explicit BeaconsModel (QObject * parent = nullptr); - - Q_SLOT void add_beacon_spot (bool is_new, ClientKey const&, QTime time, qint32 snr, float delta_time - , Frequency frequency, qint32 drift, QString const& callsign, QString const& grid - , qint32 power, bool off_air); - Q_SLOT void decodes_cleared (ClientKey const&); -}; - -#endif +#ifndef WSJTX_UDP_BEACONS_MODEL_HPP__ +#define WSJTX_UDP_BEACONS_MODEL_HPP__ + +#include + +#include "MessageServer.hpp" + +using Frequency = MessageServer::Frequency; + +class QString; +class QTime; + +// +// Beacons Model - simple data model for all beacon spots +// +// The model is a basic table with uniform row format. Rows consist of +// QStandardItem instances containing the string representation of the +// column data and if the underlying field is not a string then the +// UserRole+1 role contains the underlying data item. +// +// Two slots are provided to add a new decode and remove all spots for +// a client. +// +class BeaconsModel + : public QStandardItemModel +{ + Q_OBJECT; + + using ClientKey = MessageServer::ClientKey; + +public: + explicit BeaconsModel (QObject * parent = nullptr); + + Q_SLOT void add_beacon_spot (bool is_new, ClientKey const&, QTime time, qint32 snr, float delta_time + , Frequency frequency, qint32 drift, QString const& callsign, QString const& grid + , qint32 power, bool off_air); + Q_SLOT void decodes_cleared (ClientKey const&); +}; + +#endif -- cgit v1.2.3