* @brief Stops/pauses the current transmission. */
| 340 | * @brief Stops/pauses the current transmission. |
| 341 | */ |
| 342 | void 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. |
nothing calls this directly
no test coverage detected