QuaZIP  quazip-0-5-1
quazipnewinfo.h
1 #ifndef QUA_ZIPNEWINFO_H
2 #define QUA_ZIPNEWINFO_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 <QDateTime>
28 #include <QString>
29 
30 #include "quazip_global.h"
31 
33 
38 struct QUAZIP_EXPORT QuaZipNewInfo {
40 
43  QString name;
45 
50  QDateTime dateTime;
52  quint16 internalAttr;
54 
59  quint32 externalAttr;
61 
63  QString comment;
65  QByteArray extraLocal;
67  QByteArray extraGlobal;
69 
74 
78  QuaZipNewInfo(const QString& name);
80 
88  QuaZipNewInfo(const QString& name, const QString& file);
90 
104  void setFileDateTime(const QString& file);
106 
111  void setFilePermissions(const QString &file);
113 
118  void setPermissions(QFile::Permissions permissions);
119 };
120 
121 #endif