diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-05-11 17:21:14 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-05-11 17:21:14 +0000 |
commit | 9c54187678281077b8700c1c107f54a0b40d7050 (patch) | |
tree | b07061b11477bfbdfddaa52bee43f4993167dbc0 /rbutil/rbutilqt/zip/zipentry_p.h | |
parent | 850c4f98baecf3d3c28e916927d15d3bbd0cd502 (diff) | |
download | rockbox-9c54187678281077b8700c1c107f54a0b40d7050.tar.gz rockbox-9c54187678281077b8700c1c107f54a0b40d7050.zip |
Set svn:eol-style on files from the rbutil directory and its subdirectories.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17462 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/zip/zipentry_p.h')
-rw-r--r-- | rbutil/rbutilqt/zip/zipentry_p.h | 156 |
1 files changed, 78 insertions, 78 deletions
diff --git a/rbutil/rbutilqt/zip/zipentry_p.h b/rbutil/rbutilqt/zip/zipentry_p.h index a201d0ac6e..dfdcf174d0 100644 --- a/rbutil/rbutilqt/zip/zipentry_p.h +++ b/rbutil/rbutilqt/zip/zipentry_p.h | |||
@@ -1,78 +1,78 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** Filename: ZipEntryP.h | 2 | ** Filename: ZipEntryP.h |
3 | ** Last updated [dd/mm/yyyy]: 28/01/2007 | 3 | ** Last updated [dd/mm/yyyy]: 28/01/2007 |
4 | ** | 4 | ** |
5 | ** Wrapper for a ZIP local header. | 5 | ** Wrapper for a ZIP local header. |
6 | ** | 6 | ** |
7 | ** Some of the code has been inspired by other open source projects, | 7 | ** Some of the code has been inspired by other open source projects, |
8 | ** (mainly Info-Zip and Gilles Vollant's minizip). | 8 | ** (mainly Info-Zip and Gilles Vollant's minizip). |
9 | ** Compression and decompression actually uses the zlib library. | 9 | ** Compression and decompression actually uses the zlib library. |
10 | ** | 10 | ** |
11 | ** Copyright (C) 2007 Angius Fabrizio. All rights reserved. | 11 | ** Copyright (C) 2007 Angius Fabrizio. All rights reserved. |
12 | ** | 12 | ** |
13 | ** This file is part of the OSDaB project (http://osdab.sourceforge.net/). | 13 | ** This file is part of the OSDaB project (http://osdab.sourceforge.net/). |
14 | ** | 14 | ** |
15 | ** This file may be distributed and/or modified under the terms of the | 15 | ** This file may be distributed and/or modified under the terms of the |
16 | ** GNU General Public License version 2 as published by the Free Software | 16 | ** GNU General Public License version 2 as published by the Free Software |
17 | ** Foundation and appearing in the file LICENSE.GPL included in the | 17 | ** Foundation and appearing in the file LICENSE.GPL included in the |
18 | ** packaging of this file. | 18 | ** packaging of this file. |
19 | ** | 19 | ** |
20 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 20 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
21 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 21 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
22 | ** | 22 | ** |
23 | ** See the file LICENSE.GPL that came with this software distribution or | 23 | ** See the file LICENSE.GPL that came with this software distribution or |
24 | ** visit http://www.gnu.org/copyleft/gpl.html for GPL licensing information. | 24 | ** visit http://www.gnu.org/copyleft/gpl.html for GPL licensing information. |
25 | ** | 25 | ** |
26 | **********************************************************************/ | 26 | **********************************************************************/ |
27 | 27 | ||
28 | // | 28 | // |
29 | // W A R N I N G | 29 | // W A R N I N G |
30 | // ------------- | 30 | // ------------- |
31 | // | 31 | // |
32 | // This file is not part of the Zip/UnZip API. It exists purely as an | 32 | // This file is not part of the Zip/UnZip API. It exists purely as an |
33 | // implementation detail. This header file may change from version to | 33 | // implementation detail. This header file may change from version to |
34 | // version without notice, or even be removed. | 34 | // version without notice, or even be removed. |
35 | // | 35 | // |
36 | // We mean it. | 36 | // We mean it. |
37 | // | 37 | // |
38 | 38 | ||
39 | #ifndef OSDAB_ZIPENTRY_P__H | 39 | #ifndef OSDAB_ZIPENTRY_P__H |
40 | #define OSDAB_ZIPENTRY_P__H | 40 | #define OSDAB_ZIPENTRY_P__H |
41 | 41 | ||
42 | #include <QtGlobal> | 42 | #include <QtGlobal> |
43 | #include <QString> | 43 | #include <QString> |
44 | 44 | ||
45 | class ZipEntryP | 45 | class ZipEntryP |
46 | { | 46 | { |
47 | public: | 47 | public: |
48 | ZipEntryP() | 48 | ZipEntryP() |
49 | { | 49 | { |
50 | lhOffset = 0; | 50 | lhOffset = 0; |
51 | dataOffset = 0; | 51 | dataOffset = 0; |
52 | gpFlag[0] = gpFlag[1] = 0; | 52 | gpFlag[0] = gpFlag[1] = 0; |
53 | compMethod = 0; | 53 | compMethod = 0; |
54 | modTime[0] = modTime[1] = 0; | 54 | modTime[0] = modTime[1] = 0; |
55 | modDate[0] = modDate[1] = 0; | 55 | modDate[0] = modDate[1] = 0; |
56 | crc = 0; | 56 | crc = 0; |
57 | szComp = szUncomp = 0; | 57 | szComp = szUncomp = 0; |
58 | lhEntryChecked = false; | 58 | lhEntryChecked = false; |
59 | } | 59 | } |
60 | 60 | ||
61 | quint32 lhOffset; // Offset of the local header record for this entry | 61 | quint32 lhOffset; // Offset of the local header record for this entry |
62 | quint32 dataOffset; // Offset of the file data for this entry | 62 | quint32 dataOffset; // Offset of the file data for this entry |
63 | unsigned char gpFlag[2]; // General purpose flag | 63 | unsigned char gpFlag[2]; // General purpose flag |
64 | quint16 compMethod; // Compression method | 64 | quint16 compMethod; // Compression method |
65 | unsigned char modTime[2]; // Last modified time | 65 | unsigned char modTime[2]; // Last modified time |
66 | unsigned char modDate[2]; // Last modified date | 66 | unsigned char modDate[2]; // Last modified date |
67 | quint32 crc; // CRC32 | 67 | quint32 crc; // CRC32 |
68 | quint32 szComp; // Compressed file size | 68 | quint32 szComp; // Compressed file size |
69 | quint32 szUncomp; // Uncompressed file size | 69 | quint32 szUncomp; // Uncompressed file size |
70 | QString comment; // File comment | 70 | QString comment; // File comment |
71 | 71 | ||
72 | bool lhEntryChecked; // Is true if the local header record for this entry has been parsed | 72 | bool lhEntryChecked; // Is true if the local header record for this entry has been parsed |
73 | 73 | ||
74 | inline bool isEncrypted() const { return gpFlag[0] & 0x01; } | 74 | inline bool isEncrypted() const { return gpFlag[0] & 0x01; } |
75 | inline bool hasDataDescriptor() const { return gpFlag[0] & 0x08; } | 75 | inline bool hasDataDescriptor() const { return gpFlag[0] & 0x08; } |
76 | }; | 76 | }; |
77 | 77 | ||
78 | #endif // OSDAB_ZIPENTRY_P__H | 78 | #endif // OSDAB_ZIPENTRY_P__H |