QuaZIP
quazip-0-6-2
Main Page
Related Pages
Classes
Files
File List
quazip
quazipfileinfo.h
1
#ifndef QUA_ZIPFILEINFO_H
2
#define QUA_ZIPFILEINFO_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 3 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 <QByteArray>
29
#include <QDateTime>
30
#include <QFile>
31
32
#include "quazip_global.h"
33
35
37
struct
QUAZIP_EXPORT
QuaZipFileInfo
{
39
QString
name
;
41
quint16
versionCreated
;
43
quint16
versionNeeded
;
45
quint16
flags
;
47
quint16
method
;
49
QDateTime
dateTime
;
51
quint32
crc
;
53
quint32
compressedSize
;
55
quint32
uncompressedSize
;
57
quint16
diskNumberStart
;
59
quint16
internalAttr
;
61
quint32
externalAttr
;
63
QString
comment
;
65
QByteArray
extra
;
67
71
QFile::Permissions getPermissions()
const
;
72
};
73
75
77
struct
QUAZIP_EXPORT
QuaZipFileInfo64
{
79
QString
name
;
81
quint16
versionCreated
;
83
quint16
versionNeeded
;
85
quint16
flags
;
87
quint16
method
;
89
96
QDateTime
dateTime
;
98
quint32
crc
;
100
quint64
compressedSize
;
102
quint64
uncompressedSize
;
104
quint16
diskNumberStart
;
106
quint16
internalAttr
;
108
quint32
externalAttr
;
110
QString
comment
;
112
QByteArray
extra
;
114
118
QFile::Permissions getPermissions()
const
;
120
130
bool
toQuaZipFileInfo(
QuaZipFileInfo
&info)
const
;
132
143
QDateTime getNTFSmTime(
int
*fineTicks = NULL)
const
;
145
156
QDateTime getNTFSaTime(
int
*fineTicks = NULL)
const
;
158
169
QDateTime getNTFScTime(
int
*fineTicks = NULL)
const
;
170
};
171
172
#endif
Generated on Sun Feb 9 2014 20:18:10 for QuaZIP by
1.8.4