MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / slotStartFileTransfer

Method slotStartFileTransfer

Plugins/FileTransfer/ChannelSFTP.cpp:497–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497void 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
515void CChannelSFTP::slotStopFileTransfer(QSharedPointer<CFileTransfer> f)
516{

Callers

nothing calls this directly

Calls 2

slotSetstateMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected