summaryrefslogtreecommitdiff
path: root/QtSoundModem.h
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-10-29 22:45:25 +0000
committerDave Hibberd <hibby@debian.org>2024-10-29 22:45:25 +0000
commit6c8e7093c0c01dbf0e7b2d3b3e8909a209faebbd (patch)
tree8d4a8ff6b2aff51cd6235b9923eb9c5db5017075 /QtSoundModem.h
parenta724b7ca21df2a3b98bc203f719396d5e62d55d4 (diff)
parentd0709a1e0a04bf74f240dc0fdb8697f030b68cea (diff)
Update upstream source from tag 'upstream/0.0.0.73_rc1'
Update to upstream version '0.0.0.73~rc1' with Debian dir 676c65807274e34716fecd1055a3812ab33a8229
Diffstat (limited to 'QtSoundModem.h')
-rw-r--r--QtSoundModem.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/QtSoundModem.h b/QtSoundModem.h
index b02f9c2..a759f4b 100644
--- a/QtSoundModem.h
+++ b/QtSoundModem.h
@@ -43,6 +43,7 @@ private slots:
void updateFont();
void MinimizetoTray();
void TrayActivated(QSystemTrayIcon::ActivationReason reason);
+ void StatsTimer();
void MyTimerSlot();
void returnPressed();
void clickedSlotI(int i);
@@ -77,6 +78,7 @@ private slots:
void StartWatchdog();
void StopWatchdog();
void PTTWatchdogExpired();
+ void showRequest(QByteArray Data);
void clickedSlot();
void startCWIDTimerSlot();
void setWaterfallImage();
@@ -124,3 +126,25 @@ protected:
#define WaterfallTotalPixels WaterfallDisplayPixels + WaterfallHeaderPixels
#define WaterfallImageHeight (WaterfallTotalPixels + WaterfallTotalPixels)
+
+class serialThread : public QThread
+{
+ Q_OBJECT
+
+public:
+ void run() Q_DECL_OVERRIDE;
+ void startSlave(const QString &portName, int waitTimeout, const QString &response);
+
+signals:
+ void request(const QByteArray &s);
+ void error(const QString &s);
+ void timeout(const QString &s);
+
+private:
+ QString portName;
+ QString response;
+ int waitTimeout;
+ QMutex mutex;
+ bool quit;
+};
+