serviceproviders/sapi_contacts_vpbk/inc/contactiterator.h
changeset 5 989d2f495d90
child 23 50974a8b132e
equal deleted inserted replaced
1:a36b1e19a461 5:989d2f495d90
       
     1 /*
       
     2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Provides the interface to contacgtservice Iterator
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CCONTACTITERATOR_H
       
    20 #define C_CCONTACTITERATOR_H
       
    21 
       
    22 //System includes
       
    23 #include <LiwServiceIfBase.h>
       
    24 #include <LiwCommon.h>
       
    25 
       
    26 //User include
       
    27 #include "contactiter.h"
       
    28 
       
    29 /**
       
    30  * CContactIterator - Iterator Class
       
    31  * @since S60 5.0
       
    32  */
       
    33 class CContactIterator: public CLiwIterable
       
    34 {
       
    35 
       
    36  public:
       
    37  	/*
       
    38  	 * @NewL Method
       
    39  	 * @Returns the instance of the class
       
    40  	 */
       
    41  	static CContactIterator* NewL(CContactIter* aIter);
       
    42  	/*
       
    43  	 * @~CContactIterator Method
       
    44  	 * @N/A
       
    45  	 */
       
    46  	virtual ~CContactIterator();
       
    47  	/*
       
    48  	 * @Reset Method
       
    49  	 * @Returns void
       
    50  	 */
       
    51  	virtual void Reset();
       
    52     /*
       
    53  	 * @NextL Method
       
    54  	 * @ETrue/EFalse
       
    55  	 */
       
    56     virtual TBool NextL(TLiwVariant& aEntry);
       
    57 
       
    58 private:
       
    59     //Constructor taking contactservice iterator
       
    60     CContactIterator(CContactIter* aIter);
       
    61     
       
    62     void ContactIDToUTF(HBufC* aContactID);
       
    63 	
       
    64 	//Index/Cursor    
       
    65     TInt iIndex;
       
    66     //ContactService iterator pointer
       
    67     CContactIter* iContactIter;
       
    68 };
       
    69 
       
    70 #endif C_CCONTACTITERATOR_H