diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-07-21 07:45:29 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-21 07:45:29 +0000 |
commit | 7c52284b294cb33bc2e5d747e2e3c14d8ab937ae (patch) | |
tree | ba7bbf82a8ca0852deee158068330365f0f97e97 /utils/themeeditor/quazip/quazipfileinfo.h | |
parent | b72f475d44cf83c10c99eaf765b1c55cfdc00bb0 (diff) | |
download | rockbox-7c52284b294cb33bc2e5d747e2e3c14d8ab937ae.tar.gz rockbox-7c52284b294cb33bc2e5d747e2e3c14d8ab937ae.zip |
Theme Editor: Implemented download and decompression of font pack in the preferences dialog. Dialog will also allow the user to set a directory for a custom target database, but the update button doesn't work yet. Also fixed the file filters for open file/open project actions and resized the preferences dialog
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27509 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/quazip/quazipfileinfo.h')
-rw-r--r-- | utils/themeeditor/quazip/quazipfileinfo.h | 73 |
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 -- | ||
6 | QuaZIP - a Qt/C++ wrapper for the ZIP/UNZIP package | ||
7 | Copyright (C) 2005-2007 Sergey A. Tachenov | ||
8 | |||
9 | This program is free software; you can redistribute it and/or modify it | ||
10 | under the terms of the GNU General Public License as published by the | ||
11 | Free Software Foundation; either version 2 of the License, or (at your | ||
12 | option) any later version. | ||
13 | |||
14 | This program is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
17 | Public License for more details. | ||
18 | |||
19 | You should have received a copy of the GNU General Public License along | ||
20 | with this program; if not, write to the Free Software Foundation, Inc., | ||
21 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
22 | |||
23 | -- A kind of "standard" GPL license statement ends here -- | ||
24 | |||
25 | See COPYING file for GPL. | ||
26 | |||
27 | You are also permitted to use QuaZIP under the terms of LGPL (see | ||
28 | COPYING.LGPL). You are free to choose either license, but please note | ||
29 | that QuaZIP makes use of Qt, which is not licensed under LGPL. So if | ||
30 | you are using Open Source edition of Qt, you therefore MUST use GPL for | ||
31 | your code based on QuaZIP, since it would be also based on Qt in this | ||
32 | case. If you are Qt commercial license owner, then you are free to use | ||
33 | QuaZIP 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. */ | ||
42 | struct 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 | ||