| 495 | } |
| 496 | |
| 497 | void CChannelSFTP::slotStartFileTransfer(QSharedPointer<CFileTransfer> f) |
| 498 | { |
| 499 | f->slotSetstate(CFileTransfer::State::Opening); |
| 500 | QSharedPointer<_AFILE> file(new _AFILE); |
| 501 | memset(file.data(), 0, sizeof(_AFILE)); |
| 502 | file->local = -1; |
| 503 | file->remote = nullptr; |
| 504 | file->state = STATE::OPEN; |
| 505 | file->fileTransfer = f; |
| 506 | #if LIBSSH_VERSION_INT >= SSH_VERSION_INT(0, 11, 0) |
| 507 | file->nChunkSize = BUF_SIZE; |
| 508 | file->nConcurrentCount = 5; |
| 509 | #endif |
| 510 | m_vFiles.append(file); |
| 511 | emit sigFileTransferUpdate(f); |
| 512 | WakeUp(); |
| 513 | } |
| 514 | |
| 515 | void CChannelSFTP::slotStopFileTransfer(QSharedPointer<CFileTransfer> f) |
| 516 | { |
nothing calls this directly
no test coverage detected