Krita Source Code Documentation
Loading...
Searching...
No Matches
KoStore_p.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 SPDX-FileCopyrightText: 2004 Nicolas GOUTTE <goutte@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef __koStore_p_h_
8#define __koStore_p_h_
9
10
11#include "KoStore.h"
12
13#include <QStringList>
14#include <QStack>
15
16#include <QUrl>
17
18class QWidget;
19
21{
22public:
23 explicit KoStorePrivate(KoStore *qq, KoStore::Mode _mode, bool _writeMimetype)
24 : q(qq),
25 window(0),
26 mode(_mode),
27 size(0),
28 stream(0),
29 isOpen(false),
30 good(false),
31 finalized(false),
32 writeMimetype(_writeMimetype)
33 {
34 }
35
49 QString toExternalNaming(const QString &internalNaming) const;
50
55 bool enterDirectoryInternal(const QString &directory);
56
57 bool extractFile(const QString &sourceName, QIODevice &buffer);
58
60
62 QWidget *window;
63
65
68
71
73 QString fileName;
75 qint64 size;
76
78 QIODevice *stream;
79
80 bool isOpen;
82 bool good;
84
86
88
91
92 QUrl url;
93};
94
95#endif
QString localFileName
Definition KoStore_p.h:61
QString fileName
Current filename (between an open() and a close())
Definition KoStore_p.h:73
QString substituteWith
Definition KoStore_p.h:90
bool enterDirectoryInternal(const QString &directory)
Definition KoStore.cpp:375
QStringList currentPath
The "current directory" (path)
Definition KoStore_p.h:70
KoStorePrivate(KoStore *qq, KoStore::Mode _mode, bool _writeMimetype)
Definition KoStore_p.h:23
QWidget * window
Definition KoStore_p.h:62
bool writeMimetype
true if the backend is allowed to create "mimetype" automatically.
Definition KoStore_p.h:87
KoStore * q
Definition KoStore_p.h:59
bool good
Must be set by the constructor.
Definition KoStore_p.h:82
KoStore::Mode mode
Definition KoStore_p.h:64
bool extractFile(const QString &sourceName, QIODevice &buffer)
Definition KoStore.cpp:315
QIODevice * stream
The stream for the current read or write operation.
Definition KoStore_p.h:78
QString toExternalNaming(const QString &internalNaming) const
Definition KoStore.cpp:360
QStringList filesList
Store the filenames (with full path inside the archive) when writing, to avoid duplicates.
Definition KoStore_p.h:67
QStack< QString > directoryStack
Definition KoStore_p.h:85
QString substituteThis
Definition KoStore_p.h:89
qint64 size
Current size of the file named m_sName.
Definition KoStore_p.h:75