From bcadb2176bda078a7f03db8f03e44de030ce4cc4 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Tue, 18 Jan 2022 00:18:52 +0000 Subject: [PATCH] Remove unnecessary signal/slots --- servermain.cpp | 10 +++++----- servermain.h | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/servermain.cpp b/servermain.cpp index b35e810..e35afdb 100644 --- a/servermain.cpp +++ b/servermain.cpp @@ -142,7 +142,6 @@ void servermain::rigConnections() connect(this, SIGNAL(getPTT()), rig, SLOT(getPTT())); connect(this, SIGNAL(getDebug()), rig, SLOT(getDebug())); - connect(rig, SIGNAL(haveDataMode(bool)), this, SLOT(receiveDataModeStatus(bool))); connect(this, SIGNAL(getDuplexMode()), rig, SLOT(getDuplexMode())); connect(this, SIGNAL(getTone()), rig, SLOT(getTone())); @@ -448,10 +447,6 @@ void servermain::setInitialTiming() pttTimer->setSingleShot(true); connect(pttTimer, SIGNAL(timeout()), this, SLOT(handlePttLimit())); - timeSync = new QTimer(this); - connect(timeSync, SIGNAL(timeout()), this, SLOT(setRadioTimeDateSend())); - waitingToSetTimeDate = false; - lastFreqCmdTime_ms = QDateTime::currentMSecsSinceEpoch() - 5000; // 5 seconds ago } void servermain::setServerToPrefs() @@ -1580,6 +1575,11 @@ void servermain::powerRigOff() emit sendPowerOff(); } +void servermain::receiveStateInfo(rigstate* state) +{ + qInfo("Setting rig state for wfmain"); + rigState = state; +} void servermain::handleCtrlC(int sig) { diff --git a/servermain.h b/servermain.h index 080f32a..e96f19d 100644 --- a/servermain.h +++ b/servermain.h @@ -176,6 +176,7 @@ private slots: void handlePttLimit(); void receiveStatusUpdate(QString text); + void receiveStateInfo(rigstate* state); private: QSettings *settings=Q_NULLPTR;