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