author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 02 Feb 2010 00:45:40 +0200 | |
changeset 28 | 92cfb77afb61 |
parent 23 | 50974a8b132e |
permissions | -rw-r--r-- |
5 | 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> |
|
23
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
24 |
#include <liwvariant.h> |
5 | 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 |