QuaZIP  quazip-0-5-1
quazipfileinfo.h
1 #ifndef QUA_ZIPFILEINFO_H
2 #define QUA_ZIPFILEINFO_H
3 
4 /*
5 Copyright (C) 2005-2011 Sergey A. Tachenov
6 
7 This program is free software; you can redistribute it and/or modify it
8 under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or (at
10 your option) any later version.
11 
12 This program is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
15 General Public License for more details.
16 
17 You should have received a copy of the GNU Lesser General Public License
18 along with this program; if not, write to the Free Software Foundation,
19 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 
21 See COPYING file for the full LGPL text.
22 
23 Original ZIP package is copyrighted by Gilles Vollant, see
24 quazip/(un)zip.h files for details, basically it's zlib license.
25  **/
26 
27 #include <QByteArray>
28 #include <QDateTime>
29 #include <QFile>
30 
31 #include "quazip_global.h"
32 
34 
36 struct QUAZIP_EXPORT QuaZipFileInfo {
38  QString name;
40  quint16 versionCreated;
42  quint16 versionNeeded;
44  quint16 flags;
46  quint16 method;
48  QDateTime dateTime;
50  quint32 crc;
52  quint32 compressedSize;
56  quint16 diskNumberStart;
58  quint16 internalAttr;
60  quint32 externalAttr;
62  QString comment;
64  QByteArray extra;
66 
70  QFile::Permissions getPermissions() const;
71 };
72 
73 #endif