From d83a420f0517d7fc47aeb288a6a0cf4891784fcc Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 22 Jun 2026 12:03:44 +0200 Subject: New upstream version 3.0.2+dfsg --- map65/PSKReporter.hpp | 107 -------------------------------------------------- 1 file changed, 107 deletions(-) delete mode 100644 map65/PSKReporter.hpp (limited to 'map65/PSKReporter.hpp') diff --git a/map65/PSKReporter.hpp b/map65/PSKReporter.hpp deleted file mode 100644 index 28884e0e..00000000 --- a/map65/PSKReporter.hpp +++ /dev/null @@ -1,107 +0,0 @@ -#ifndef PSK_REPORTER_HPP_ -#define PSK_REPORTER_HPP_ -#include -#include - -#include -#include -#include -#include -#include -#include -#include "Radio.hpp" -#include "../qt_helpers.hpp" -#include "commons.h" - -class QString; - -class PSKReporter : public QObject -{ - Q_OBJECT - -signals: - void dataReady(const QByteArray &payload); - - -public slots: - void restartReportTimer(); - void restartDescriptorTimer(); - void init(); // Slot to initialize timers/sockets - - -public: - explicit PSKReporter (QString const& myCall, QString const& myGrid, QString const& program_info); - ~PSKReporter (); - - void setLocalStation (QString const& call, QString const& grid, QString const& antenna, QString const& rigInformation); - void build_preamble (QDataStream& message); - void send_report (bool send_residue); - void stop (); - bool flushing(); - void writeUtfString (QDataStream& out, QString const& s); - int num_pad_bytes (int len); - void set_length (QDataStream& out, QByteArray& b); - - Q_SIGNAL void errorOccurred (QString const& reason); - - struct Spot - { - bool operator == (Spot const& rhs) - { - return - call_ == rhs.call_ - && grid_ == rhs.grid_ - && mode_ == rhs.mode_ - && std::abs (Radio::FrequencyDelta (freq_ - rhs.freq_)) < 50; - } - - QString call_; - QString grid_; - int snr_; - Radio::Frequency freq_; - QString mode_; - QDateTime time_; - }; - - void addRemoteStation (QString const& call, QString const& grid, Radio::Frequency freq, QString const& mode, int snr, QDateTime spotTime); - - // - // Flush any pending spots to PSK Reporter - // - void sendReport (bool last = false); - -private slots: - void handle_socket_error(QAbstractSocket::SocketError error); - void onConnected(); - void onReadyRead(); - void sendData(const QByteArray &payload); - -private: - using logger_type = boost::log::sources::severity_channel_logger_mt; - logger_type mutable logger_; - QString myCall; - QString myGrid; - quint32 sequence_number_; - int send_descriptors_; - int send_receiver_data_; - unsigned flush_counter_ ; - QString prog_id_; - unsigned observation_id_; - QTimer *report_timer_; - QTimer *descriptor_timer_; - QScopedPointer socket; // Or: std::unique_ptr spots_; - - // Copy constructor and assignment operator disabled - Q_DISABLE_COPY(PSKReporter) -}; - -#endif -- cgit v1.2.3