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

Method canFetchMore

Plugins/FileTransfer/RemoteFileSystemModel.cpp:517–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517bool CRemoteFileSystemModel::canFetchMore(const QModelIndex &parent) const
518{
519 if(!parent.isValid()) {
520 qDebug(log) << "canFetchMore: parent is valid" << parent;
521 return true;
522 }
523 CRemoteFileSystem* p = GetRemoteFileSystemFromIndex(parent);
524 if(p && p->GetState() == CRemoteFileSystem::State::No
525 && !(p->GetType() & CRemoteFileSystem::TYPE::FILE)) {
526 qDebug(log) << "canFetchMore:" << parent << p->GetPath() << "true";
527 return true;
528 }
529 qDebug(log) << Q_FUNC_INFO << parent;
530 return false;
531}
532
533void CRemoteFileSystemModel::fetchMore(const QModelIndex &parent)
534{

Callers

nothing calls this directly

Calls 4

isValidMethod · 0.80
GetPathMethod · 0.80
GetStateMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected