QuaZIP: quazip/quazipnewinfo.h Source File

QuaZIP quazip-0-7-3

- Main Page
- Related Pages
- Classes
- Files

- File List

quazipnewinfo.h
1 #ifndef QUA_ZIPNEWINFO_H
2 #define QUA_ZIPNEWINFO_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, see
25 quazip/(un)zip.h files for details, basically it's zlib license.
26 **/
27
28 #include <QDateTime>
29 #include <QFile>
30 #include <QString>
31
32 #include "quazip_global.h"
33
34 #include "quazipfileinfo.h"
35
37
50 struct QUAZIP_EXPORT QuaZipNewInfo {
52
55 QString name;
57
62 QDateTime dateTime;
64 quint16 internalAttr;
66
71 quint32 externalAttr;
73
75 QString comment;
77 QByteArray extraLocal;
79 QByteArray extraGlobal;
81
84 ulong uncompressedSize;
86
90 QuaZipNewInfo(const QString& name);
92
100 QuaZipNewInfo(const QString& name, const QString& file);
102
108 QuaZipNewInfo(const QuaZipFileInfo &existing);
110
116 QuaZipNewInfo(const QuaZipFileInfo64 &existing);
118
132 void setFileDateTime(const QString& file);
134
139 void setFilePermissions(const QString &file);
141
146 void setPermissions(QFile::Permissions permissions);
148
162 void setFileNTFSTimes(const QString &fileName);
164
176 void setFileNTFSmTime(const QDateTime &mTime, int fineTicks = 0);
178
190 void setFileNTFSaTime(const QDateTime &aTime, int fineTicks = 0);
192
204 void setFileNTFScTime(const QDateTime &cTime, int fineTicks = 0);
205 };
206
207 #endif
QuaZipNewInfo
Information about a file to be created.
Definition: quazipnewinfo.h:50
QuaZipNewInfo::internalAttr
quint16 internalAttr
File internal attributes.
Definition: quazipnewinfo.h:64
QuaZipNewInfo::extraLocal
QByteArray extraLocal
File local extra field.
Definition: quazipnewinfo.h:77
QuaZipNewInfo::uncompressedSize
ulong uncompressedSize
Uncompressed file size.
Definition: quazipnewinfo.h:84
QuaZipNewInfo::comment
QString comment
File comment.
Definition: quazipnewinfo.h:75
QuaZipFileInfo
Information about a file inside archive.
Definition: quazipfileinfo.h:41
QuaZipNewInfo::dateTime
QDateTime dateTime
File timestamp.
Definition: quazipnewinfo.h:62
QuaZipNewInfo::extraGlobal
QByteArray extraGlobal
File global extra field.
Definition: quazipnewinfo.h:79
QuaZipFileInfo64
Information about a file inside archive (with zip64 support).
Definition: quazipfileinfo.h:81
QuaZipNewInfo::externalAttr
quint32 externalAttr
File external attributes.
Definition: quazipnewinfo.h:71
QuaZipNewInfo::name
QString name
File name.
Definition: quazipnewinfo.h:55