compressionlibs/ziplib/src/ezip/zipfilemember.cpp
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 2003-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 #include <zipfilemember.h>
       
    17 
       
    18 /**
       
    19 Retrieve CRC value in a compressed file contained in a CZipFile archive file. 
       
    20 
       
    21 @return the 32 bit integer contains the CRC value 
       
    22 */  
       
    23 EXPORT_C TUint32 CZipFileMember::CRC32(void) const
       
    24 	{
       
    25 	return iCRC32;
       
    26 	}
       
    27 
       
    28 /**
       
    29 Retrieve the size of compressed file contained in a CZipFile archive file.
       
    30 
       
    31 @return the size of a compressed file 
       
    32 */  	
       
    33 EXPORT_C TUint32 CZipFileMember::CompressedSize(void) const
       
    34 	{
       
    35 	return iCompressedSize;
       
    36 	}
       
    37 
       
    38 /**
       
    39 Retrieve the name of a compressed file contained in a CZipFile archive file.
       
    40 
       
    41 @return the name of a compressed file 
       
    42 */  
       
    43 EXPORT_C const TFileName* CZipFileMember::Name(void) const
       
    44 	{
       
    45 	return iName;
       
    46 	}
       
    47 	
       
    48 /**
       
    49 Retrieve the size of uncompressed file contained in a CZipFile archive file.
       
    50 
       
    51 @return the size of a uncompressed file 
       
    52 */ 
       
    53 EXPORT_C TUint32 CZipFileMember::UncompressedSize(void) const
       
    54 	{
       
    55 	return iUncompressedSize;
       
    56 	}
       
    57 
       
    58 /**
       
    59 Destructor
       
    60 */
       
    61 EXPORT_C CZipFileMember::~CZipFileMember()
       
    62 	{
       
    63 	delete iName;
       
    64 	}