lib
KoZipStore Class Reference
Inheritance diagram for KoZipStore:

Detailed Description
Definition at line 29 of file KoZipStore.h.
Public Member Functions | |
KoZipStore (const QString &_filename, Mode _mode, const QCString &appIdentification) | |
KoZipStore (QIODevice *dev, Mode mode, const QCString &appIdentification) | |
KoZipStore (QWidget *window, const KURL &_url, const QString &_filename, Mode _mode, const QCString &appIdentification) | |
~KoZipStore () | |
virtual Q_LONG | write (const char *_data, Q_ULONG _len) |
Protected Member Functions | |
virtual bool | init (Mode _mode, const QCString &appIdentification) |
virtual bool | openWrite (const QString &name) |
virtual bool | openRead (const QString &name) |
virtual bool | closeWrite () |
virtual bool | closeRead () |
virtual bool | enterRelativeDirectory (const QString &dirName) |
virtual bool | enterAbsoluteDirectory (const QString &path) |
virtual bool | fileExists (const QString &absPath) const |
Protected Attributes | |
KZip * | m_pZip |
const KArchiveDirectory * | m_currentDir |
Constructor & Destructor Documentation
KoZipStore::KoZipStore | ( | QWidget * | window, | |
const KURL & | _url, | |||
const QString & | _filename, | |||
Mode | _mode, | |||
const QCString & | appIdentification | |||
) |
KURL-constructor.
- Todo:
- saving not completely implemented (fixed temporary file)
- Since:
- 1.4
Definition at line 66 of file KoZipStore.cpp.
Member Function Documentation
Q_LONG KoZipStore::write | ( | const char * | _data, | |
Q_ULONG | _len | |||
) | [virtual] |
Write data into the currently opened file.
You can also use the streams for this.
Reimplemented from KoStore.
Definition at line 168 of file KoZipStore.cpp.
bool KoZipStore::openWrite | ( | const QString & | name | ) | [protected, virtual] |
Open the file name
in the store, for writing On success, this method must set m_stream to a stream in which we can write.
- Parameters:
-
name "absolute path" (in the archive) to the file to open
- Returns:
- true on success
Implements KoStore.
Definition at line 132 of file KoZipStore.cpp.
bool KoZipStore::openRead | ( | const QString & | name | ) | [protected, virtual] |
Open the file name
in the store, for reading.
On success, this method must set m_stream to a stream from which we can read, as well as setting m_iSize to the size of the file.
- Parameters:
-
name "absolute path" (in the archive) to the file to open
- Returns:
- true on success
Implements KoStore.
Definition at line 145 of file KoZipStore.cpp.
bool KoZipStore::closeWrite | ( | ) | [protected, virtual] |
virtual bool KoZipStore::closeRead | ( | ) | [inline, protected, virtual] |
bool KoZipStore::enterRelativeDirectory | ( | const QString & | dirName | ) | [protected, virtual] |
Enter a subdirectory of the current directory.
The directory might not exist yet in Write mode.
Implements KoStore.
Definition at line 203 of file KoZipStore.cpp.
bool KoZipStore::enterAbsoluteDirectory | ( | const QString & | path | ) | [protected, virtual] |
Enter a directory where we've been before.
It is guaranteed to always exist.
Implements KoStore.
Definition at line 221 of file KoZipStore.cpp.
bool KoZipStore::fileExists | ( | const QString & | absPath | ) | const [protected, virtual] |
Check if a file exists inside the store.
- Parameters:
-
absPath the absolute path inside the store, i.e. not relative to the current directory
Implements KoStore.
Definition at line 233 of file KoZipStore.cpp.
Member Data Documentation
KZip* KoZipStore::m_pZip [protected] |
const KArchiveDirectory* KoZipStore::m_currentDir [protected] |
In "Read" mode this pointer is pointing to the current directory in the archive to speed up the verification process.
Definition at line 58 of file KoZipStore.h.
The documentation for this class was generated from the following files: