#### PyKDE - Python Bindings for KDE

# class KFilterBase |
Table of contents
Modules
tdeio Classes
All Classes

Module | tdeio
Class | KFilterBase (abstract)
Inherits | TQObject

### enums

- Result = {OK, END, ERROR }

### methods

- KFilterBase ()

  returns a KFilterBase instance

- compress (finish) = 0

  returns (KFilterBase.Result)
  pure virtual
  Argument | Type | Default
  --- | --- | ---
  finish | bool |

- device ()

  returns (TQIODevice)

- findFilterByFileName (fileName)

  returns (KFilterBase)
  static
  Argument | Type | Default
  --- | --- | ---
  fileName | TQString |

- findFilterByMimeType (mimeType)

  returns (KFilterBase)
  static
  Argument | Type | Default
  --- | --- | ---
  mimeType | TQString |

- inBufferAvailable () = 0

  returns (int)
  pure virtual

- inBufferEmpty ()

  returns (bool)

- init (mode) = 0

  returns nothing
  pure virtual
  Argument | Type | Default
  --- | --- | ---
  mode | int |

- mode () = 0

  returns (int)
  pure virtual

- outBufferAvailable () = 0

  returns (int)
  pure virtual

- outBufferFull ()

  returns (bool)

- readHeader () = 0

  returns (bool)
  pure virtual

- reset ()

  returns nothing

- setDevice (dev, autodelete = 0)

  returns nothing
  In versions KDE 3.1.2 and above only
  Argument | Type | Default
  --- | --- | ---
  dev | TQIODevice |
  autodelete | bool | 0

- setInBuffer (data, size) = 0

  returns nothing
  pure virtual
  Argument | Type | Default
  --- | --- | ---
  data | char |
  size | uint |

- setOutBuffer (data, maxlen) = 0

  returns nothing
  pure virtual
  Argument | Type | Default
  --- | --- | ---
  data | char |
  maxlen | uint |

- terminate ()

  returns nothing

- uncompress () = 0

  returns (Result)
  pure virtual

- writeHeader (filename) = 0

  returns (bool)
  pure virtual
  Argument | Type | Default
  --- | --- | ---
  filename | TQCString |