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

Method slotGetData

src/DefaultFileAccessJobHandler.cpp:120–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119#if HAS_KFKIO
120void DefaultFileAccessJobHandler::slotGetData(KJob* pJob, const QByteArray& newData)
121{
122 if(pJob->error() != KJob::NoError)
123 {
124 qCDebug(kdiffFileAccess) << "slotGetData: pJob->error() = " << pJob->error();
125 pJob->uiDelegate()->showErrorMessage();
126 }
127 else
128 {
129 qint64 length = std::min<qint64>(newData.size(), m_maxLength - m_transferredBytes);
130 ::memcpy(m_pTransferBuffer + m_transferredBytes, newData.data(), newData.size());
131 m_transferredBytes += length;
132 }
133}
134#endif
135
136bool DefaultFileAccessJobHandler::put(const void* pSrcBuffer, long maxLength, bool bOverwrite)

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected