Hi,

while implementing the get() method of my MTP Kio-Slave I ran into the problem 
that SlaveBase implements a read() function itself, therefore the compiler 
tells me there is no candidate for read(int fd, void* buffer, int length)

[...]/kio_mtp.cpp:160:50: error: no matching function for call to 
‘MTPSlave::read(int&, char [2048], int)’
candidate is: virtual void KIO::SlaveBase::read(KIO::filesize_t)

Since the only way to sanely get the data of the file on the MTP-device for a 
KIO-Slave is to get a filedescriptor and read from it (the other ways would be 
to directly copy the file: not possible since we don't know the target OR to 
have a callback function that does something with the data that it receives) I 
need to be able to call the read()-function from unistd.h.

So how would I do that?

Philipp
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to