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

Method handleMultiFlexClientDisconnect

src/gui/MainWindow.cpp:634–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634void MainWindow::handleMultiFlexClientDisconnect(quint32 handle, const QString& displayName)
635{
636 if (handle == 0 || handle == m_radioModel.ourClientHandle())
637 return;
638
639 QString name = cleanClientDisplayText(displayName);
640 if (name.isEmpty())
641 name = QString("client 0x%1").arg(handle, 8, 16, QChar('0')).toUpper();
642
643 if (m_radioModel.isWan()) {
644 const QString serial = !m_pendingWanRadio.serial.isEmpty()
645 ? m_pendingWanRadio.serial
646 : m_radioModel.serial();
647 if (sendWanRadioClientDisconnects(serial, {handle})) {
648 m_connPanel->setStatusText("Disconnect request sent");
649 statusBar()->showMessage(
650 QString("SmartLink disconnect request sent for %1.").arg(name), 4000);
651 }
652 return;
653 }
654
655 if (m_radioModel.disconnectClient(handle))
656 statusBar()->showMessage(QString("Disconnect request sent for %1.").arg(name), 4000);
657}
658
659void MainWindow::startWanRadioConnect(const WanRadioInfo& info, bool promptForClientSlots)
660{

Callers

nothing calls this directly

Calls 7

cleanClientDisplayTextFunction · 0.85
ourClientHandleMethod · 0.80
isWanMethod · 0.80
serialMethod · 0.80
disconnectClientMethod · 0.80
isEmptyMethod · 0.45
setStatusTextMethod · 0.45

Tested by

no test coverage detected