| 515 | } |
| 516 | |
| 517 | void FreeDvClient::enableReporting(const QString& callsign, const QString& grid, |
| 518 | const QString& message, |
| 519 | const QString& softwareVersion, double freqMhz) |
| 520 | { |
| 521 | m_myCallsign = callsign; |
| 522 | m_myGrid = grid; |
| 523 | m_mySoftwareVersion = softwareVersion; |
| 524 | m_myFreqMhz = freqMhz; |
| 525 | m_myMessage = message; |
| 526 | m_reportingEnabled = true; |
| 527 | m_snrTimer->start(); |
| 528 | |
| 529 | qCDebug(lcDxCluster) << "FreeDvClient: reporting enabled for" << callsign |
| 530 | << "grid" << grid << "freq" << freqMhz << "MHz"; |
| 531 | |
| 532 | if (m_connected.load() && |
| 533 | m_ws->state() != QAbstractSocket::ClosingState) { |
| 534 | // Already connected as view — reconnect immediately with full-participant auth |
| 535 | m_authNeedsRefresh = true; |
| 536 | m_pingTimer->stop(); |
| 537 | m_ws->close(); |
| 538 | } |
| 539 | // If not yet connected, the next connect will use full auth automatically |
| 540 | } |
| 541 | |
| 542 | void FreeDvClient::disableReporting() |
| 543 | { |