[Qt-interest] QAbstractFileEngine problems

Jason H scorp1us at yahoo.com
Wed Jul 7 17:22:57 CEST 2010


Weird, I found your reply about writeData() on a website... it isn't even in my 
account yet!

Anyway, there is no QAbstractFileEnginge::writeData() according to the docs. I 
would have expected that the docs to mention it, but I don't see it anywhere. It 
would completely explain why my write() is never being called though... 
QAbstractFileEnginge::write() is the only one mentioned. I can of course rename 
it but my question remains: 


How did you know it should be DatabaseFileEngine::writeData(...)? 

Also, should I be deriving from QFSFileEngine and not QAbstractFileEngine? The 
docs don't really explain the difference.

Thanks!







----- Original Message ----
From: Jason H <scorp1us at yahoo.com>
To: Eric Landuyt <eric at datarescue.be>; qt-interest at trolltech.com
Sent: Wed, July 7, 2010 9:03:37 AM
Subject: Re: [Qt-interest] QAbstractFileEngine problems

Thanks Eric, but do you have any tips on why my write() isn't getting called?
The create on open happens, as I can see the entry for it, but and a write is 
called by QFile, but I never see it hit by breakpoint which is on line 1 of my 
custom function.




----- Original Message ----
From: Eric Landuyt <eric at datarescue.be>
To: qt-interest at trolltech.com
Sent: Wed, July 7, 2010 2:42:20 AM
Subject: Re: [Qt-interest] QAbstractFileEngine problems

Hello,

Wednesday, July 7, 2010, 8:07:22 AM, you wrote:
TM> Please stop using file engines. They are a feature we want to get rid of.

Too bad ! Please do not deprecate/remove this (or at least not before Qt 5 ;).

As Jason, we are also using these in our application: the file engine
architecture allowed us to implement a "recovery filesystem" on top of Qt,
and auto-magically reuse many classes like QDirIterator, QImage, ... on top
of our internal view of the recovery results. So this architecture helped us
really much, and is one of the main points why we decided to switch to Qt
some years ago.
File engines are of real use to anyone wanting to implement things like
"virtual files": take KIO slaves as an example!

Cheers,

--
Eric Landuyt, Developer - mailto:eric at datarescue.be
DataRescue sa/nv - http://www.datarescue.com

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



      

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



      




More information about the Qt-interest-old mailing list