QuaZip quazip-1-4
quazipnewinfo.h
1#ifndef QUA_ZIPNEWINFO_H
2#define QUA_ZIPNEWINFO_H
3
4/*
5Copyright (C) 2005-2014 Sergey A. Tachenov
6
7This file is part of QuaZip.
8
9QuaZip is free software: you can redistribute it and/or modify
10it under the terms of the GNU Lesser General Public License as published by
11the Free Software Foundation, either version 2.1 of the License, or
12(at your option) any later version.
13
14QuaZip is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU Lesser General Public License for more details.
18
19You should have received a copy of the GNU Lesser General Public License
20along with QuaZip. If not, see <http://www.gnu.org/licenses/>.
21
22See COPYING file for the full LGPL text.
23
24Original ZIP package is copyrighted by Gilles Vollant, see
25quazip/(un)zip.h files for details, basically it's zlib license.
26 **/
27
28#include <QtCore/QDateTime>
29#include <QtCore/QFile>
30#include <QtCore/QString>
31
32#include "quazip_global.h"
33
34#include "quazipfileinfo.h"
35
37
50struct QUAZIP_EXPORT QuaZipNewInfo {
52
57
64 quint16 internalAttr;
66
71 quint32 externalAttr;
73
81
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
163 void setFileNTFSTimes(const QString &fileName);
165
177 void setFileNTFSmTime(const QDateTime &mTime, int fineTicks = 0);
179
191 void setFileNTFSaTime(const QDateTime &aTime, int fineTicks = 0);
193
205 void setFileNTFScTime(const QDateTime &cTime, int fineTicks = 0);
206};
207
208#endif
typedef Permissions
Information about a file inside archive (with zip64 support).
Definition: quazipfileinfo.h:85
Information about a file inside archive.
Definition: quazipfileinfo.h:45
Information about a file to be created.
Definition: quazipnewinfo.h:50
ulong uncompressedSize
Uncompressed file size.
Definition: quazipnewinfo.h:84
QString name
File name.
Definition: quazipnewinfo.h:55
quint16 internalAttr
File internal attributes.
Definition: quazipnewinfo.h:64
QByteArray extraLocal
File local extra field.
Definition: quazipnewinfo.h:77
QByteArray extraGlobal
File global extra field.
Definition: quazipnewinfo.h:79
QString comment
File comment.
Definition: quazipnewinfo.h:75
QDateTime dateTime
File timestamp.
Definition: quazipnewinfo.h:62
quint32 externalAttr
File external attributes.
Definition: quazipnewinfo.h:71