1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/compressionlibs/ziplib/inc/zipfilemember.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,62 @@
1.4 +// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +
1.20 +#ifndef _ZIP_FILE_MEMBER_H_
1.21 +#define _ZIP_FILE_MEMBER_H_
1.22 +
1.23 +#include <localtypes.h>
1.24 +
1.25 +/**
1.26 +Class encapsulating the representation of a compressed file contained in a
1.27 +CZipFile archive file.
1.28 +
1.29 +@publishedAll
1.30 +@released
1.31 +*/
1.32 +class CZipFileMember: public CBase
1.33 + {
1.34 +friend class CZipFile;
1.35 +
1.36 +public:
1.37 +
1.38 + IMPORT_C TUint32 CRC32(void) const;
1.39 + IMPORT_C TUint32 CompressedSize(void) const;
1.40 + IMPORT_C const TFileName* Name(void) const;
1.41 + IMPORT_C TUint32 UncompressedSize(void) const;
1.42 + IMPORT_C virtual ~CZipFileMember();
1.43 +
1.44 +private:
1.45 +
1.46 + /** The name of a compressed file*/
1.47 + TFileName* iName;
1.48 +
1.49 + /** The method for compressing file*/
1.50 + TUint16 iCompressionMethod;
1.51 +
1.52 + /** The size of compressed file */
1.53 + TUint32 iCompressedSize;
1.54 +
1.55 + /** The size of uncompressed file*/
1.56 + TUint32 iUncompressedSize;
1.57 +
1.58 + /** CRC with 32 bits length in a compressed file*/
1.59 + TUint32 iCRC32;
1.60 +
1.61 + TUint32 iDataOffset;
1.62 + };
1.63 +
1.64 +#endif /* !_ZIP_FILE_MEMBER_H_ */
1.65 +