QuaZIP quazip-0-2-3
|
00001 #ifndef QUA_ZIPNEWINFO_H 00002 #define QUA_ZIPNEWINFO_H 00003 00004 /* 00005 -- A kind of "standard" GPL license statement -- 00006 QuaZIP - a Qt/C++ wrapper for the ZIP/UNZIP package 00007 Copyright (C) 2005-2007 Sergey A. Tachenov 00008 00009 This program is free software; you can redistribute it and/or modify it 00010 under the terms of the GNU General Public License as published by the 00011 Free Software Foundation; either version 2 of the License, or (at your 00012 option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, but 00015 WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 00017 Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License along 00020 with this program; if not, write to the Free Software Foundation, Inc., 00021 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 00023 -- A kind of "standard" GPL license statement ends here -- 00024 00025 See COPYING file for GPL. 00026 00027 You are also permitted to use QuaZIP under the terms of LGPL (see 00028 COPYING.LGPL). You are free to choose either license, but please note 00029 that QuaZIP makes use of Qt, which is not licensed under LGPL. So if 00030 you are using Open Source edition of Qt, you therefore MUST use GPL for 00031 your code based on QuaZIP, since it would be also based on Qt in this 00032 case. If you are Qt commercial license owner, then you are free to use 00033 QuaZIP as long as you respect either GPL or LGPL for QuaZIP code. 00034 **/ 00035 00036 #include <QDateTime> 00037 #include <QString> 00038 00040 00045 struct QuaZipNewInfo { 00047 00050 QString name; 00052 00057 QDateTime dateTime; 00059 quint16 internalAttr; 00061 quint32 externalAttr; 00063 00065 QString comment; 00067 QByteArray extraLocal; 00069 QByteArray extraGlobal; 00071 00074 ulong uncompressedSize; 00076 00080 QuaZipNewInfo(const QString& name); 00082 00090 QuaZipNewInfo(const QString& name, const QString& file); 00092 00106 void setFileDateTime(const QString& file); 00107 }; 00108 00109 #endif