#### PyKDE - Python Bindings for KDE

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

Module | kio
Class | KArchive (abstract)
Inherits |

### methods

- KArchive (dev)

  returns a KArchive instance
  Argument | Type | Default
  --- | --- | ---
  dev | QIODevice |

- addLocalDirectory (path, destName)

  returns (bool)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  path | QString |
  destName | QString |

- addLocalFile (fileName, destName)

  returns (bool)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  fileName | QString |
  destName | QString |

- close ()

  returns nothing

- closeArchive () = 0

  returns (bool)
  pure virtual

- closeSucceeded ()

  returns (bool)
  In versions KDE 3.5.0 and above only

- device ()

  returns (QIODevice)

- directory ()

  returns (KArchiveDirectory)

- doneWriting (size) = 0

  returns (bool)
  pure virtual
  Argument | Type | Default
  --- | --- | ---
  size | uint |

- findOrCreate (path)

  returns (KArchiveDirectory)
  Argument | Type | Default
  --- | --- | ---
  path | QString |

- isOpened ()

  returns (bool)

- mode ()

  returns (int)

- open (mode)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  mode | int |

- openArchive (mode) = 0

  returns (bool)
  pure virtual
  Argument | Type | Default
  --- | --- | ---
  mode | int |

- prepareWriting (name, user, group, size) = 0

  returns (bool)
  pure virtual
  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 |

- rootDir ()

  returns (KArchiveDirectory)

- setDevice (dev)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  dev | QIODevice |

- setRootDir (rootDir)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  rootDir | KArchiveDirectory |

- writeData (data, size)

  returns (bool)
  In versions KDE 3.2.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 (name, user, group) = 0

  returns (bool)
  pure virtual
  Argument | Type | Default
  --- | --- | ---
  name | QString |
  user | QString |
  group | QString |

- writeDir (name, user, group, perm, atime, mtime, ctime)

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

- writeDir_impl (name, user, group, perm, atime, mtime, ctime)

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

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

  returns (bool)
  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 |

- writeFile_impl (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 |

- ~KArchive ()

  returns nothing
  In versions less than KDE 3.1.0 only