class KAr

# class KAr | A class for reading ar archives. More...
Definition | `#include <kar.h>`
Inherits | KArchive [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KAr ( const QString& filename )
- KAr ( QIODevice * dev )
- virtual ~KAr ()
- QString fileName ()
- virtual bool prepareWriting ( const QString&, const QString&, const QString&, uint )
- virtual bool doneWriting ( uint )
- virtual bool writeDir ( const QString&, const QString&, const QString& )

#### Protected Methods

- virtual bool openArchive ( int mode )
- virtual bool closeArchive ()
- virtual void virtual_hook ( int id, void* data )

## Detailed Description

KAr ( const QString& filename ) | ### KAr

Creates an instance that operates on the given filename.

Parameters:

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

KAr ( QIODevice * dev ) | ### KAr

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

~KAr () | ### ~KAr

[virtual]

If the ar file is still opened, then it will be closed automatically by the destructor.

QString fileName () | ### fileName

The name of the ar file, as passed to the constructor Null if you used the QIODevice constructor.

bool prepareWriting ( const QString&, const QString&, const QString&, uint ) | ### prepareWriting

[virtual]

Reimplemented from KArchive.

bool doneWriting ( uint ) | ### doneWriting

[virtual]

Reimplemented from KArchive.

bool writeDir ( const QString&, const QString&, const QString& ) | ### writeDir

[virtual]

Reimplemented from KArchive.

bool openArchive ( int mode ) | ### openArchive

[protected virtual]

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

Reimplemented from KArchive.

bool closeArchive () | ### closeArchive

[protected virtual]

Reimplemented from KArchive.

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Reimplemented from KArchive.

- Author: Laurence Anderson
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:57 2003, using kdoc 2.0a54.