compressionlibs/ziplib/src/ezip/zipfilememberiterator.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 <zipfile.h>
       
    17 #include <zipfilememberiterator.h>
       
    18 
       
    19 CZipFileMemberIterator::CZipFileMemberIterator(CZipFile* aZipFile):
       
    20 	iZipFile(aZipFile),
       
    21 	iIndex(0)
       
    22 	{
       
    23 	}
       
    24 
       
    25 /**
       
    26 Moves the entry iterator onto the next zip file member contained in the 
       
    27 ZIP file. It returns a newly allocated CZipFileMember object that the
       
    28 caller is responsibile for de-allocating.
       
    29 
       
    30 @return new CZipFileMember* if next file member exist NULL when no more members exist
       
    31 @leave ... Any one of the system-wide error codes for other errors.
       
    32 */
       
    33 EXPORT_C CZipFileMember* CZipFileMemberIterator::NextL(void)
       
    34 	{	
       
    35 	return iZipFile->MakeMemberL(iIndex++);
       
    36 	}