QuaZIP quazip-0-7-2
|
00001 #ifndef QUA_ZIPNEWINFO_H 00002 #define QUA_ZIPNEWINFO_H 00003 00004 /* 00005 Copyright (C) 2005-2014 Sergey A. Tachenov 00006 00007 This file is part of QuaZIP. 00008 00009 QuaZIP is free software: you can redistribute it and/or modify 00010 it under the terms of the GNU Lesser General Public License as published by 00011 the Free Software Foundation, either version 2.1 of the License, or 00012 (at your option) any later version. 00013 00014 QuaZIP is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public License 00020 along with QuaZIP. If not, see <http://www.gnu.org/licenses/>. 00021 00022 See COPYING file for the full LGPL text. 00023 00024 Original ZIP package is copyrighted by Gilles Vollant, see 00025 quazip/(un)zip.h files for details, basically it's zlib license. 00026 **/ 00027 00028 #include <QDateTime> 00029 #include <QFile> 00030 #include <QString> 00031 00032 #include "quazip_global.h" 00033 00034 #include "quazipfileinfo.h" 00035 00037 00050 struct QUAZIP_EXPORT QuaZipNewInfo { 00052 00055 QString name; 00057 00062 QDateTime dateTime; 00064 quint16 internalAttr; 00066 00071 quint32 externalAttr; 00073 00075 QString comment; 00077 QByteArray extraLocal; 00079 QByteArray extraGlobal; 00081 00084 ulong uncompressedSize; 00086 00090 QuaZipNewInfo(const QString& name); 00092 00100 QuaZipNewInfo(const QString& name, const QString& file); 00102 00108 QuaZipNewInfo(const QuaZipFileInfo &existing); 00110 00116 QuaZipNewInfo(const QuaZipFileInfo64 &existing); 00118 00132 void setFileDateTime(const QString& file); 00134 00139 void setFilePermissions(const QString &file); 00141 00146 void setPermissions(QFile::Permissions permissions); 00148 00162 void setFileNTFSTimes(const QString &fileName); 00164 00176 void setFileNTFSmTime(const QDateTime &mTime, int fineTicks = 0); 00178 00190 void setFileNTFSaTime(const QDateTime &aTime, int fineTicks = 0); 00192 00204 void setFileNTFScTime(const QDateTime &cTime, int fineTicks = 0); 00205 }; 00206 00207 #endif