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

Method setFile

src/fileaccess.cpp:259–272  ·  view source on GitHub ↗

Needed only during directory listing right now. */

Source from the content-addressed store, hash-verified

257 Needed only during directory listing right now.
258*/
259void FileAccess::setFile(FileAccess* pParent, const QFileInfo& fi)
260{
261 assert(pParent != this);
262#if HAS_KFKIO && !defined AUTOTEST
263 if(mJobHandler == nullptr) mJobHandler.reset(new DefaultFileAccessJobHandler(this));
264#endif
265 reset();
266
267 m_fileInfo = fi;
268 m_url = QUrl::fromLocalFile(m_fileInfo.absoluteFilePath());
269
270 m_pParent = pParent;
271 loadData();
272}
273
274void FileAccess::setFile(const QString& name, bool bWantToWrite)
275{

Callers 7

copyFileMethod · 0.80
listDirMethod · 0.80
testFileRelPathMethod · 0.80
testUrlMethod · 0.80
testIsLocalMethod · 0.80
testAbsolutePathMethod · 0.80
liveTestMethod · 0.80

Calls 5

fileNameMethod · 0.80
resetMethod · 0.45
absoluteFilePathMethod · 0.45
isEmptyMethod · 0.45
statMethod · 0.45

Tested by 5

testFileRelPathMethod · 0.64
testUrlMethod · 0.64
testIsLocalMethod · 0.64
testAbsolutePathMethod · 0.64
liveTestMethod · 0.64