KArchive
kcompressiondevice.cpp
87 if (fileName.endsWith(QLatin1String(".lzma"), Qt::CaseInsensitive) || fileName.endsWith(QLatin1String(".xz"), Qt::CaseInsensitive)) {
105 KCompressionDevice::CompressionType KCompressionDevice::compressionTypeForMimeType(const QString &mimeType)
134 // use legacy MIME type for now, see comment in impl. of KTar(const QString &, const QString &_mimetype)
160 KFilterBase *KCompressionDevice::filterForCompressionType(KCompressionDevice::CompressionType type)
187 KCompressionDevice::KCompressionDevice(QIODevice *inputDevice, bool autoDeleteInputDevice, CompressionType type)
405 // qCDebug(KArchiveLog) << "avail_out = " << filter->outBufferAvailable() << " result=" << d->result << " outReceived=" << outReceived;
407 // qCWarning(KArchiveLog) << " last availOut " << availOut << " smaller than new avail_out=" << filter->outBufferAvailable() << " !";
463 // qCDebug(KArchiveLog) << " Wrote everything for now. avail_in=" << filter->inBufferAvailable() << "result=" << d->result << "wrote=" << wrote;
470 // qCDebug(KArchiveLog) << " availIn=" << availIn << "dataWritten=" << dataWritten << "pos=" << pos();
477 // qCDebug(KArchiveLog) << " writing to underlying. avail_out=" << filter->outBufferAvailable();
bool inherits(const QString &mimeTypeName) const const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const const
QString errorString() const const
void setOpenMode(QIODevice::OpenMode openMode)
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: kcompressiondevice.cpp:502
typedef OpenMode
CaseInsensitive
Type type(const QSqlDatabase &db)
Definition: kcompressiondevice.h:30
virtual bool seek(qint64 pos)
void setSkipHeaders()
Call this let this device skip the gzip headers when reading/writing.
Definition: kcompressiondevice.cpp:507
void setErrorString(const QString &str)
bool seek(qint64) override
That one can be quite slow, when going back.
Definition: kcompressiondevice.cpp:292
static KFilterBase * filterForCompressionType(CompressionType type)
Call this to create the appropriate filter for the CompressionType named type.
Definition: kcompressiondevice.cpp:160
static CompressionType compressionTypeForMimeType(const QString &mimetype)
Returns the compression type for the given MIME type, if possible.
Definition: kcompressiondevice.cpp:105
virtual qint64 pos() const const
QMimeType mimeTypeForName(const QString &nameOrAlias) const const
bool isOpen() const const
FileError
KCompressionDevice(QIODevice *inputDevice, bool autoDeleteInputDevice, CompressionType type)
Constructs a KCompressionDevice for a given CompressionType (e.g.
Definition: kcompressiondevice.cpp:187
virtual qint64 size() const const
QFuture< void > filter(Sequence &sequence, KeepFunctor filterFunction)
~KCompressionDevice() override
Destructs the KCompressionDevice.
Definition: kcompressiondevice.cpp:216
bool isValid() const const
CompressionType compressionType() const
The compression actually used by this device.
Definition: kcompressiondevice.cpp:225
Definition: kfilterbase.h:26
qint64 read(char *data, qint64 maxSize)
bool open(QIODevice::OpenMode mode) override
Open for reading or writing.
Definition: kcompressiondevice.cpp:230
virtual bool atEnd() const const
QFileDevice::FileError error() const
Returns the error code from the last failing operation.
Definition: kcompressiondevice.cpp:287
int size() const const
virtual void close()
QString tr(const char *sourceText, const char *disambiguation, int n)
char * data()
qint64 write(const char *data, qint64 maxSize)
NoError
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:15:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:15:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.