os/ossrv/compressionlibs/ziplib/test/oldezlib/zip/ZipFileMemberIterator.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 // $Revision$
    15 // 
    16 //
    17 
    18 #include "oldzipfile.h"
    19 #include "OldZipFileMemberIterator.h"
    20 using namespace TOLDEZIP;
    21 
    22 CZipFileMemberIterator::CZipFileMemberIterator(CZipFile* aZipFile):
    23 	iZipFile(aZipFile),
    24 	iIndex(0)
    25 	{
    26 	}
    27 
    28 /**
    29 Moves the entry iterator onto the next zip file member contained in the 
    30 ZIP file. It returns a newly allocated CZipFileMember object that the
    31 caller is responsibile for de-allocating.
    32 
    33 @return new CZipFileMember* if next file member exist NULL when no more members exist
    34 @leave ... Any one of the system-wide error codes for other errors.
    35 */
    36 EXPORT_C CZipFileMember* CZipFileMemberIterator::NextL(void)
    37 	{	
    38 	return iZipFile->MakeMemberL(iIndex++);
    39 	}