class KTarGz

A class for reading/writing optionnally-gzipped tar balls. Should be named KTar and be merged back with KTarBase - in KDE 3.0. More...

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

Public Methods


Detailed Description

 KTarGz ( const QString& filename )

KTarGz

Creates an instance that operates on the given filename.

Parameters:
filenamehas the format "/home/weis/myfile.tgz" or something like that.

See also: open

 KTarGz ( const QString& filename, const QString & mimetype )

KTarGz

Creates an instance that operates on the given file, using the compression filter associated to given mimetype.

Parameters:
filenamepath to the file
mimetype"application/x-gzip" or "application/x-bzip2" Do not use application/x-tgz or so. Only the compression layer !

See also: open

 KTarGz ( QIODevice * dev )

KTarGz

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

 ~KTarGz ()

~KTarGz

[virtual]

If the tar ball is still opened, then it will be closed automatically by the destructor.

QString  fileName ()

fileName

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

void  setOrigFileName ( const QCString & fileName )

setOrigFileName

Special function for setting the "original file name" in the gzip header, when writing a tar.gz file. It appears when using in the "file" command, for instance. Should only be called if the underlying device is a KFilterDev!