lib
KoDirectoryStore Class Reference
Inheritance diagram for KoDirectoryStore:

Detailed Description
Definition at line 27 of file KoDirectoryStore.h.
Public Member Functions | |
KoDirectoryStore (const QString &path, Mode _mode) | |
~KoDirectoryStore () | |
Protected Member Functions | |
virtual bool | init (Mode _mode) |
virtual bool | openWrite (const QString &name) |
virtual bool | openRead (const QString &name) |
virtual bool | closeRead () |
virtual bool | closeWrite () |
virtual bool | enterRelativeDirectory (const QString &dirName) |
virtual bool | enterAbsoluteDirectory (const QString &path) |
virtual bool | fileExists (const QString &absPath) const |
bool | openReadOrWrite (const QString &name, int iomode) |
Member Function Documentation
bool KoDirectoryStore::init | ( | Mode | _mode | ) | [protected, virtual] |
Init store - called by constructor.
- Returns:
- true on success
Reimplemented from KoStore.
Definition at line 45 of file KoDirectoryStore.cpp.
virtual bool KoDirectoryStore::openWrite | ( | const QString & | name | ) | [inline, 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 34 of file KoDirectoryStore.h.
virtual bool KoDirectoryStore::openRead | ( | const QString & | name | ) | [inline, 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 35 of file KoDirectoryStore.h.
virtual bool KoDirectoryStore::closeRead | ( | ) | [inline, protected, virtual] |
virtual bool KoDirectoryStore::closeWrite | ( | ) | [inline, protected, virtual] |
bool KoDirectoryStore::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 86 of file KoDirectoryStore.cpp.
bool KoDirectoryStore::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 104 of file KoDirectoryStore.cpp.
bool KoDirectoryStore::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 113 of file KoDirectoryStore.cpp.
The documentation for this class was generated from the following files: