[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Questions on the new KIO::FileJob API
From:       Thiago Macieira <thiago () kde ! org>
Date:       2008-05-05 20:56:37
Message-ID: 200805052256.51682.thiago () kde ! org
[Download RAW message or body]


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) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic