KDECore
kfilterdev.cpp
Go to the documentation of this file.
84 QIODevice * KFilterDev::device( QIODevice* inDevice, const QString & mimetype, bool autoDeleteInDevice )
253 //kDebug(7005) << "avail_out = " << filter->outBufferAvailable() << " result=" << d->result << " outReceived=" << outReceived;
255 qWarning() << " last availOut " << availOut << " smaller than new avail_out=" << filter->outBufferAvailable() << " !";
317 //kDebug(7005) << " Wrote everything for now. avail_in=" << filter->inBufferAvailable() << "result=" << d->result << "wrote=" << wrote;
338 qWarning() << "KFilterDev::write. Could only write " << size << " out of " << towrite << " bytes";
static QIODevice * deviceForFile(const QString &fileName, const QString &mimetype=QString(), bool forceFilter=false)
Reimplemented to return true.
Definition: kfilterdev.cpp:64
virtual void setInBuffer(const char *data, uint size)=0
QIODevice * device()
Returns the device on which the filter will work.
Definition: kfilterbase.cpp:60
virtual Result compress(bool finish)=0
A class for reading and writing compressed data onto a device (e.g.
Definition: kfilterdev.h:36
virtual void setOutBuffer(char *data, uint maxlen)=0
Definition: kfilterbase.h:82
virtual int inBufferAvailable() const =0
Definition: kfilterbase.h:93
virtual qint64 writeData(const char *data, qint64 len)
Definition: kfilterdev.cpp:278
virtual bool open(QIODevice::OpenMode mode)
Open for reading or writing.
Definition: kfilterdev.cpp:97
This is the base class for compression filters such as gzip and bzip2.
Definition: kfilterbase.h:36
static KFilterBase * findFilterByFileName(const QString &fileName)
Call this to create the appropriate filter for the file named fileName.
Definition: kfilterbase.cpp:75
void setDevice(QIODevice *dev, bool autodelete=false)
Sets the device on which the filter will work.
Definition: kfilterbase.cpp:54
static QIODevice * device(QIODevice *inDevice, const QString &mimetype, bool autoDeleteInDevice=true)
Creates an i/o device that is able to read from the QIODevice inDevice, whether the data is compresse...
Definition: kfilterdev.cpp:84
void setOrigFileName(const QByteArray &fileName)
For writing gzip compressed files only: set the name of the original file, to be used in the gzip hea...
Definition: kfilterdev.cpp:358
virtual bool seek(qint64)
That one can be quite slow, when going back.
Definition: kfilterdev.cpp:142
void setSkipHeaders()
Call this let this device skip the gzip headers when reading/writing.
Definition: kfilterdev.cpp:363
virtual int mode() const =0
virtual qint64 readData(char *data, qint64 maxlen)
Definition: kfilterdev.cpp:189
Definition: kfilterbase.h:82
Definition: kfilterbase.h:94
virtual int outBufferAvailable() const =0
static KFilterBase * findFilterByMimeType(const QString &mimeType)
Call this to create the appropriate filter for the mimetype mimeType.
Definition: kfilterbase.cpp:103
virtual bool writeHeader(const QByteArray &filename)=0
Definition: kfilterbase.h:82
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.