williamr@2: williamr@2: // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // $Revision: 1.1 $ williamr@2: // williamr@2: // williamr@2: williamr@2: #ifndef _ZIP_FILE_MEMBER_H_ williamr@2: #define _ZIP_FILE_MEMBER_H_ williamr@2: williamr@2: #include "localtypes.h" williamr@2: williamr@2: /** williamr@2: Class encapsulating the representation of a compressed file contained in a williamr@2: CZipFile archive file. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: class CZipFileMember: public CBase williamr@2: { williamr@2: friend class CZipFile; williamr@2: williamr@2: public: williamr@2: williamr@2: IMPORT_C TUint32 CRC32(void) const; williamr@2: IMPORT_C TUint32 CompressedSize(void) const; williamr@2: IMPORT_C const TFileName* Name(void) const; williamr@2: IMPORT_C TUint32 UncompressedSize(void) const; williamr@2: IMPORT_C virtual ~CZipFileMember(); williamr@2: williamr@2: private: williamr@2: williamr@2: /** The name of a compressed file*/ williamr@2: TFileName* iName; williamr@2: williamr@2: /** The method for compressing file*/ williamr@2: TUint16 iCompressionMethod; williamr@2: williamr@2: /** The size of compressed file */ williamr@2: TUint32 iCompressedSize; williamr@2: williamr@2: /** The size of uncompressed file*/ williamr@2: TUint32 iUncompressedSize; williamr@2: williamr@2: /** CRC with 32 bits length in a compressed file*/ williamr@2: TUint32 iCRC32; williamr@2: williamr@2: TUint32 iDataOffset; williamr@2: }; williamr@2: williamr@2: #endif /* !_ZIP_FILE_MEMBER_H_ */