1 zipfilemember.h |
1 |
|
2 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // $Revision: 1.1 $ |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef _ZIP_FILE_MEMBER_H_ |
|
20 #define _ZIP_FILE_MEMBER_H_ |
|
21 |
|
22 #include "localtypes.h" |
|
23 |
|
24 /** |
|
25 Class encapsulating the representation of a compressed file contained in a |
|
26 CZipFile archive file. |
|
27 |
|
28 @publishedAll |
|
29 @released |
|
30 */ |
|
31 class CZipFileMember: public CBase |
|
32 { |
|
33 friend class CZipFile; |
|
34 |
|
35 public: |
|
36 |
|
37 IMPORT_C TUint32 CRC32(void) const; |
|
38 IMPORT_C TUint32 CompressedSize(void) const; |
|
39 IMPORT_C const TFileName* Name(void) const; |
|
40 IMPORT_C TUint32 UncompressedSize(void) const; |
|
41 IMPORT_C virtual ~CZipFileMember(); |
|
42 |
|
43 private: |
|
44 |
|
45 /** The name of a compressed file*/ |
|
46 TFileName* iName; |
|
47 |
|
48 /** The method for compressing file*/ |
|
49 TUint16 iCompressionMethod; |
|
50 |
|
51 /** The size of compressed file */ |
|
52 TUint32 iCompressedSize; |
|
53 |
|
54 /** The size of uncompressed file*/ |
|
55 TUint32 iUncompressedSize; |
|
56 |
|
57 /** CRC with 32 bits length in a compressed file*/ |
|
58 TUint32 iCRC32; |
|
59 |
|
60 TUint32 iDataOffset; |
|
61 }; |
|
62 |
|
63 #endif /* !_ZIP_FILE_MEMBER_H_ */ |