|
Krita Source Code Documentation
|
#include <KoQuaZipStore.h>
Inheritance diagram for KoQuaZipStore:Classes | |
| struct | Private |
Public Member Functions | |
| QStringList | directoryList () const override |
| KoQuaZipStore (const QString &_filename, Mode _mode, const QByteArray &appIdentification, bool writeMimetype=true) | |
| KoQuaZipStore (QIODevice *dev, Mode mode, const QByteArray &appIdentification, bool writeMimetype=true) | |
| void | setCompressionEnabled (bool enabled) override |
| qint64 | write (const char *_data, qint64 _len) override |
| ~KoQuaZipStore () override | |
Public Member Functions inherited from KoStore | |
| bool | atEnd () const |
| bool | bad () const |
| bool | close () |
| QString | currentPath () const |
| QIODevice * | device () const |
| virtual bool | enterDirectory (const QString &directory) |
| bool | extractFile (const QString &sourceName, QByteArray &data) |
| bool | finalize () |
| bool | hasDirectory (const QString &directoryName) |
| bool | hasFile (const QString &fileName) const |
| bool | isOpen () const |
| bool | leaveDirectory () |
| Mode | mode () const |
| bool | open (const QString &name) |
| void | popDirectory () |
| qint64 | pos () const |
| void | pushDirectory () |
| qint64 | read (char *buffer, qint64 length) |
| QByteArray | read (qint64 max) |
| bool | seek (qint64 pos) |
| See QIODevice. | |
| void | setSubstitution (const QString &name, const QString &substitution) |
| When reading, in the paths in the store where name occurs, substitution is used. | |
| qint64 | size () const |
| qint64 | write (const QByteArray &data) |
| virtual | ~KoStore () |
Protected Member Functions | |
| bool | closeRead () override |
| bool | closeWrite () override |
| bool | doFinalize () override |
| bool | enterAbsoluteDirectory (const QString &path) override |
| bool | enterRelativeDirectory (const QString &dirName) override |
| bool | fileExists (const QString &absPath) const override |
| void | init (const QByteArray &appIdentification) |
| bool | openRead (const QString &name) override |
| bool | openWrite (const QString &name) override |
Protected Member Functions inherited from KoStore | |
| KoStore (Mode mode, bool writeMimetype=true) | |
Private Attributes | |
| const QScopedPointer< Private > | dd |
Additional Inherited Members | |
Public Types inherited from KoStore | |
| enum | Backend { Auto , Zip , Directory } |
| enum | Mode { Read , Write } |
Static Public Member Functions inherited from KoStore | |
| static KoStore * | createStore (const QString &fileName, Mode mode, const QByteArray &appIdentification=QByteArray(), Backend backend=Auto, bool writeMimetype=true) |
| static KoStore * | createStore (QIODevice *device, Mode mode, const QByteArray &appIdentification=QByteArray(), Backend backend=Auto, bool writeMimetype=true) |
Protected Attributes inherited from KoStore | |
| KoStorePrivate * | d_ptr |
Definition at line 15 of file KoQuaZipStore.h.
| KoQuaZipStore::KoQuaZipStore | ( | const QString & | _filename, |
| KoStore::Mode | _mode, | ||
| const QByteArray & | appIdentification, | ||
| bool | writeMimetype = true ) |
Definition at line 43 of file KoQuaZipStore.cpp.
| KoQuaZipStore::KoQuaZipStore | ( | QIODevice * | dev, |
| KoStore::Mode | _mode, | ||
| const QByteArray & | appIdentification, | ||
| bool | writeMimetype = true ) |
|
override |
Definition at line 62 of file KoQuaZipStore.cpp.
References dd, and KoStore::finalize().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements KoStore.
Definition at line 239 of file KoQuaZipStore.cpp.
References dd.
|
overridevirtual |
If an store is opened for reading, then the directories of the store can be accessed via this function.
Reimplemented from KoStore.
Definition at line 112 of file KoQuaZipStore.cpp.
References dd, KoStore::mode(), and KoStore::Read.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Enter a directory where we've been before. It is guaranteed to always exist.
Implements KoStore.
Definition at line 268 of file KoQuaZipStore.cpp.
References dd.
|
overrideprotectedvirtual |
Enter a subdirectory of the current directory. The directory might not exist yet in Write mode.
Implements KoStore.
Definition at line 263 of file KoQuaZipStore.cpp.
|
overrideprotectedvirtual |
Check if a file exists inside the store.
| absPath | the absolute path inside the store, i.e. not relative to the current directory |
Implements KoStore.
Definition at line 282 of file KoQuaZipStore.cpp.
References directoryList().
|
protected |
Definition at line 127 of file KoQuaZipStore.cpp.
References dd, debugStore, directoryList(), and KoStore::Write.
|
overrideprotectedvirtual |
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.
| name | "absolute path" (in the archive) to the file to open |
Implements KoStore.
Definition at line 204 of file KoQuaZipStore.cpp.
References KoStore::currentPath(), and dd.
|
overrideprotectedvirtual |
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.
| name | "absolute path" (in the archive) to the file to open |
Implements KoStore.
Definition at line 179 of file KoQuaZipStore.cpp.
References dd.
|
overridevirtual |
Allow to enable or disable compression of the files. Only supported by the ZIP backend.
Reimplemented from KoStore.
Definition at line 81 of file KoQuaZipStore.cpp.
References dd.
|
overridevirtual |
Write data into the currently opened file. You can also use the streams for this.
Reimplemented from KoStore.
Definition at line 92 of file KoQuaZipStore.cpp.
References dd, errorStore, and KoStore::Write.
|
private |
Definition at line 44 of file KoQuaZipStore.h.