ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
quazipfileinfo.h
Go to the documentation of this file.
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 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 <QByteArray>
29 #include <QDateTime>
30 #include <QFile>
31 
32 #include "quazip_global.h"
33 
35 
43  QString name;
45  quint16 versionCreated;
47  quint16 versionNeeded;
49  quint16 flags;
51  quint16 method;
53  QDateTime dateTime;
55  quint32 crc;
57  quint32 compressedSize;
61  quint16 diskNumberStart;
63  quint16 internalAttr;
65  quint32 externalAttr;
67  QString comment;
69  QByteArray extra;
71 
75  QFile::Permissions getPermissions() const;
76 };
77 
79 
83  QString name;
85  quint16 versionCreated;
87  quint16 versionNeeded;
89  quint16 flags;
91  quint16 method;
93 
100  QDateTime dateTime;
102  quint32 crc;
104  quint64 compressedSize;
110  quint16 internalAttr;
112  quint32 externalAttr;
114  QString comment;
116  QByteArray extra;
118 
122  QFile::Permissions getPermissions() const;
124 
135  bool toQuaZipFileInfo(QuaZipFileInfo &info) const;
137 
148  QDateTime getNTFSmTime(int *fineTicks = NULL) const;
150 
161  QDateTime getNTFSaTime(int *fineTicks = NULL) const;
163 
174  QDateTime getNTFScTime(int *fineTicks = NULL) const;
176  bool isEncrypted() const { return (flags & 1) != 0; }
177 };
178 
179 #endif
#define NULL
#define QUAZIP_EXPORT
Definition: quazip_global.h:46
Information about a file inside archive (with zip64 support).
quint16 versionNeeded
Version needed to extract.
QString name
File name.
quint32 externalAttr
External file attributes.
quint16 method
Compression method.
QDateTime dateTime
Last modification date and time.
bool isEncrypted() const
Checks whether the file is encrypted.
quint64 uncompressedSize
Uncompressed file size.
quint16 flags
General purpose flags.
quint16 versionCreated
Version created by.
QString comment
Comment.
quint16 diskNumberStart
Disk number start.
QByteArray extra
Extra field.
quint64 compressedSize
Compressed file size.
quint16 internalAttr
Internal file attributes.
Information about a file inside archive.
quint32 uncompressedSize
Uncompressed file size.
QString name
File name.
quint16 internalAttr
Internal file attributes.
quint16 versionCreated
Version created by.
quint16 flags
General purpose flags.
quint16 versionNeeded
Version needed to extract.
quint16 diskNumberStart
Disk number start.
quint32 crc
CRC.
QDateTime dateTime
Last modification date and time.
QString comment
Comment.
quint16 method
Compression method.
quint32 compressedSize
Compressed file size.
quint32 externalAttr
External file attributes.
QByteArray extra
Extra field.