author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 22 | fc9cf246af83 |
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 callback interface |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef M_CCONTACTCALLBACK_H |
|
19 |
#define M_CCONTACTCALLBACK_H |
|
20 |
||
21 |
#include "contactservice.hrh" |
|
22 |
// FORWARD DECLARATIONS |
|
23 |
class CContactIter; |
|
24 |
||
25 |
/** |
|
26 |
* MContactCallback - callback interface class |
|
27 |
* |
|
28 |
*/ |
|
29 |
class MContactCallback |
|
30 |
{ |
|
31 |
public: |
|
32 |
/* |
|
33 |
*Called to Indicate success or failure for sapis other than GetList |
|
34 |
*/ |
|
35 |
virtual void HandleReturnValue(TOperationEvent aEventId, const TInt& aError, |
|
36 |
TInt aTransId ) = 0; |
|
37 |
/* |
|
38 |
*Called after GetList async call is complete |
|
39 |
*/ |
|
40 |
virtual void HandleReturnIter(const TInt& aError, |
|
41 |
CContactIter* aIter, |
|
42 |
TInt aTransId ) = 0; |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
43 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
44 |
virtual void HandleReturnId(const TInt& aError, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
45 |
HBufC8* aId, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
46 |
TInt aTransId ) = 0; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
47 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
48 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
49 |
virtual void HandleReturnArray(const TInt& aError, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
50 |
RPointerArray<HBufC8>& aArray, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
51 |
TInt aTransId ) = 0; |
19 | 52 |
}; |
53 |
||
54 |
#endif // M_CONTACTCALLBACK_H |