kfilterdev.h
146 static TQIODevice * deviceForFile( const TQString & fileName, const TQString & mimetype = TQString::null,
190 static TQIODevice * device( TQIODevice* inDevice, const TQString & mimetype, bool autoDeleteInDevice );
This is the base class for compression filters such as gzip and bzip2.
Definition kfilterbase.h:39
static TQIODevice * createFilterDevice(KFilterBase *base, TQFile *file) TDE_DEPRECATED
Call this to create the appropriate filter device for base working on file .
Definition kfilterdev.cpp:66
void setOrigFileName(const TQCString &fileName)
For writing gzip compressed files only: set the name of the original file, to be used in the gzip hea...
Definition kfilterdev.cpp:472
static TQIODevice * deviceForFile(const TQString &fileName, const TQString &mimetype=TQString::null, bool forceFilter=false)
Creates an i/o device that is able to read from fileName, whether it's compressed or not.
Definition kfilterdev.cpp:81
KFilterDev(KFilterBase *filter, bool autoDeleteFilterBase=false)
Constructs a KFilterDev for a given filter (e.g.
Definition kfilterdev.cpp:46
void setSkipHeaders()
Call this let this device skip the gzip headers when reading/writing.
Definition kfilterdev.cpp:477
static TQIODevice * device(TQIODevice *inDevice, const TQString &mimetype)
Creates an i/o device that is able to read from the TQIODevice inDevice, whether the data is compress...
Definition kfilterdev.cpp:101
Trinity API Reference