QuaZip
quazip-1-6
quazip
quagzipfile.h
1
#ifndef QUAZIP_QUAGZIPFILE_H
2
#define QUAZIP_QUAGZIPFILE_H
3
4
/*
5
Copyright (C) 2005-2014 Sergey A. Tachenov
6
7
This file is part of QuaZip.
8
9
QuaZip is free software: you can redistribute it and/or modify
10
it under the terms of the GNU Lesser General Public License as published by
11
the Free Software Foundation, either version 2.1 of the License, or
12
(at your option) any later version.
13
14
QuaZip is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU Lesser General Public License for more details.
18
19
You should have received a copy of the GNU Lesser General Public License
20
along with QuaZip. If not, see <http://www.gnu.org/licenses/>.
21
22
See COPYING file for the full LGPL text.
23
24
Original ZIP package is copyrighted by Gilles Vollant and contributors,
25
see quazip/(un)zip.h files for details. Basically it's the zlib license.
26
*/
27
28
#include <QtCore/QIODevice>
29
#include "quazip_global.h"
30
31
class
QuaGzipFilePrivate;
32
34
37
class
QUAZIP_EXPORT
QuaGzipFile
:
public
QIODevice {
38
Q_OBJECT
39
public
:
41
44
QuaGzipFile
();
46
50
QuaGzipFile
(QObject *parent);
52
56
QuaGzipFile
(
const
QString &fileName, QObject *parent =
nullptr
);
58
~QuaGzipFile
()
override
;
60
void
setFileName(
const
QString& fileName);
62
QString getFileName()
const
;
64
71
bool
isSequential()
const override
;
73
77
bool
open(QIODevice::OpenMode mode)
override
;
79
85
virtual
bool
open(
int
fd, QIODevice::OpenMode mode);
87
91
virtual
bool
flush();
93
void
close()
override
;
94
protected
:
96
qint64 readData(
char
*data, qint64 maxSize)
override
;
98
qint64 writeData(
const
char
*data, qint64 maxSize)
override
;
99
private
:
100
// not implemented by design to disable copy
101
QuaGzipFile
(
const
QuaGzipFile
&that);
102
QuaGzipFile
& operator=(
const
QuaGzipFile
&that);
103
QuaGzipFilePrivate *d;
104
};
105
106
#endif
// QUAZIP_QUAGZIPFILE_H
QuaGzipFile
GZIP file.
Definition
quagzipfile.h:37
Generated on Mon Apr 27 2026 14:08:14 for QuaZip by
1.9.8