lib
KoTarStore Class Reference
Inheritance diagram for KoTarStore:

Detailed Description
Definition at line 29 of file KoTarStore.h.
Public Member Functions | |
KoTarStore (const QString &_filename, Mode _mode, const QCString &appIdentification) | |
KoTarStore (QIODevice *dev, Mode mode, const QCString &appIdentification) | |
KoTarStore (QWidget *window, const KURL &url, const QString &_filename, Mode _mode, const QCString &appIdentification) | |
~KoTarStore () | |
Protected Member Functions | |
virtual bool | init (Mode _mode) |
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 |
Static Protected Member Functions | |
static QCString | completeMagic (const QCString &appMimetype) |
Protected Attributes | |
KTar * | m_pTar |
const KArchiveDirectory * | m_currentDir |
QByteArray | m_byteArray |
Constructor & Destructor Documentation
KoTarStore::KoTarStore | ( | 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 53 of file KoTarStore.cpp.
Member Function Documentation
bool KoTarStore::init | ( | Mode | _mode | ) | [protected, virtual] |
Init store - called by constructor.
- Returns:
- true on success
Reimplemented from KoStore.
Definition at line 111 of file KoTarStore.cpp.
bool KoTarStore::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 125 of file KoTarStore.cpp.
bool KoTarStore::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 134 of file KoTarStore.cpp.
bool KoTarStore::closeWrite | ( | ) | [protected, virtual] |
virtual bool KoTarStore::closeRead | ( | ) | [inline, protected, virtual] |
bool KoTarStore::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 169 of file KoTarStore.cpp.
bool KoTarStore::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 187 of file KoTarStore.cpp.
bool KoTarStore::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 203 of file KoTarStore.cpp.
Member Data Documentation
KTar* KoTarStore::m_pTar [protected] |
const KArchiveDirectory* KoTarStore::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 KoTarStore.h.
QByteArray KoTarStore::m_byteArray [protected] |
The documentation for this class was generated from the following files: