Robert Bieber | 7c52284 | 2010-07-21 07:45:29 +0000 | [diff] [blame] | 1 | #ifndef QUA_ZIPFILEINFO_H |
| 2 | #define QUA_ZIPFILEINFO_H |
| 3 | |
| 4 | /* |
| 5 | -- A kind of "standard" GPL license statement -- |
| 6 | QuaZIP - a Qt/C++ wrapper for the ZIP/UNZIP package |
| 7 | Copyright (C) 2005-2007 Sergey A. Tachenov |
| 8 | |
| 9 | This program is free software; you can redistribute it and/or modify it |
| 10 | under the terms of the GNU General Public License as published by the |
| 11 | Free Software Foundation; either version 2 of the License, or (at your |
| 12 | option) any later version. |
| 13 | |
| 14 | This program is distributed in the hope that it will be useful, but |
| 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 17 | Public License for more details. |
| 18 | |
| 19 | You should have received a copy of the GNU General Public License along |
| 20 | with this program; if not, write to the Free Software Foundation, Inc., |
| 21 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 | |
| 23 | -- A kind of "standard" GPL license statement ends here -- |
| 24 | |
| 25 | See COPYING file for GPL. |
| 26 | |
| 27 | You are also permitted to use QuaZIP under the terms of LGPL (see |
| 28 | COPYING.LGPL). You are free to choose either license, but please note |
| 29 | that QuaZIP makes use of Qt, which is not licensed under LGPL. So if |
| 30 | you are using Open Source edition of Qt, you therefore MUST use GPL for |
| 31 | your code based on QuaZIP, since it would be also based on Qt in this |
| 32 | case. If you are Qt commercial license owner, then you are free to use |
| 33 | QuaZIP as long as you respect either GPL or LGPL for QuaZIP code. |
| 34 | **/ |
| 35 | |
| 36 | #include <QByteArray> |
| 37 | #include <QDateTime> |
| 38 | |
| 39 | /// Information about a file inside archive. |
| 40 | /** Call QuaZip::getCurrentFileInfo() or QuaZipFile::getFileInfo() to |
| 41 | * fill this structure. */ |
| 42 | struct QuaZipFileInfo { |
| 43 | /// File name. |
| 44 | QString name; |
| 45 | /// Version created by. |
| 46 | quint16 versionCreated; |
| 47 | /// Version needed to extract. |
| 48 | quint16 versionNeeded; |
| 49 | /// General purpose flags. |
| 50 | quint16 flags; |
| 51 | /// Compression method. |
| 52 | quint16 method; |
| 53 | /// Last modification date and time. |
| 54 | QDateTime dateTime; |
| 55 | /// CRC. |
| 56 | quint32 crc; |
| 57 | /// Compressed file size. |
| 58 | quint32 compressedSize; |
| 59 | /// Uncompressed file size. |
| 60 | quint32 uncompressedSize; |
| 61 | /// Disk number start. |
| 62 | quint16 diskNumberStart; |
| 63 | /// Internal file attributes. |
| 64 | quint16 internalAttr; |
| 65 | /// External file attributes. |
| 66 | quint32 externalAttr; |
| 67 | /// Comment. |
| 68 | QString comment; |
| 69 | /// Extra field. |
| 70 | QByteArray extra; |
| 71 | }; |
| 72 | |
| 73 | #endif |