18 #ifndef __kfilterdev_h
19 #define __kfilterdev_h
21 #include <tqiodevice.h>
23 #include <tdelibs_export.h>
58 virtual bool open(
int mode );
72 void setOrigFileName(
const TQCString & fileName );
80 void setSkipHeaders();
85 virtual TQIODevice::Offset size()
const;
88 virtual TQIODevice::Offset at()
const;
92 virtual bool at( TQIODevice::Offset );
94 virtual bool atEnd()
const;
98 virtual TQ_LONG readBlock(
char *data, TQ_ULONG maxlen );
99 virtual TQ_LONG writeBlock(
const char *data, TQ_ULONG len );
104 virtual int putch(
int );
105 virtual int ungetch(
int );
117 static TQIODevice* createFilterDevice(
KFilterBase* base, TQFile* file) TDE_DEPRECATED;
146 static TQIODevice * deviceForFile(
const TQString & fileName,
const TQString & mimetype = TQString::null,
147 bool forceFilter =
false );
167 static TQIODevice * device( TQIODevice* inDevice,
const TQString & mimetype);
190 static TQIODevice * device( TQIODevice* inDevice,
const TQString & mimetype,
bool autoDeleteInDevice );
194 class KFilterDevPrivate;
195 KFilterDevPrivate * d;
This is the base class for compression filters such as gzip and bzip2.
A class for reading and writing compressed data onto a device (e.g.