KGzipFilter
#include <kgzipfilter.h>
Public Types | |
enum | Flag { RawDeflate = 0 , ZlibHeader = 1 , GZipHeader = 2 } |
Public Types inherited from KFilterBase | |
enum | FilterFlags { NoHeaders = 0 , WithHeaders = 1 , ZlibHeaders = 2 } |
enum | Result { Ok , End , Error } |
Public Member Functions | |
Result | compress (bool finish) override |
int | inBufferAvailable () const override |
bool | init (int mode) override |
bool | init (int mode, Flag flag) |
int | mode () const override |
int | outBufferAvailable () const override |
bool | readHeader () override |
void | reset () override |
void | setInBuffer (const char *data, uint size) override |
void | setOutBuffer (char *data, uint maxlen) override |
bool | terminate () override |
Result | uncompress () override |
void | writeFooter () |
bool | writeHeader (const QByteArray &fileName) override |
Public Member Functions inherited from KFilterBase | |
QIODevice * | device () |
FilterFlags | filterFlags () const |
virtual bool | inBufferEmpty () const |
virtual bool | outBufferFull () const |
void | setDevice (QIODevice *dev, bool autodelete=false) |
void | setFilterFlags (FilterFlags flags) |
Additional Inherited Members | |
Protected Member Functions inherited from KFilterBase | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
Internal class used by KCompressionDevice.
This header is not installed.
Definition at line 19 of file kgzipfilter.h.
Member Enumeration Documentation
◆ Flag
enum KGzipFilter::Flag |
Definition at line 34 of file kgzipfilter.h.
Constructor & Destructor Documentation
◆ KGzipFilter()
KGzipFilter::KGzipFilter | ( | ) |
Definition at line 46 of file kgzipfilter.cpp.
◆ ~KGzipFilter()
|
override |
Definition at line 51 of file kgzipfilter.cpp.
Member Function Documentation
◆ compress()
|
overridevirtual |
Implements KFilterBase.
Definition at line 335 of file kgzipfilter.cpp.
◆ inBufferAvailable()
|
overridevirtual |
Implements KFilterBase.
Definition at line 247 of file kgzipfilter.cpp.
◆ init() [1/2]
|
overridevirtual |
Implements KFilterBase.
Definition at line 56 of file kgzipfilter.cpp.
◆ init() [2/2]
bool KGzipFilter::init | ( | int | mode, |
Flag | flag ) |
Definition at line 69 of file kgzipfilter.cpp.
◆ mode()
|
overridevirtual |
Implements KFilterBase.
Definition at line 103 of file kgzipfilter.cpp.
◆ outBufferAvailable()
|
overridevirtual |
Implements KFilterBase.
Definition at line 251 of file kgzipfilter.cpp.
◆ readHeader()
|
overridevirtual |
Implements KFilterBase.
Definition at line 146 of file kgzipfilter.cpp.
◆ reset()
|
overridevirtual |
Reimplemented from KFilterBase.
Definition at line 127 of file kgzipfilter.cpp.
◆ setInBuffer()
|
overridevirtual |
Implements KFilterBase.
Definition at line 239 of file kgzipfilter.cpp.
◆ setOutBuffer()
|
overridevirtual |
Implements KFilterBase.
Definition at line 234 of file kgzipfilter.cpp.
◆ terminate()
|
overridevirtual |
Reimplemented from KFilterBase.
Definition at line 108 of file kgzipfilter.cpp.
◆ uncompress()
|
overridevirtual |
Implements KFilterBase.
Definition at line 273 of file kgzipfilter.cpp.
◆ writeFooter()
void KGzipFilter::writeFooter | ( | ) |
Definition at line 218 of file kgzipfilter.cpp.
◆ writeHeader()
|
overridevirtual |
Implements KFilterBase.
Definition at line 191 of file kgzipfilter.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.