class KZip

#### PyKDE - Python Bindings for KDE

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

Module | kio
Class | KZip
Inherits | KArchive

### enums

- Compression = {NoCompression = 0, DeflateCompression = 1 }
- ExtraField = {NoExtraField = 0, ModificationTime = 1, DefaultExtraField = 1 }

### methods

- KZip (filename)

  returns a KZip instance
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  filename | QString |

- KZip (dev)

  returns a KZip instance
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  dev | QIODevice |

- closeArchive ()

  returns (bool)
  In versions KDE 3.1.0 and above only

- compression ()

  returns (KZip.Compression)
  In versions KDE 3.1.0 and above only

- doneWriting (size)

  returns (bool)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  size | uint |

- extraField ()

  returns (KZip.ExtraField)
  In versions KDE 3.2.0 and above only

- fileName ()

  returns (QString)
  In versions KDE 3.1.0 and above only

- openArchive (mode)

  returns (bool)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  mode | int |

- prepareWriting (name, user, group, size)

  returns (bool)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  name | QString |
  user | QString |
  group | QString |
  size | uint |

- prepareWriting (name, user, group, size, perm, atime, mtime, ctime)

  returns (bool)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  name | QString |
  user | QString |
  group | QString |
  size | uint |
  perm | mode_t |
  atime | time_t |
  mtime | time_t |
  ctime | time_t |

- prepareWriting_impl (name, user, group, size, perm, atime, mtime, ctime)

  returns (bool)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  name | QString |
  user | QString |
  group | QString |
  size | uint |
  perm | mode_t |
  atime | time_t |
  mtime | time_t |
  ctime | time_t |

- setCompression (c)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  c | KZip.Compression |

- setExtraField (ef)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  ef | KZip.ExtraField |

- virtual_hook (id, data)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  id | int |
  data | void |

- writeData (data, size)

  returns (bool)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  data | char |
  size | uint |

- writeData_impl (data, size)

  returns (bool)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  data | char |
  size | uint |

- writeDir (a0, a1, a2)

  returns (bool)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | QString |
  a2 | QString |

- writeFile (name, user, group, size, data)

  returns (bool)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  name | QString |
  user | QString |
  group | QString |
  size | uint |
  data | char |

- writeFile (name, user, group, size, perm, atime, mtime, ctime, data)

  returns (bool)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  name | QString |
  user | QString |
  group | QString |
  size | uint |
  perm | mode_t |
  atime | time_t |
  mtime | time_t |
  ctime | time_t |
  data | char |

- writeSymLink (name, target, user, group, perm, atime, mtime, ctime)

  returns (bool)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  name | QString |
  target | QString |
  user | QString |
  group | QString |
  perm | mode_t |
  atime | time_t |
  mtime | time_t |
  ctime | time_t |

- writeSymLink_impl (name, target, user, group, perm, atime, mtime, ctime)

  returns (bool)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  name | QString |
  target | QString |
  user | QString |
  group | QString |
  perm | mode_t |
  atime | time_t |
  mtime | time_t |
  ctime | time_t |