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 46 of file kgzipfilter.cpp.

◆ ~KGzipFilter()

KGzipFilter::~KGzipFilter ( )
override

Definition at line 51 of file kgzipfilter.cpp.

Member Function Documentation

◆ compress()

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

Implements KFilterBase.

Definition at line 335 of file kgzipfilter.cpp.

◆ inBufferAvailable()

int KGzipFilter::inBufferAvailable ( ) const
overridevirtual

Implements KFilterBase.

Definition at line 247 of file kgzipfilter.cpp.

◆ init() [1/2]

bool KGzipFilter::init ( int mode)
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()

int KGzipFilter::mode ( ) const
overridevirtual

Implements KFilterBase.

Definition at line 103 of file kgzipfilter.cpp.

◆ outBufferAvailable()

int KGzipFilter::outBufferAvailable ( ) const
overridevirtual

Implements KFilterBase.

Definition at line 251 of file kgzipfilter.cpp.

◆ readHeader()

bool KGzipFilter::readHeader ( )
overridevirtual

Implements KFilterBase.

Definition at line 146 of file kgzipfilter.cpp.

◆ reset()

void KGzipFilter::reset ( )
overridevirtual

Reimplemented from KFilterBase.

Definition at line 127 of file kgzipfilter.cpp.

◆ setInBuffer()

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

Implements KFilterBase.

Definition at line 239 of file kgzipfilter.cpp.

◆ setOutBuffer()

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

Implements KFilterBase.

Definition at line 234 of file kgzipfilter.cpp.

◆ terminate()

bool KGzipFilter::terminate ( )
overridevirtual

Reimplemented from KFilterBase.

Definition at line 108 of file kgzipfilter.cpp.

◆ uncompress()

KGzipFilter::Result KGzipFilter::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()

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

Implements KFilterBase.

Definition at line 191 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-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.