kopia lustrzana https://gitlab.com/eliggett/wfview
Show server connection status in taskbar (only for USB connected rigs)
rodzic
8bc43c9f83
commit
999dedac1a
|
@ -191,7 +191,7 @@ void udpHandler::dataReceived()
|
|||
else {
|
||||
tempLatency = QString("<span style = \"color:red\">%1 ms</span>").arg(audio->audioLatency,3);
|
||||
}
|
||||
emit haveNetworkStatus(QString("<pre>rx latency: %1 ms / rtt: %2 ms / loss: %3/%4</pre>").arg(tempLatency).arg(latency, 3).arg(totallost,3).arg(totalsent,3));
|
||||
emit haveNetworkStatus(QString("<pre>rx latency: %1 ms / rtt: %2 ms / loss: %3/%4</pre>").arg(tempLatency).arg(latency, 3).arg(totallost, 3).arg(totalsent, 3));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -423,6 +423,9 @@ void udpServer::controlReceived()
|
|||
break;
|
||||
}
|
||||
}
|
||||
// Report current connections:
|
||||
emit haveNetworkStatus(QString("<pre>%1 current server connections</pre>").arg(controlClients.size()));
|
||||
|
||||
commonReceived(&controlClients, current, r);
|
||||
|
||||
}
|
||||
|
|
|
@ -51,6 +51,7 @@ public slots:
|
|||
signals:
|
||||
void haveDataFromServer(QByteArray);
|
||||
void haveAudioData(audioPacket data);
|
||||
void haveNetworkStatus(QString);
|
||||
|
||||
void setupTxAudio(audioSetup);
|
||||
void setupRxAudio(audioSetup);
|
||||
|
|
|
@ -753,7 +753,9 @@ void wfmain::setServerToPrefs()
|
|||
|
||||
connect(this, SIGNAL(initServer()), udp, SLOT(init()));
|
||||
connect(serverThread, SIGNAL(finished()), udp, SLOT(deleteLater()));
|
||||
|
||||
if (!prefs.enableLAN) {
|
||||
connect(udp, SIGNAL(haveNetworkStatus(QString)), this, SLOT(handleStatusUpdate(QString)));
|
||||
}
|
||||
|
||||
serverThread->start();
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue