Questions on the new KIO::FileJob API

Thiago Macieira thiago at
Mon May 5 21:56:37 BST 2008

nf2 wrote:
>As the FileProtocol:: implementation is only partially working and i
>have the suspicion that nobody has used it yet, i guess there is some
>room for interpretation. :-) Particularly regarding my second question.
>If it's supposed to work like QIODevice::readData() and QIODevice::write
>() then it could as well read/write less than requested and instantly
>move to a seekable state again.

All of the QIODevice-derived classes (QFile, QProcess, QTcpSocket) write 
as much as you pass. They never return less.

The reading depends on how much is buffered.
  Thiago Macieira  -  thiago (AT) - thiago (AT)
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the kde-core-devel mailing list