QuaZIP
quazip-0-6-2
Main Page
Related Pages
Classes
Files
File List
quazip
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 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, 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
Generated on Sun Feb 9 2014 20:18:10 for QuaZIP by
1.8.4