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

Method slotStatResult

src/DefaultFileAccessJobHandler.cpp:62–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61#if HAS_KFKIO
62void DefaultFileAccessJobHandler::slotStatResult(KJob* pJob)
63{
64 qint32 err = pJob->error();
65 if(err != KJob::NoError)
66 {
67 qCDebug(kdiffFileAccess) << "slotStatResult: pJob->error() = " << pJob->error();
68 if(err != KIO::ERR_DOES_NOT_EXIST)
69 {
70 pJob->uiDelegate()->showErrorMessage();
71 m_bSuccess = false;
72 mFileAccess->reset();
73 }
74 else
75 {
76 mFileAccess->doError();
77 m_bSuccess = true;
78 }
79 }
80 else
81 {
82 m_bSuccess = true;
83
84 const KIO::UDSEntry e = static_cast<KIO::StatJob*>(pJob)->statResult();
85
86 mFileAccess->setFromUdsEntry(e, mFileAccess->parent());
87 m_bSuccess = mFileAccess->isValid();
88 }
89}
90#endif
91
92bool DefaultFileAccessJobHandler::get(void* pDestBuffer, long maxLength)

Callers

nothing calls this directly

Calls 5

doErrorMethod · 0.80
setFromUdsEntryMethod · 0.80
resetMethod · 0.45
parentMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected