diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /map65/messages.h | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'map65/messages.h')
| -rw-r--r-- | map65/messages.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/map65/messages.h b/map65/messages.h index 89170545..5b27157a 100644 --- a/map65/messages.h +++ b/map65/messages.h @@ -3,26 +3,25 @@ #include <QDialog> #include "commons.h" -#include "PSKReporter.hpp" #include <memory> #include <QNetworkReply> -#include <QDateTime> namespace Ui { class Messages; } -class PSKReporter; // Forward declaration — avoids including PSKReporter.h here +class PSKReporter; class Messages : public QDialog { Q_OBJECT public: - explicit Messages (QString const& settings_filename, QWidget * parent = nullptr); + explicit Messages (QString const& settings_filename, QString const& eclipse_filename, + QWidget * parent = nullptr); void setText(QString t, QString t2); void setColors(QString t); - void init_psk_reporter(bool const& param1, bool const& param2, QString const& param3); + void setPSKReportingEnabled(bool enabled); void setClosingForShutdown(bool value) { m_closingForShutdown = value; } ~Messages(); @@ -30,8 +29,6 @@ public: signals: void click2OnCallsign(QString hiscall, QString t2, bool ctrl); void errorOccurred(const QString &error); // Emitted on error - void sendLocalStationData(QString const& call, QString const& grid, QString const& antenna, QString const& rigInformation); - void sendRemoteStationData (QString const& call, QString const& grid, quint64 freq, QString const& mode, int snr, QDateTime qSpotTime); void sendLocalStationData2(QString const& call, QString const& grid, QString const& theUrl); void sendRemoteStationData2 (QByteArray const& postByteArray, QString const& theUrl); @@ -55,8 +52,8 @@ private: QString m_color2; QString m_color3; - QThread* pskThread; QThread* livecqThread; + std::unique_ptr<PSKReporter> m_psk_reporter; bool m_closingForShutdown = false; bool m_cqOnly; @@ -66,7 +63,7 @@ private: void sendPSKReporterData(QStringList decodeList); //PSKReporter void sendLiveCQData(QStringList decodeList); // This will trigger the web request void initializePSKReporting(); - bool testCall(QString w); //liveCQ + bool m_spot_to_psk_reporter {false}; QString w3szUrlAddr="https://w3sz.com/livecq_update.php"; //liveCQ |
