summaryrefslogtreecommitdiff
path: root/map65/messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'map65/messages.h')
-rw-r--r--map65/messages.h11
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();