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

Method enableReporting

src/core/FreeDvClient.cpp:517–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517void 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
542void FreeDvClient::disableReporting()
543{

Callers 1

startFreeDvReportingMethod · 0.80

Calls 5

startMethod · 0.45
loadMethod · 0.45
stateMethod · 0.45
stopMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected