KFilterDev changes from KDE3
kollix at aon.at
Sun Mar 15 11:20:35 GMT 2009
I'm in the process to port kbackup from KDE3 to KDE4.
Now I'm stuck with a change that happend to KFilterDev:
In KDE3 I decided somewhere in my code which compression
to use by calling KFilterBase::findFilterByMimeType().
I later used the returned filterBase pointer in the following way:
KFilterDev filter(filterBase, false);
whereby comprFile is a KTemporaryFile.
The problem ist, the constructor taking the KFilterBase is now private!
On the other hand I find the open method saying:
* Open for reading or writing.
* If the KFilterBase's device is not opened, it will be opened.
virtual bool open( QIODevice::OpenMode mode );
So my question: How do I set the KFilterBase here ?
The only way coming close to what I need is the method,
but this needs the mimetype again.
static QIODevice * device (QIODevice *inDevice, const QString &mimetype, bool autoDeleteInDevice=true)
Any idea how to and why it was changed that way ?
Best regards/Schöne Grüße
Martin () ascii ribbon campaign - against html mail
/\ - against microsoft attachments
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the kde-core-devel