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