MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / refreshTncStatus

Method refreshTncStatus

src/gui/Ax25HfPacketDecodeDialog.cpp:2423–2443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2421}
2422
2423void Ax25HfPacketDecodeDialog::refreshTncStatus()
2424{
2425 if (!m_tncStatusValue)
2426 return;
2427 const bool listening = m_kissServer && m_kissServer->isListening();
2428 if (listening) {
2429 m_tncStatusValue->setText(QStringLiteral("Listening on %1 | %2 client(s) | RX %3 TX %4")
2430 .arg(m_kissServer->port())
2431 .arg(m_kissServer->clientCount())
2432 .arg(m_kissRxCount)
2433 .arg(m_kissTxCount));
2434 } else {
2435 m_tncStatusValue->setText(QStringLiteral("Stopped"));
2436 }
2437 if (m_tncStatusDot) {
2438 m_tncStatusDot->setFixedSize(12, 12);
2439 m_tncStatusDot->setStyleSheet(listening
2440 ? QStringLiteral("background:#5fce66;border-radius:6px;")
2441 : QStringLiteral("background:#8190a3;border-radius:6px;"));
2442 }
2443}
2444
2445// ---------------------------------------------------------------------------
2446// TNC Terminal tab (connected-mode AX.25 client)

Callers

nothing calls this directly

Calls 3

isListeningMethod · 0.45
portMethod · 0.45
clientCountMethod · 0.45

Tested by

no test coverage detected