KGzipFilter

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 KFilterDev.

This header is not installed.

Definition at line 19 of file kgzipfilter.h.

Member Function Documentation

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

Implements KFilterBase.

Definition at line 337 of file kgzipfilter.cpp.

int KGzipFilter::inBufferAvailable ( ) const
overridevirtual

Implements KFilterBase.

Definition at line 249 of file kgzipfilter.cpp.

bool KGzipFilter::init ( int  mode)
overridevirtual

Implements KFilterBase.

Definition at line 56 of file kgzipfilter.cpp.

int KGzipFilter::mode ( ) const
overridevirtual

Implements KFilterBase.

Definition at line 105 of file kgzipfilter.cpp.

int KGzipFilter::outBufferAvailable ( ) const
overridevirtual

Implements KFilterBase.

Definition at line 253 of file kgzipfilter.cpp.

bool KGzipFilter::readHeader ( )
overridevirtual

Implements KFilterBase.

Definition at line 148 of file kgzipfilter.cpp.

void KGzipFilter::reset ( )
overridevirtual

Reimplemented from KFilterBase.

Definition at line 129 of file kgzipfilter.cpp.

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

Implements KFilterBase.

Definition at line 241 of file kgzipfilter.cpp.

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

Implements KFilterBase.

Definition at line 236 of file kgzipfilter.cpp.

bool KGzipFilter::terminate ( )
overridevirtual

Reimplemented from KFilterBase.

Definition at line 110 of file kgzipfilter.cpp.

KGzipFilter::Result KGzipFilter::uncompress ( )
overridevirtual

Implements KFilterBase.

Definition at line 275 of file kgzipfilter.cpp.

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-2020 The KDE developers.
Generated on Sat Sep 19 2020 23:02:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.