#### PyKDE - Python Bindings for KDE

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

Module | kio
Class | KFilterBase (abstract)
Inherits | QObject

### 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 (QIODevice)

- findFilterByFileName (fileName)

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

- findFilterByMimeType (mimeType)

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

- 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 | QIODevice |
  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 | QCString |