QuaZIP  quazip-0-6-1
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 
35 
48 struct QUAZIP_EXPORT QuaZipNewInfo {
50 
53  QString name;
55 
60  QDateTime dateTime;
62  quint16 internalAttr;
64 
69  quint32 externalAttr;
71 
73  QString comment;
75  QByteArray extraLocal;
77  QByteArray extraGlobal;
79 
84 
88  QuaZipNewInfo(const QString& name);
90 
98  QuaZipNewInfo(const QString& name, const QString& file);
100 
114  void setFileDateTime(const QString& file);
116 
121  void setFilePermissions(const QString &file);
123 
128  void setPermissions(QFile::Permissions permissions);
129 };
130 
131 #endif