#include <kzip.h>
Inheritance diagram for KZip:

Public Methods | |
| KZip (const QString &filename) | |
| KZip (QIODevice *dev) | |
| virtual | ~KZip () |
| QString | fileName () |
| void | setCompression (Compression c) |
| virtual bool | writeFile (const QString &name, const QString &user, const QString &group, uint size, const char *data) |
| virtual bool | prepareWriting (const QString &name, const QString &user, const QString &group, uint size) |
| virtual bool | doneWriting (uint size) |
Protected Methods | |
| virtual bool | openArchive (int mode) |
| virtual bool | closeArchive () |
| virtual bool | writeDir (const QString &, const QString &, const QString &) |
| virtual void | virtual_hook (int id, void *data) |
Definition at line 54 of file kzip.h.
|
|
Creates an instance that operates on the given filename. using the compression filter associated to given mimetype.
|
|
|
Creates an instance that operates on the given device. The device can be compressed (KFilterDev) or not (QFile, etc.). WARNING: don't assume that giving a QFile here will decompress the file, in case it's compressed! |
|
|
If the zip file is still opened, then it will be closed automatically by the destructor. |
|
|
Closes the archive. Called by close. Implements KArchive. |
|
|
Call doneWriting after writing the data.
Implements KArchive. |
|
|
The name of the zip file, as passed to the constructor Null if you used the QIODevice constructor. |
|
|
Opens the archive for reading. Parses the directory listing of the archive and creates the KArchiveDirectory/KArchiveFile entries. Implements KArchive. |
|
||||||||||||||||||||
|
Alternative method: call prepareWriting, writeData in small chunks, doneWriting
Implements KArchive. |
|
|
Call this before writeFile or prepareWriting, to define whether the next files to be written should be compressed or not. |
|
||||||||||||||||
|
If an archive is opened for writing then you can add new directories using this function. KArchive won't write one directory twice. Implements KArchive. |
|
||||||||||||||||||||||||
|
If an archive is opened for writing then you can add a new file using this function. This method takes the whole data at once.
Reimplemented from KArchive. |
1.2.18