KGzipFilter

Search for usage in LXR

KGzipFilter Class Reference

#include <kgzipfilter.h>

Inheritance diagram for KGzipFilter:

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
QIODevicedevice ()
 
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 48 of file kgzipfilter.cpp.

◆ ~KGzipFilter()

KGzipFilter::~KGzipFilter ( )
override

Definition at line 53 of file kgzipfilter.cpp.

Member Function Documentation

◆ compress()

KGzipFilter::Result KGzipFilter::compress ( bool finish)
overridevirtual

Implements KFilterBase.

Definition at line 337 of file kgzipfilter.cpp.

◆ inBufferAvailable()

int KGzipFilter::inBufferAvailable ( ) const
overridevirtual

Implements KFilterBase.

Definition at line 249 of file kgzipfilter.cpp.

◆ init() [1/2]

bool KGzipFilter::init ( int mode)
overridevirtual

Implements KFilterBase.

Definition at line 58 of file kgzipfilter.cpp.

◆ init() [2/2]

bool KGzipFilter::init ( int mode,
Flag flag )

Definition at line 71 of file kgzipfilter.cpp.

◆ mode()

int KGzipFilter::mode ( ) const
overridevirtual

Implements KFilterBase.

Definition at line 105 of file kgzipfilter.cpp.

◆ outBufferAvailable()

int KGzipFilter::outBufferAvailable ( ) const
overridevirtual

Implements KFilterBase.

Definition at line 253 of file kgzipfilter.cpp.

◆ readHeader()

bool KGzipFilter::readHeader ( )
overridevirtual

Implements KFilterBase.

Definition at line 148 of file kgzipfilter.cpp.

◆ reset()

void KGzipFilter::reset ( )
overridevirtual

Reimplemented from KFilterBase.

Definition at line 129 of file kgzipfilter.cpp.

◆ setInBuffer()

void KGzipFilter::setInBuffer ( const char * data,
uint size )
overridevirtual

Implements KFilterBase.

Definition at line 241 of file kgzipfilter.cpp.

◆ setOutBuffer()

void KGzipFilter::setOutBuffer ( char * data,
uint maxlen )
overridevirtual

Implements KFilterBase.

Definition at line 236 of file kgzipfilter.cpp.

◆ terminate()

bool KGzipFilter::terminate ( )
overridevirtual

Reimplemented from KFilterBase.

Definition at line 110 of file kgzipfilter.cpp.

◆ uncompress()

KGzipFilter::Result KGzipFilter::uncompress ( )
overridevirtual

Implements KFilterBase.

Definition at line 275 of file kgzipfilter.cpp.

◆ writeFooter()

void KGzipFilter::writeFooter ( )

Definition at line 220 of file kgzipfilter.cpp.

◆ writeHeader()

bool KGzipFilter::writeHeader ( const QByteArray & filename)
overridevirtual

Implements KFilterBase.

Definition at line 193 of file kgzipfilter.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 4 2025 12:10:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.