KFilterBase
#include <KFilterBase>
Public Types | |
enum | FilterFlags { NoHeaders = 0 , WithHeaders = 1 , ZlibHeaders = 2 } |
enum | Result { Ok , End , Error } |
Public Member Functions | |
virtual Result | compress (bool finish)=0 |
QIODevice * | device () |
FilterFlags | filterFlags () const |
virtual int | inBufferAvailable () const =0 |
virtual bool | inBufferEmpty () const |
virtual bool | init (int mode)=0 |
virtual int | mode () const =0 |
virtual int | outBufferAvailable () const =0 |
virtual bool | outBufferFull () const |
virtual bool | readHeader ()=0 |
virtual void | reset () |
void | setDevice (QIODevice *dev, bool autodelete=false) |
void | setFilterFlags (FilterFlags flags) |
virtual void | setInBuffer (const char *data, uint size)=0 |
virtual void | setOutBuffer (char *data, uint maxlen)=0 |
virtual bool | terminate () |
virtual Result | uncompress ()=0 |
virtual bool | writeHeader (const QByteArray &filename)=0 |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
This is the base class for compression filters such as gzip and bzip2.
It's pretty much internal. Don't use directly, use KCompressionDevice instead.
Definition at line 26 of file kfilterbase.h.
Member Enumeration Documentation
◆ FilterFlags
- Since
- 4.3
Definition at line 86 of file kfilterbase.h.
◆ Result
enum KFilterBase::Result |
Definition at line 72 of file kfilterbase.h.
Constructor & Destructor Documentation
◆ KFilterBase()
KFilterBase::KFilterBase | ( | ) |
Definition at line 25 of file kfilterbase.cpp.
◆ ~KFilterBase()
|
virtual |
Definition at line 30 of file kfilterbase.cpp.
Member Function Documentation
◆ compress()
|
pure virtual |
Implemented in KGzipFilter, and KNoneFilter.
◆ device()
QIODevice * KFilterBase::device | ( | ) |
Returns the device on which the filter will work.
- Returns
- the device on which the filter will work
Definition at line 44 of file kfilterbase.cpp.
◆ filterFlags()
KFilterBase::FilterFlags KFilterBase::filterFlags | ( | ) | const |
Definition at line 73 of file kfilterbase.cpp.
◆ inBufferAvailable()
|
pure virtual |
Implemented in KGzipFilter, and KNoneFilter.
◆ inBufferEmpty()
|
virtual |
Definition at line 49 of file kfilterbase.cpp.
◆ init()
|
pure virtual |
Implemented in KGzipFilter, and KNoneFilter.
◆ mode()
|
pure virtual |
Implemented in KGzipFilter, and KNoneFilter.
◆ outBufferAvailable()
|
pure virtual |
Implemented in KGzipFilter, and KNoneFilter.
◆ outBufferFull()
|
virtual |
Definition at line 54 of file kfilterbase.cpp.
◆ readHeader()
|
pure virtual |
Implemented in KGzipFilter, and KNoneFilter.
◆ reset()
|
virtual |
Reimplemented in KGzipFilter, and KNoneFilter.
Definition at line 64 of file kfilterbase.cpp.
◆ setDevice()
void KFilterBase::setDevice | ( | QIODevice * | dev, |
bool | autodelete = false ) |
Sets the device on which the filter will work.
- Parameters
-
dev the device on which the filter will work autodelete if true, dev
is deleted when the filter is deleted
Definition at line 38 of file kfilterbase.cpp.
◆ setFilterFlags()
void KFilterBase::setFilterFlags | ( | FilterFlags | flags | ) |
- Since
- 4.3
Definition at line 68 of file kfilterbase.cpp.
◆ setInBuffer()
|
pure virtual |
Implemented in KGzipFilter, and KNoneFilter.
◆ setOutBuffer()
|
pure virtual |
Implemented in KGzipFilter, and KNoneFilter.
◆ terminate()
|
virtual |
Reimplemented in KGzipFilter, and KNoneFilter.
Definition at line 59 of file kfilterbase.cpp.
◆ uncompress()
|
pure virtual |
Implemented in KGzipFilter, and KNoneFilter.
◆ virtual_hook()
|
protectedvirtual |
Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.
Unused in this class.
Definition at line 78 of file kfilterbase.cpp.
◆ writeHeader()
|
pure virtual |
Implemented in KGzipFilter, and KNoneFilter.
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.