author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 27 Aug 2009 07:43:07 +0300 | |
changeset 22 | fc9cf246af83 |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2009 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: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef CALLBACK_H__ |
|
19 |
#define CALLBACK_H__ |
|
20 |
||
21 |
#include <e32base.h> |
|
22 |
#include "singlecontact.h" |
|
23 |
#include "contactiter.h" |
|
24 |
#include "contactcallback.h" |
|
25 |
||
26 |
||
27 |
||
28 |
||
29 |
_LIT(KCntSimDbUri,"sim://global_adn"); |
|
30 |
||
31 |
// _LIT8(KFirstName,"FirstName"); |
|
32 |
_LIT(KName,"Arnold"); |
|
33 |
_LIT8(KNumber,"MobilePhoneGen"); |
|
34 |
_LIT(KPhoneNumber,"09918765432"); |
|
35 |
||
36 |
||
37 |
class CContactCallBack : public CBase, public MContactCallback |
|
38 |
{ |
|
39 |
||
40 |
public: |
|
41 |
||
42 |
/** |
|
43 |
* |
|
44 |
* @return void |
|
45 |
*/ |
|
46 |
||
47 |
virtual void HandleReturnValue( TOperationEvent aEventId, const TInt& aError, TInt aTransId ); |
|
48 |
||
49 |
virtual void HandleReturnIter( const TInt& aError, CContactIter* aIter, TInt aTransId ); |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
50 |
virtual void HandleReturnId( const TInt& aError, HBufC8* acntId, TInt aTransId ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
51 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
52 |
virtual void HandleReturnArray(const TInt& aError, RPointerArray<HBufC8>& aArray, TInt aTransId ); |
19 | 53 |
|
54 |
/** |
|
55 |
* Destructor. |
|
56 |
*/ |
|
57 |
virtual ~CContactCallBack() ; |
|
58 |
||
59 |
/** |
|
60 |
* NewL function . |
|
61 |
*/ |
|
62 |
||
63 |
IMPORT_C static CContactCallBack* NewL(RFile* afile ); |
|
64 |
||
65 |
public : |
|
66 |
||
67 |
TInt32 iErrCode; |
|
68 |
TInt iTransId; |
|
69 |
||
70 |
public : |
|
71 |
||
72 |
HBufC8* iId; |
|
73 |
CSingleContact* iCont; |
|
74 |
||
75 |
private : |
|
76 |
||
77 |
CContactCallBack(RFile* afile ); |
|
78 |
||
79 |
private: |
|
80 |
||
81 |
RFile* ifile; |
|
82 |
||
83 |
||
84 |
||
85 |
||
86 |
||
87 |
||
88 |
||
89 |
}; |
|
90 |
||
91 |
||
92 |
#endif // CALLBACK_H__ |