Krita Source Code Documentation
Loading...
Searching...
No Matches
KoQuaZipStore.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KoQuaZipStore_h
8#define KoQuaZipStore_h
9
10#include "KoStore.h"
11#include <QScopedPointer>
12
13class QUrl;
14
15class KoQuaZipStore : public KoStore
16{
17public:
18 KoQuaZipStore(const QString & _filename, Mode _mode, const QByteArray & appIdentification,
19 bool writeMimetype = true);
20
21 KoQuaZipStore(QIODevice *dev, Mode mode, const QByteArray & appIdentification,
22 bool writeMimetype = true);
23
24 ~KoQuaZipStore() override;
25
26 void setCompressionEnabled(bool enabled) override;
27 qint64 write(const char* _data, qint64 _len) override;
28
29 QStringList directoryList() const override;
30
31protected:
32 void init(const QByteArray& appIdentification);
33 bool doFinalize() override;
34 bool openWrite(const QString& name) override;
35 bool openRead(const QString& name) override;
36 bool closeWrite() override;
37 bool closeRead() override;
38 bool enterRelativeDirectory(const QString& dirName) override;
39 bool enterAbsoluteDirectory(const QString& path) override;
40 bool fileExists(const QString& absPath) const override;
41
42private:
43 struct Private;
44 const QScopedPointer<Private> dd;
45 Q_DECLARE_PRIVATE(KoStore)
46
47};
48
49#endif
KoQuaZipStore(const QString &_filename, Mode _mode, const QByteArray &appIdentification, bool writeMimetype=true)
QStringList directoryList() const override
bool enterRelativeDirectory(const QString &dirName) override
bool openRead(const QString &name) override
bool fileExists(const QString &absPath) const override
void init(const QByteArray &appIdentification)
bool closeRead() override
bool doFinalize() override
~KoQuaZipStore() override
void setCompressionEnabled(bool enabled) override
bool closeWrite() override
qint64 write(const char *_data, qint64 _len) override
bool enterAbsoluteDirectory(const QString &path) override
const QScopedPointer< Private > dd
bool openWrite(const QString &name) override
Mode mode() const
Definition KoStore.cpp:420