misc/quazip/quazipfileinfo.h
author unc0rr
Fri, 11 May 2012 23:36:42 +0400
changeset 7063 a0326412e96a
parent 5752 ea95ee97c805
child 7889 57b117d441b9
permissions -rw-r--r--
sysutils -> SysUtils
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5752
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     1
#ifndef QUA_ZIPFILEINFO_H
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     2
#define QUA_ZIPFILEINFO_H
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     3
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     4
/*
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     5
Copyright (C) 2005-2011 Sergey A. Tachenov
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     6
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     7
This program is free software; you can redistribute it and/or modify it
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     8
under the terms of the GNU Lesser General Public License as published by
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     9
the Free Software Foundation; either version 2 of the License, or (at
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    10
your option) any later version.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    11
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    12
This program is distributed in the hope that it will be useful, but
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    13
WITHOUT ANY WARRANTY; without even the implied warranty of
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    15
General Public License for more details.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    16
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    17
You should have received a copy of the GNU Lesser General Public License
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    18
along with this program; if not, write to the Free Software Foundation,
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    19
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    20
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    21
See COPYING file for the full LGPL text.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    22
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    23
Original ZIP package is copyrighted by Gilles Vollant, see
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    24
quazip/(un)zip.h files for details, basically it's zlib license.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    25
 **/
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    26
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    27
#include <QByteArray>
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    28
#include <QDateTime>
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    29
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    30
#include "quazip_global.h"
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    31
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    32
/// Information about a file inside archive.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    33
/** Call QuaZip::getCurrentFileInfo() or QuaZipFile::getFileInfo() to
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    34
 * fill this structure. */
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    35
struct QUAZIP_EXPORT QuaZipFileInfo {
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    36
  /// File name.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    37
  QString name;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    38
  /// Version created by.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    39
  quint16 versionCreated;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    40
  /// Version needed to extract.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    41
  quint16 versionNeeded;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    42
  /// General purpose flags.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    43
  quint16 flags;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    44
  /// Compression method.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    45
  quint16 method;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    46
  /// Last modification date and time.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    47
  QDateTime dateTime;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    48
  /// CRC.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    49
  quint32 crc;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    50
  /// Compressed file size.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    51
  quint32 compressedSize;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    52
  /// Uncompressed file size.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    53
  quint32 uncompressedSize;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    54
  /// Disk number start.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    55
  quint16 diskNumberStart;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    56
  /// Internal file attributes.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    57
  quint16 internalAttr;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    58
  /// External file attributes.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    59
  quint32 externalAttr;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    60
  /// Comment.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    61
  QString comment;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    62
  /// Extra field.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    63
  QByteArray extra;
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    64
};
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    65
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    66
#endif