diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
| commit | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch) | |
| tree | 1269efa852935b183daae4bb33a58d1b4d2ffb53 /map65/messages.h | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'map65/messages.h')
| -rw-r--r-- | map65/messages.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/map65/messages.h b/map65/messages.h index 5b27157a..a6a5d0eb 100644 --- a/map65/messages.h +++ b/map65/messages.h @@ -4,13 +4,13 @@ #include <QDialog> #include "commons.h" #include <memory> -#include <QNetworkReply> namespace Ui { class Messages; } class PSKReporter; +class LiveCQUpload; class Messages : public QDialog { @@ -23,14 +23,13 @@ public: void setColors(QString t); void setPSKReportingEnabled(bool enabled); void setClosingForShutdown(bool value) { m_closingForShutdown = value; } + void clearLiveCQHistory(); ~Messages(); signals: void click2OnCallsign(QString hiscall, QString t2, bool ctrl); void errorOccurred(const QString &error); // Emitted on error - void sendLocalStationData2(QString const& call, QString const& grid, QString const& theUrl); - void sendRemoteStationData2 (QByteArray const& postByteArray, QString const& theUrl); protected: void closeEvent(QCloseEvent *event); @@ -39,7 +38,6 @@ private slots: void selectCallsign2(bool ctrl); void on_cbCQ_toggled(bool checked); void on_cbCQstar_toggled(bool checked); - void onFinished(QNetworkReply *reply); // Handles the reply from web request private: Ui::Messages *ui; @@ -52,14 +50,15 @@ private: QString m_color2; QString m_color3; - QThread* livecqThread; std::unique_ptr<PSKReporter> m_psk_reporter; + std::unique_ptr<LiveCQUpload> m_livecq; + QStringList m_livecqSeenDecodes; + static constexpr int maxLiveCQSeenDecodes {500}; bool m_closingForShutdown = false; bool m_cqOnly; bool m_cqStarOnly; bool doLiveCQ=true; //liveCQ - void CreateLiveCQ(QStringList cqliveText); //liveCQ void sendPSKReporterData(QStringList decodeList); //PSKReporter void sendLiveCQData(QStringList decodeList); // This will trigger the web request void initializePSKReporting(); |
