QuaZIP: /usr/src/ports/quazip/quazip-0.6.2-1.i686/src/quazip-0.6.2/quazip/quazipfileinfo.h Source File

QuaZIP quazip-0-6-2

- Main Page
- Related Pages
- Classes
- Files

- File List

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
QuaZipFileInfo64::diskNumberStart
quint16 diskNumberStart
Disk number start.
Definition: quazipfileinfo.h:104
QuaZipFileInfo64::extra
QByteArray extra
Extra field.
Definition: quazipfileinfo.h:112
QuaZipFileInfo64::versionCreated
quint16 versionCreated
Version created by.
Definition: quazipfileinfo.h:81
QuaZipFileInfo64::comment
QString comment
Comment.
Definition: quazipfileinfo.h:110
QuaZipFileInfo64::externalAttr
quint32 externalAttr
External file attributes.
Definition: quazipfileinfo.h:108
QuaZipFileInfo64::versionNeeded
quint16 versionNeeded
Version needed to extract.
Definition: quazipfileinfo.h:83
QuaZipFileInfo::extra
QByteArray extra
Extra field.
Definition: quazipfileinfo.h:65
QuaZipFileInfo::flags
quint16 flags
General purpose flags.
Definition: quazipfileinfo.h:45
QuaZipFileInfo::name
QString name
File name.
Definition: quazipfileinfo.h:39
QuaZipFileInfo::versionCreated
quint16 versionCreated
Version created by.
Definition: quazipfileinfo.h:41
QuaZipFileInfo::comment
QString comment
Comment.
Definition: quazipfileinfo.h:63
QuaZipFileInfo::compressedSize
quint32 compressedSize
Compressed file size.
Definition: quazipfileinfo.h:53
QuaZipFileInfo
Information about a file inside archive.
Definition: quazipfileinfo.h:37
QuaZipFileInfo64::crc
quint32 crc
CRC.
Definition: quazipfileinfo.h:98
QuaZipFileInfo64::compressedSize
quint64 compressedSize
Compressed file size.
Definition: quazipfileinfo.h:100
QuaZipFileInfo::versionNeeded
quint16 versionNeeded
Version needed to extract.
Definition: quazipfileinfo.h:43
QuaZipFileInfo::internalAttr
quint16 internalAttr
Internal file attributes.
Definition: quazipfileinfo.h:59
QuaZipFileInfo64
Information about a file inside archive (with zip64 support).
Definition: quazipfileinfo.h:77
QuaZipFileInfo64::method
quint16 method
Compression method.
Definition: quazipfileinfo.h:87
QuaZipFileInfo::dateTime
QDateTime dateTime
Last modification date and time.
Definition: quazipfileinfo.h:49
QuaZipFileInfo64::uncompressedSize
quint64 uncompressedSize
Uncompressed file size.
Definition: quazipfileinfo.h:102
QuaZipFileInfo::uncompressedSize
quint32 uncompressedSize
Uncompressed file size.
Definition: quazipfileinfo.h:55
QuaZipFileInfo::crc
quint32 crc
CRC.
Definition: quazipfileinfo.h:51
QuaZipFileInfo64::dateTime
QDateTime dateTime
Last modification date and time.
Definition: quazipfileinfo.h:96
QuaZipFileInfo64::flags
quint16 flags
General purpose flags.
Definition: quazipfileinfo.h:85
QuaZipFileInfo::diskNumberStart
quint16 diskNumberStart
Disk number start.
Definition: quazipfileinfo.h:57
QuaZipFileInfo::externalAttr
quint32 externalAttr
External file attributes.
Definition: quazipfileinfo.h:61
QuaZipFileInfo::method
quint16 method
Compression method.
Definition: quazipfileinfo.h:47
QuaZipFileInfo64::name
QString name
File name.
Definition: quazipfileinfo.h:79
QuaZipFileInfo64::internalAttr
quint16 internalAttr
Internal file attributes.
Definition: quazipfileinfo.h:106