|
| KZip (const TQString &filename) |
|
| KZip (TQIODevice *dev) |
|
virtual | ~KZip () |
|
TQString | fileName () |
|
void | setExtraField (ExtraField ef) |
|
ExtraField | extraField () const |
|
void | setCompression (Compression c) |
|
Compression | compression () const |
|
virtual bool | writeFile (const TQString &name, const TQString &user, const TQString &group, uint size, const char *data) |
|
virtual bool | prepareWriting (const TQString &name, const TQString &user, const TQString &group, uint size) |
|
bool | writeSymLink (const TQString &name, const TQString &target, const TQString &user, const TQString &group, mode_t perm, time_t atime, time_t mtime, time_t ctime) |
|
bool | prepareWriting (const TQString &name, const TQString &user, const TQString &group, uint size, mode_t perm, time_t atime, time_t mtime, time_t ctime) |
|
bool | writeFile (const TQString &name, const TQString &user, const TQString &group, uint size, mode_t perm, time_t atime, time_t mtime, time_t ctime, const char *data) |
|
bool | writeData (const char *data, uint size) |
|
virtual bool | doneWriting (uint size) |
|
virtual bool | open (int mode) |
|
virtual void | close () |
|
bool | closeSucceeded () const |
|
bool | isOpened () const |
|
int | mode () const |
|
TQIODevice * | device () const |
|
const KArchiveDirectory * | directory () const |
|
bool | addLocalFile (const TQString &fileName, const TQString &destName) |
|
bool | addLocalDirectory (const TQString &path, const TQString &destName) |
|
bool | writeDir (const TQString &name, const TQString &user, const TQString &group, mode_t perm, time_t atime, time_t mtime, time_t ctime) |
|
bool | writeSymLink (const TQString &name, const TQString &target, const TQString &user, const TQString &group, mode_t perm, time_t atime, time_t mtime, time_t ctime) |
|
bool | writeFile (const TQString &name, const TQString &user, const TQString &group, uint size, mode_t perm, time_t atime, time_t mtime, time_t ctime, const char *data) |
|
bool | prepareWriting (const TQString &name, const TQString &user, const TQString &group, uint size, mode_t perm, time_t atime, time_t mtime, time_t ctime) |
|
bool | writeData (const char *data, uint size) |
|
|
virtual bool | openArchive (int mode) |
|
virtual bool | closeArchive () |
|
virtual bool | writeDir (const TQString &name, const TQString &user, const TQString &group) |
|
virtual void | virtual_hook (int id, void *data) |
|
bool | writeData_impl (const char *data, uint size) |
|
bool | prepareWriting_impl (const TQString &name, const TQString &user, const TQString &group, uint size, mode_t perm, time_t atime, time_t mtime, time_t ctime) |
|
bool | writeSymLink_impl (const TQString &name, const TQString &target, const TQString &user, const TQString &group, mode_t perm, time_t atime, time_t mtime, time_t ctime) |
|
| KArchive (TQIODevice *dev) |
|
virtual KArchiveDirectory * | rootDir () |
|
KArchiveDirectory * | findOrCreate (const TQString &path) |
|
void | setDevice (TQIODevice *dev) |
|
void | setRootDir (KArchiveDirectory *rootDir) |
|
bool | prepareWriting_impl (const TQString &name, const TQString &user, const TQString &group, uint size, mode_t perm, time_t atime, time_t mtime, time_t ctime) |
|
bool | writeFile_impl (const TQString &name, const TQString &user, const TQString &group, uint size, mode_t perm, time_t atime, time_t mtime, time_t ctime, const char *data) |
|
bool | writeDir_impl (const TQString &name, const TQString &user, const TQString &group, mode_t perm, time_t atime, time_t mtime, time_t ctime) |
|
bool | writeSymLink_impl (const TQString &name, const TQString &target, const TQString &user, const TQString &group, mode_t perm, time_t atime, time_t mtime, time_t ctime) |
|
bool | writeData_impl (const char *data, uint size) |
|
This class implements a tdeioslave to access zip files from KDE.
You can use it in IO_ReadOnly or in IO_WriteOnly mode, and it behaves just as expected. It can also be used in IO_ReadWrite mode, in this case one can append files to an existing zip archive. When you append new files, which are not yet in the zip, it works as expected, i.e. the files are appended at the end. When you append a file, which is already in the file, the reference to the old file is dropped and the new one is added to the zip - but the old data from the file itself is not deleted, it is still in the zipfile. so when you want to have a small and garbage-free zipfile, just read the contents of the appended zip file and write it to a new one in IO_WriteOnly mode. This is especially important when you don't want to leak information of how intermediate versions of files in the zip were looking. For more information on the zip fileformat go to http://www.pkware.com/products/enterprise/white_papers/appnote.html
A class for reading/writing zip archives.
- Author
- Holger Schroeder holge.nosp@m.r-kd.nosp@m.e@hol.nosp@m.gis..nosp@m.net
- Since
- 3.1
Definition at line 53 of file kzip.h.