MCPcopy Create free account
hub / github.com/KDE/kdiff3 / slotListDirProcessNewEntries

Method slotListDirProcessNewEntries

src/DefaultFileAccessJobHandler.cpp:480–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480void DefaultFileAccessJobHandler::slotListDirProcessNewEntries(KIO::Job*, const KIO::UDSEntryList& l)
481{
482 //This function is called for non-local urls. Don't use QUrl::fromLocalFile here as it does not handle these.
483 for(const KIO::UDSEntry& e: l)
484 {
485 FileAccess fa;
486
487 fa.setFromUdsEntry(e, mFileAccess);
488
489 //must be manually filtered KDE does not supply API for ignoring these.
490 if(fa.fileName() != "." && fa.fileName() != ".." && fa.isValid())
491 {
492 m_pDirList->push_back(std::move(fa));
493 }
494 }
495}

Callers

nothing calls this directly

Calls 4

setFromUdsEntryMethod · 0.80
fileNameMethod · 0.80
push_backMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected