author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 16 Apr 2010 15:54:44 +0300 | |
changeset 55 | eaf3908907b6 |
parent 33 | 50974a8b132e |
permissions | -rw-r--r-- |
19 | 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 |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
23 |
#include <liwserviceifbase.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
24 |
#include <liwcommon.h> |
19 | 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 |