|
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 "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.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 _EZIP_FILE_MEMBER_H_ |
|
20 #define _EZIP_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 namespace TOLDEZIP |
|
32 { |
|
33 class CZipFileMember: public CBase |
|
34 { |
|
35 friend class CZipFile; |
|
36 |
|
37 public: |
|
38 |
|
39 IMPORT_C TUint32 CRC32(void) const; |
|
40 IMPORT_C TUint32 CompressedSize(void) const; |
|
41 IMPORT_C const TFileName* Name(void) const; |
|
42 IMPORT_C TUint32 UncompressedSize(void) const; |
|
43 IMPORT_C virtual ~CZipFileMember(); |
|
44 |
|
45 private: |
|
46 |
|
47 /** The name of a compressed file*/ |
|
48 TFileName* iName; |
|
49 |
|
50 /** The method for compressing file*/ |
|
51 TUint16 iCompressionMethod; |
|
52 |
|
53 /** The size of compressed file */ |
|
54 TUint32 iCompressedSize; |
|
55 |
|
56 /** The size of uncompressed file*/ |
|
57 TUint32 iUncompressedSize; |
|
58 |
|
59 /** CRC with 32 bits length in a compressed file*/ |
|
60 TUint32 iCRC32; |
|
61 |
|
62 TUint32 iDataOffset; |
|
63 }; |
|
64 }//TOLDEZIP |
|
65 #endif /* !_ZIP_FILE_MEMBER_H_ */ |
|
66 |