|
Krita Source Code Documentation
|
#include <KoStore_p.h>
Public Member Functions | |
| bool | enterDirectoryInternal (const QString &directory) |
| bool | extractFile (const QString &sourceName, QIODevice &buffer) |
| KoStorePrivate (KoStore *qq, KoStore::Mode _mode, bool _writeMimetype) | |
| QString | toExternalNaming (const QString &internalNaming) const |
Public Attributes | |
| QStringList | currentPath |
| The "current directory" (path) | |
| QStack< QString > | directoryStack |
| QString | fileName |
| Current filename (between an open() and a close()) | |
| QStringList | filesList |
| Store the filenames (with full path inside the archive) when writing, to avoid duplicates. | |
| bool | finalized |
| bool | good |
| Must be set by the constructor. | |
| bool | isOpen |
| QString | localFileName |
| KoStore::Mode | mode |
| KoStore * | q |
| qint64 | size |
| Current size of the file named m_sName. | |
| QIODevice * | stream |
| The stream for the current read or write operation. | |
| QString | substituteThis |
| QString | substituteWith |
| QUrl | url |
| QWidget * | window |
| bool | writeMimetype |
| true if the backend is allowed to create "mimetype" automatically. | |
Definition at line 20 of file KoStore_p.h.
|
inlineexplicit |
Definition at line 23 of file KoStore_p.h.
| bool KoStorePrivate::enterDirectoryInternal | ( | const QString & | directory | ) |
Enter one single directory. Nothing like foo/bar/bleh allowed. Performs some checking when in Read mode
Definition at line 375 of file KoStore.cpp.
References currentPath, KoStore::enterRelativeDirectory(), and q.
| bool KoStorePrivate::extractFile | ( | const QString & | sourceName, |
| QIODevice & | buffer ) |
Definition at line 315 of file KoStore.cpp.
References KoStore::close(), KoStore::open(), q, KoStore::read(), and KoStore::size().
| QString KoStorePrivate::toExternalNaming | ( | const QString & | internalNaming | ) | const |
Conversion routine
| internalNaming | name used internally : "root", "tar:/0", ... |
tar:/0 is saved as part0/maindoc.xml tar:/0/1 is saved as part0/part1/maindoc.xml tar:/0/1/pictures/picture0.png is saved as part0/part1/pictures/picture0.png
see specification (calligra/lib/store/SPEC) for details.
Definition at line 360 of file KoStore.cpp.
References KoStore::currentPath(), and q.
| QStringList KoStorePrivate::currentPath |
The "current directory" (path)
Definition at line 70 of file KoStore_p.h.
| QStack<QString> KoStorePrivate::directoryStack |
Definition at line 85 of file KoStore_p.h.
| QString KoStorePrivate::fileName |
Current filename (between an open() and a close())
Definition at line 73 of file KoStore_p.h.
| QStringList KoStorePrivate::filesList |
Store the filenames (with full path inside the archive) when writing, to avoid duplicates.
Definition at line 67 of file KoStore_p.h.
| bool KoStorePrivate::finalized |
Definition at line 83 of file KoStore_p.h.
| bool KoStorePrivate::good |
Must be set by the constructor.
Definition at line 82 of file KoStore_p.h.
| bool KoStorePrivate::isOpen |
Definition at line 80 of file KoStore_p.h.
| QString KoStorePrivate::localFileName |
Definition at line 61 of file KoStore_p.h.
| KoStore::Mode KoStorePrivate::mode |
Definition at line 64 of file KoStore_p.h.
| KoStore* KoStorePrivate::q |
Definition at line 59 of file KoStore_p.h.
| qint64 KoStorePrivate::size |
Current size of the file named m_sName.
Definition at line 75 of file KoStore_p.h.
| QIODevice* KoStorePrivate::stream |
The stream for the current read or write operation.
Definition at line 78 of file KoStore_p.h.
| QString KoStorePrivate::substituteThis |
Definition at line 89 of file KoStore_p.h.
| QString KoStorePrivate::substituteWith |
Definition at line 90 of file KoStore_p.h.
| QUrl KoStorePrivate::url |
Definition at line 92 of file KoStore_p.h.
| QWidget* KoStorePrivate::window |
Definition at line 62 of file KoStore_p.h.
| bool KoStorePrivate::writeMimetype |
true if the backend is allowed to create "mimetype" automatically.
Definition at line 87 of file KoStore_p.h.