# class KAr

###

Module | kio
Namespace |
Class | KAr
Inherits | KArchive

KAr is a class for reading archives in ar format. Writing is not supported. A class for reading ar archives. Author Laurence Anderson <l.d.anderson@warwick.ac.uk>

### methods

- KAr (filename)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  filename | QString |

  Creates an instance that operates on the given filename.

  filename - is a local path (e.g. "/home/holger/myfile.ar")

- KAr (dev)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  dev | QIODevice |

  Creates an instance that operates on the given device. The device can be compressed (KFilterDev) or not (QFile, etc.).

  dev - the device to read from

- closeArchive ( )

  returns bool

- doFinishWriting (size)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  size | qint64 |

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

  returns bool

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  user | QString |
  group | QString |
  size | qint64 |
  perm | mode_t |
  atime | time_t |
  mtime | time_t |
  ctime | time_t |

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

  returns bool

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  user | QString |
  group | QString |
  perm | mode_t |
  atime | time_t |
  mtime | time_t |
  ctime | time_t |

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

  returns bool

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  target | QString |
  user | QString |
  group | QString |
  perm | mode_t |
  atime | time_t |
  mtime | time_t |
  ctime | time_t |

- openArchive (mode)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  mode | QIODevice.OpenMode |

  Opens the archive for reading. Parses the directory listing of the archive and creates the KArchiveDirectory/KArchiveFile entries.

- virtual_hook (id, data)

  returns Nothing
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  id | int |
  data | void |