misc/quazip/quazipfileinfo.h
branchhedgeroid
changeset 5824 2e5835130d9a
parent 5752 ea95ee97c805
child 7889 57b117d441b9
equal deleted inserted replaced
5733:5ab22736bdb6 5824:2e5835130d9a
       
     1 #ifndef QUA_ZIPFILEINFO_H
       
     2 #define QUA_ZIPFILEINFO_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 <QByteArray>
       
    28 #include <QDateTime>
       
    29 
       
    30 #include "quazip_global.h"
       
    31 
       
    32 /// Information about a file inside archive.
       
    33 /** Call QuaZip::getCurrentFileInfo() or QuaZipFile::getFileInfo() to
       
    34  * fill this structure. */
       
    35 struct QUAZIP_EXPORT QuaZipFileInfo {
       
    36   /// File name.
       
    37   QString name;
       
    38   /// Version created by.
       
    39   quint16 versionCreated;
       
    40   /// Version needed to extract.
       
    41   quint16 versionNeeded;
       
    42   /// General purpose flags.
       
    43   quint16 flags;
       
    44   /// Compression method.
       
    45   quint16 method;
       
    46   /// Last modification date and time.
       
    47   QDateTime dateTime;
       
    48   /// CRC.
       
    49   quint32 crc;
       
    50   /// Compressed file size.
       
    51   quint32 compressedSize;
       
    52   /// Uncompressed file size.
       
    53   quint32 uncompressedSize;
       
    54   /// Disk number start.
       
    55   quint16 diskNumberStart;
       
    56   /// Internal file attributes.
       
    57   quint16 internalAttr;
       
    58   /// External file attributes.
       
    59   quint32 externalAttr;
       
    60   /// Comment.
       
    61   QString comment;
       
    62   /// Extra field.
       
    63   QByteArray extra;
       
    64 };
       
    65 
       
    66 #endif