Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
zipentry_p.h
Go to the documentation of this file.
1
/****************************************************************************
2
** Filename: ZipEntryP.h
3
** Last updated [dd/mm/yyyy]: 27/03/2011
4
**
5
** Wrapper for a ZIP local header.
6
**
7
** Some of the code has been inspired by other open source projects,
8
** (mainly Info-Zip and Gilles Vollant's minizip).
9
** Compression and decompression actually uses the zlib library.
10
**
11
** Copyright (C) 2007-2012 Angius Fabrizio. All rights reserved.
12
**
13
** This file is part of the OSDaB project (http://osdab.42cows.org/).
14
**
15
** This file may be distributed and/or modified under the terms of the
16
** GNU General Public License version 2 as published by the Free Software
17
** Foundation and appearing in the file LICENSE.GPL included in the
18
** packaging of this file.
19
**
20
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
21
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22
**
23
** See the file LICENSE.GPL that came with this software distribution or
24
** visit http://www.gnu.org/copyleft/gpl.html for GPL licensing information.
25
**
26
**********************************************************************/
27
28
//
29
// W A R N I N G
30
// -------------
31
//
32
// This file is not part of the Zip/UnZip API. It exists purely as an
33
// implementation detail. This header file may change from version to
34
// version without notice, or even be removed.
35
//
36
// We mean it.
37
//
38
39
#ifndef OSDAB_ZIPENTRY_P__H
40
#define OSDAB_ZIPENTRY_P__H
41
42
#include <QtCore/QString>
43
#include <QtCore/QtGlobal>
44
45
OSDAB_BEGIN_NAMESPACE
(
Zip
)
46
47
class
ZipEntryP
48
{
49
public
:
50
ZipEntryP
() :
51
lhOffset
(0),
52
dataOffset
(0),
53
gpFlag
(),
54
compMethod
(0),
55
modTime
(),
56
modDate
(),
57
crc
(0),
58
szComp
(0),
59
szUncomp
(0),
60
absolutePath
(),
61
fileSize
(0),
62
lhEntryChecked
(false)
63
{
64
gpFlag
[0] =
gpFlag
[1] = 0;
65
modTime
[0] =
modTime
[1] = 0;
66
modDate
[0] =
modDate
[1] = 0;
67
}
68
69
quint32
lhOffset
;
// Offset of the local header record for this entry
70
mutable
quint32
dataOffset
;
// Offset of the file data for this entry
71
unsigned
char
gpFlag
[2];
// General purpose flag
72
quint16
compMethod
;
// Compression method
73
unsigned
char
modTime
[2];
// Last modified time
74
unsigned
char
modDate
[2];
// Last modified date
75
quint32
crc
;
// CRC32
76
quint32
szComp
;
// Compressed file size
77
quint32
szUncomp
;
// Uncompressed file size
78
QString
comment
;
// File comment
79
80
QString
absolutePath
;
// Internal use
81
qint64
fileSize
;
// Internal use
82
83
mutable
bool
lhEntryChecked
;
// Is true if the local header record for this entry has been parsed
84
85
inline
bool
isEncrypted
()
const
{
return
gpFlag
[0] & 0x01; }
86
inline
bool
hasDataDescriptor
()
const
{
return
gpFlag
[0] & 0x08; }
87
};
88
89
OSDAB_END_NAMESPACE
90
91
#endif
// OSDAB_ZIPENTRY_P__H
ZipEntryP::comment
QString comment
Definition
zipentry_p.h:78
ZipEntryP::szComp
quint32 szComp
Definition
zipentry_p.h:76
ZipEntryP::crc
quint32 crc
Definition
zipentry_p.h:75
ZipEntryP::szUncomp
quint32 szUncomp
Definition
zipentry_p.h:77
ZipEntryP::modDate
unsigned char modDate[2]
Definition
zipentry_p.h:74
ZipEntryP::hasDataDescriptor
bool hasDataDescriptor() const
Definition
zipentry_p.h:86
ZipEntryP::fileSize
qint64 fileSize
Definition
zipentry_p.h:81
ZipEntryP::compMethod
quint16 compMethod
Definition
zipentry_p.h:72
ZipEntryP::gpFlag
unsigned char gpFlag[2]
Definition
zipentry_p.h:71
ZipEntryP::dataOffset
quint32 dataOffset
Definition
zipentry_p.h:70
ZipEntryP::modTime
unsigned char modTime[2]
Definition
zipentry_p.h:73
ZipEntryP::ZipEntryP
ZipEntryP()
Definition
zipentry_p.h:50
ZipEntryP::absolutePath
QString absolutePath
Definition
zipentry_p.h:80
ZipEntryP::isEncrypted
bool isEncrypted() const
Definition
zipentry_p.h:85
ZipEntryP::lhEntryChecked
bool lhEntryChecked
Definition
zipentry_p.h:83
ZipEntryP::lhOffset
quint32 lhOffset
Definition
zipentry_p.h:69
Zip
Zip file compression.
Definition
zip.h:49
OSDAB_END_NAMESPACE
#define OSDAB_END_NAMESPACE
Definition
zipglobal.h:60
OSDAB_BEGIN_NAMESPACE
#define OSDAB_BEGIN_NAMESPACE(ModuleName)
Definition
zipglobal.h:54
oracle
src
zip
zipentry_p.h
Generated by
1.18.0