PageRenderTime 112ms CodeModel.GetById 71ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/src/libtomahawk/thirdparty/quazip/quazip/quazipfileinfo.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 66 lines | 22 code | 5 blank | 39 comment | 0 complexity | f64e12cad1b6f8ddcc3b2a8ca167d3ba MD5 | raw file
 1#ifndef QUA_ZIPFILEINFO_H
 2#define QUA_ZIPFILEINFO_H
 3
 4/*
 5Copyright (C) 2005-2011 Sergey A. Tachenov
 6
 7This program is free software; you can redistribute it and/or modify it
 8under the terms of the GNU Lesser General Public License as published by
 9the Free Software Foundation; either version 2 of the License, or (at
10your option) any later version.
11
12This program is distributed in the hope that it will be useful, but
13WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
15General Public License for more details.
16
17You should have received a copy of the GNU Lesser General Public License
18along with this program; if not, write to the Free Software Foundation,
19Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21See COPYING file for the full LGPL text.
22
23Original ZIP package is copyrighted by Gilles Vollant, see
24quazip/(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. */
35struct 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