| 2421 | } |
| 2422 | |
| 2423 | void 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) |
nothing calls this directly
no test coverage detected