MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / stopTransmission

Method stopTransmission

app/src/IO/FileTransmission.cpp:342–359  ·  view source on GitHub ↗

* @brief Stops/pauses the current transmission. */

Source from the content-addressed store, hash-verified

340 * @brief Stops/pauses the current transmission.
341 */
342void IO::FileTransmission::stopTransmission()
343{
344 m_timer.stop();
345 m_speedUpdateTimer.stop();
346
347 if (m_xmodem->isActive())
348 m_xmodem->cancelTransfer();
349
350 if (m_ymodem->isActive())
351 m_ymodem->cancelTransfer();
352
353 if (m_zmodem->isActive())
354 m_zmodem->cancelTransfer();
355
356 m_transferSpeed.clear();
357 Q_EMIT transferSpeedChanged();
358 Q_EMIT activeChanged();
359}
360
361/**
362 * @brief Starts or resumes the file transmission.

Callers

nothing calls this directly

Calls 4

stopMethod · 0.45
isActiveMethod · 0.45
cancelTransferMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected