serviceproviders/sapi_serviceregistry/inc/serviceregistryiterator.h
changeset 5 989d2f495d90
child 23 50974a8b132e
equal deleted inserted replaced
1:a36b1e19a461 5:989d2f495d90
       
     1 /*
       
     2 * Copyright (c) 2007-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:  Implements CLiwIterable type
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CSVCREGITERATOR_H
       
    20 #define __CSVCREGITERATOR_H
       
    21 
       
    22 #include <liwgenericparam.h> 
       
    23 #include <liwcommon.h>
       
    24 #include <LiwVariant.h>
       
    25 
       
    26 /**
       
    27  *  This class implements the abstract methods of CLiwIterable   
       
    28  *  class so that the user may iterate over the result 
       
    29  *  
       
    30  *  @since Series60 v3.2
       
    31  */
       
    32 NONSHARABLE_CLASS( CSvcRegIterator ) : public CLiwIterable
       
    33     {
       
    34 
       
    35 public:
       
    36        
       
    37     /**
       
    38      * Two-phased constructor.     
       
    39      * @return A pointer of type CSvcRegIterator
       
    40      */
       
    41      static CSvcRegIterator* NewL();
       
    42     
       
    43     /**
       
    44     * Destructor.
       
    45     */
       
    46     ~CSvcRegIterator();
       
    47     /**
       
    48      * Resets the iterator to point to the beginning of list
       
    49      * @param void
       
    50      * @return void
       
    51      */
       
    52     void Reset();	
       
    53     
       
    54     /**
       
    55      * Constructs the next meta data item in the form of a map
       
    56      * @param TLiwVariant an output parameter that contains the result
       
    57      * @return TBool On success this returns ETrue else returns EFalse
       
    58      */	
       
    59     TBool NextL( TLiwVariant& aItem );
       
    60 
       
    61     void SetProviderDataList(RCriteriaArray* aList);        
       
    62 private:
       
    63     
       
    64     //Default constructor.
       
    65     CSvcRegIterator();
       
    66     
       
    67 private: // data    
       
    68     TInt iCount;
       
    69     /**
       
    70     * Gives the current item being processed
       
    71     */
       
    72     TInt iIndex; 
       
    73     
       
    74     //The list of providers
       
    75     RCriteriaArray* iProviderDataList;    
       
    76     };
       
    77 
       
    78 #endif // __CSVCREGITERATOR_H