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