ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
134  bool toQuaZipFileInfo(QuaZipFileInfo &info) const;
136 
147  QDateTime getNTFSmTime(int *fineTicks = NULL) const;
149 
160  QDateTime getNTFSaTime(int *fineTicks = NULL) const;
162 
173  QDateTime getNTFScTime(int *fineTicks = NULL) const;
175  bool isEncrypted() const {return (flags & 1) != 0;}
176 };
177 
178 #endif
quint16 diskNumberStart
Disk number start.
QByteArray extra
Extra field.
quint16 versionCreated
Version created by.
QString comment
Comment.
quint32 externalAttr
External file attributes.
quint16 versionNeeded
Version needed to extract.
QByteArray extra
Extra field.
quint16 flags
General purpose flags.
QString name
File name.
quint16 versionCreated
Version created by.
QString comment
Comment.
quint32 compressedSize
Compressed file size.
Information about a file inside archive.
quint32 crc
CRC.
quint64 compressedSize
Compressed file size.
quint16 versionNeeded
Version needed to extract.
quint16 internalAttr
Internal file attributes.
Information about a file inside archive (with zip64 support).
quint16 method
Compression method.
QDateTime dateTime
Last modification date and time.
quint64 uncompressedSize
Uncompressed file size.
quint32 uncompressedSize
Uncompressed file size.
quint32 crc
CRC.
QDateTime dateTime
Last modification date and time.
quint16 flags
General purpose flags.
quint16 diskNumberStart
Disk number start.
quint32 externalAttr
External file attributes.
bool isEncrypted() const
Checks whether the file is encrypted.
quint16 method
Compression method.
#define QUAZIP_EXPORT
This is automatically defined when building a static library, but when including QuaZip sources direc...
Definition: quazip_global.h:46
QString name
File name.
quint16 internalAttr
Internal file attributes.