class KFilterBase

This is the base class for compression filters such as gzip and bzip2. More...

Contains pure virtuals
Definition#include <kfilterbase.h>
InheritsQObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods

Protected Members


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

 KFilterBase ()

KFilterBase

 ~KFilterBase ()

~KFilterBase

[virtual]

void  setDevice ( QIODevice * dev, bool autodelete = false )

setDevice

Sets the device on which the filter will work If autodelete is set to true, dev is deleted when the filter is deleted

QIODevice *  device ()

device

void  init ( int mode )

init

[pure virtual]

int  mode ()

mode

[const pure virtual]

void  terminate ()

terminate

[virtual]

void  reset ()

reset

[virtual]

bool  readHeader ()

readHeader

[pure virtual]

bool  writeHeader ( const QCString & filename )

writeHeader

[pure virtual]

void  setOutBuffer ( char * data, uint maxlen )

setOutBuffer

[pure virtual]

void  setInBuffer ( const char * data, uint size )

setInBuffer

[pure virtual]

bool  inBufferEmpty ()

inBufferEmpty

[const virtual]

int  inBufferAvailable ()

inBufferAvailable

[const pure virtual]

bool  outBufferFull ()

outBufferFull

[const virtual]

int  outBufferAvailable ()

outBufferAvailable

[const pure virtual]

enum Result { OK, END, ERROR }

Result

Result  uncompress ()

uncompress

[pure virtual]

Result  compress ( bool finish )

compress

[pure virtual]

KFilterBase *  findFilterByFileName ( const QString & fileName )

findFilterByFileName

[static]

Call this to create the appropriate filter for the file named @fileName.

KFilterBase *  findFilterByMimeType ( const QString & mimeType )

findFilterByMimeType

[static]

Call this to create the appropriate filter for the mimetype mimeType. For instance application/x-gzip.

QIODevice * m_dev

m_dev

[protected]

bool m_bAutoDel

m_bAutoDel

[protected]


Generated by: dfaure on kde.faure.org on Thu Jan 17 22:16:53 2002, using kdoc 2.0a53.