class KAr

A class for reading ar archives. More...

Definition#include <kar.h>
InheritsKArchive [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

 KAr ( const QString& filename )

KAr

Creates an instance that operates on the given filename.

Parameters:
filenameis 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.