|
1 /* |
|
2 * Copyright (c) 2006 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 "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: AIW service wrapper |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPHCNTAIWSERVICE_H |
|
19 #define CPHCNTAIWSERVICE_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <AiwCommon.h> |
|
23 |
|
24 #include "CPhCntService.h" |
|
25 #include "mphcntaiwservice.h" |
|
26 |
|
27 /** |
|
28 * Wrapper for phonebook's AIW service. |
|
29 * |
|
30 * @lib PhoneCntFinder.lib |
|
31 * @since S60 v3.2 |
|
32 */ |
|
33 NONSHARABLE_CLASS( CPhCntAiwService ): |
|
34 public CPhCntService, |
|
35 public MPhCntAiwService |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Static constructor. |
|
41 * |
|
42 * @since S60 v3.2 |
|
43 */ |
|
44 static CPhCntAiwService* NewL(); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 * |
|
49 * @since S60 v3.2 |
|
50 */ |
|
51 virtual ~CPhCntAiwService(); |
|
52 |
|
53 // from base class MPhCntService |
|
54 |
|
55 /** |
|
56 * From MPhCntService |
|
57 * |
|
58 * @since S60 v3.2 |
|
59 * @see MPhCntService |
|
60 */ |
|
61 void ExecuteRequestL( |
|
62 MPhCntServiceRequestParam& aServiceRequestParams, |
|
63 MPhCntServiceResult& aResult, |
|
64 MPhCntAiwServiceObserver& aObserver ); |
|
65 |
|
66 /** |
|
67 * From MPhCntAiwService |
|
68 * |
|
69 * @since S60 v3.2 |
|
70 * @see MPhCntService |
|
71 */ |
|
72 void Cancel(); |
|
73 |
|
74 /** |
|
75 * Indicates if service request is ongoing. |
|
76 */ |
|
77 TBool IsRequestActive() const; |
|
78 |
|
79 protected: |
|
80 |
|
81 /** |
|
82 * Indication that MAiwNotifyCallback is called. |
|
83 */ |
|
84 void ResponseReceived( TInt aError ); |
|
85 |
|
86 protected: |
|
87 |
|
88 CPhCntAiwService(); |
|
89 |
|
90 void ConstructL(); |
|
91 |
|
92 /** |
|
93 * Observer |
|
94 * Not own. |
|
95 */ |
|
96 MPhCntAiwServiceObserver* iObserver; |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // CPHCNTAIWSERVICE_H |