summaryrefslogtreecommitdiff
path: root/utils/themeeditor/quazip/quazipfileinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/quazip/quazipfileinfo.h')
-rw-r--r--utils/themeeditor/quazip/quazipfileinfo.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/utils/themeeditor/quazip/quazipfileinfo.h b/utils/themeeditor/quazip/quazipfileinfo.h
new file mode 100644
index 0000000000..3216d776d5
--- /dev/null
+++ b/utils/themeeditor/quazip/quazipfileinfo.h
@@ -0,0 +1,73 @@
1#ifndef QUA_ZIPFILEINFO_H
2#define QUA_ZIPFILEINFO_H
3
4/*
5-- A kind of "standard" GPL license statement --
6QuaZIP - a Qt/C++ wrapper for the ZIP/UNZIP package
7Copyright (C) 2005-2007 Sergey A. Tachenov
8
9This program is free software; you can redistribute it and/or modify it
10under the terms of the GNU General Public License as published by the
11Free Software Foundation; either version 2 of the License, or (at your
12option) any later version.
13
14This program is distributed in the hope that it will be useful, but
15WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
17Public License for more details.
18
19You should have received a copy of the GNU General Public License along
20with this program; if not, write to the Free Software Foundation, Inc.,
2159 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
23-- A kind of "standard" GPL license statement ends here --
24
25See COPYING file for GPL.
26
27You are also permitted to use QuaZIP under the terms of LGPL (see
28COPYING.LGPL). You are free to choose either license, but please note
29that QuaZIP makes use of Qt, which is not licensed under LGPL. So if
30you are using Open Source edition of Qt, you therefore MUST use GPL for
31your code based on QuaZIP, since it would be also based on Qt in this
32case. If you are Qt commercial license owner, then you are free to use
33QuaZIP 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. */
42struct 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