#include <kfilterdev.h>
Public Methods | |
| KFilterDev (KFilterBase *filter, bool autodeleteFilterBase=false) | |
| virtual | ~KFilterDev () |
| virtual bool | open (int mode) |
| virtual void | close () |
| void | setOrigFileName (const QCString &fileName) |
| void | setSkipHeaders () |
| virtual bool | at (QIODevice::Offset) |
Static Public Methods | |
| QIODevice * | createFilterDevice (KFilterBase *base, QFile *file) |
| QIODevice * | deviceForFile (const QString &fileName, const QString &mimetype=QString::null, bool forceFilter=false) |
| QIODevice * | device (QIODevice *inDevice, const QString &mimetype) |
| QIODevice * | device (QIODevice *inDevice, const QString &mimetype, bool autoDeleteInDevice) |
To simply read/write compressed files, see deviceForFile.
Definition at line 35 of file kfilterdev.h.
|
||||||||||||
|
Constructs a KFilterDev for a given filter (e.g. gzip, bzip2 etc.)
|
|
|
Destructs the KFilterDev. Calls close() if the filter device is still open. |
|
|
That one can be quite slow, when going back. Use with care. |
|
|
Close after reading or writing. If the KFilterBase's device was opened by open(), it will be closed. |
|
||||||||||||
|
Call this to create the appropriate filter device for
|
|
||||||||||||||||
|
Creates an i/o device that is able to read from the QIODevice
The compression filter to be used is determined Warning: application/x-bzip2 may not be available. In that case 0 will be returned ! The returned QIODevice has to be deleted after using.
|
|
||||||||||||
|
Creates an i/o device that is able to read from the QIODevice
The compression filter to be used is determined Warning: application/x-bzip2 may not be available. In that case 0 will be returned ! The returned QIODevice has to be deleted after using.
|
|
||||||||||||||||
|
Creates an i/o device that is able to read from
The compression filter to be used is determined from the Warning: application/x-bzip2 may not be available. In that case a QFile opened on the compressed data will be returned ! Use KFilterBase::findFilterByMimeType and code similar to what deviceForFile is doing, to better control what's happening. The returned QIODevice has to be deleted after using. |
|
|
Open for reading or writing. If the KFilterBase's device is not opened, it will be opened. |
|
|
For writing gzip compressed files only: set the name of the original file, to be used in the gzip header. |
|
|
Call this let this device skip the gzip headers when reading/writing. This way KFilterDev (with gzip filter) can be used as a direct wrapper around zlib - this is used by KZip.
|
1.2.18