class KFilterDev

A class for reading and writing compressed data onto a device (e. More...

Definition#include <kfilterdev.h>
InheritsQIODevice [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


Detailed Description

A class for reading and writing compressed data onto a device (e.g. file, but other usages are possible, like a buffer or a socket)

 KFilterDev ( KFilterBase * filter )

Create a KFilterDev for a given filter (e.g. gzip, bzip2 etc.)

 ~KFilterDev ()

[virtual]

bool  open ( int mode )

[virtual]

void  close ()

[virtual]

void  flush ()

[virtual]

uint  size ()

[const virtual]

int  at ()

[const virtual]

bool  at ( int )

[virtual]

That one can be quite slow, when going back. Use with care.

bool  atEnd ()

[const virtual]

int  readBlock ( char *data, uint maxlen )

[virtual]

int  writeBlock ( const char *data, uint len )

[virtual]

int  getch ()

[virtual]

int  putch ( int )

[virtual]

int  ungetch ( int )

[virtual]

QIODevice*  createFilterDevice (KFilterBase* base, QFile* file)

[static]

Call this to create the appropriate filter device for base working on file . The returned QIODevice has to be deleted after using.