|
1 /* |
|
2 * Copyright (c) 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 "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: class for receiving IAP change event |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef EPOS_COMASUPLIAPCHANGENOTIFIER_H |
|
20 #define EPOS_COMASUPLIAPCHANGENOTIFIER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32def.h> |
|
24 #include <e32base.h> |
|
25 #include <commdb.h> |
|
26 |
|
27 //Forward declaration |
|
28 class COMASuplTrace; |
|
29 class CCommsDatabase; |
|
30 /** |
|
31 * Observer class for listening to Etel Events |
|
32 * @lib eposomasuplprotocolhandler.lib |
|
33 * @since S60 v3.1u |
|
34 */ |
|
35 |
|
36 class MOMASuplIapChangeNotifierObserver |
|
37 { |
|
38 public: |
|
39 // IAP change Notifier invoked for IAP settings change |
|
40 virtual void HandleIapSettingsChangeL(TInt aErrorCode) = 0; |
|
41 }; |
|
42 |
|
43 /** |
|
44 * Class for getting the network change info |
|
45 * @lib eposomasuplprotocolhandler.lib |
|
46 * @since S60 v3.2 |
|
47 */ |
|
48 |
|
49 class COMASuplIapNotifier : public CActive |
|
50 { |
|
51 public: |
|
52 public: // Constructors and destructor |
|
53 |
|
54 /** |
|
55 * Performs construction of an object |
|
56 * @since S60 v3.1u |
|
57 * @param None |
|
58 * @return None |
|
59 */ |
|
60 static COMASuplIapNotifier* NewL(MOMASuplIapChangeNotifierObserver& aObserver); |
|
61 |
|
62 /** |
|
63 * Performs destructor |
|
64 * @since S60 v3.1u |
|
65 * @param None |
|
66 * @return None |
|
67 */ |
|
68 ~COMASuplIapNotifier(); |
|
69 |
|
70 void NotifyIapSettingsChange(); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * Performs construction of an object |
|
76 * @since S60 v3.1u |
|
77 * @param aObserver, MOMASuplIapChangeNotifierObserver observer for request completion. |
|
78 * @return None |
|
79 */ |
|
80 COMASuplIapNotifier(MOMASuplIapChangeNotifierObserver& aObserver); |
|
81 |
|
82 /** |
|
83 * Performs Second phase constrcution |
|
84 * @since S60 v3.1u |
|
85 * @param None |
|
86 * @return None |
|
87 */ |
|
88 void ConstructL(); |
|
89 |
|
90 protected: // CActive |
|
91 /** |
|
92 * Performs cancelling of asynchronour request |
|
93 * @since S60 v3.1u |
|
94 * @param None |
|
95 * @return None |
|
96 */ |
|
97 void DoCancel(); |
|
98 |
|
99 /** |
|
100 * Performs RunL |
|
101 * @since S60 v3.1u |
|
102 * @param None |
|
103 * @return None |
|
104 */ |
|
105 void RunL(); |
|
106 |
|
107 /** |
|
108 * Performs RunError |
|
109 * @since S60 v3.1u |
|
110 * @param aError, Error code containing leave reason |
|
111 * @return TInt , informs to activescheduler about handling of leave. |
|
112 */ |
|
113 TInt RunError(TInt aError); |
|
114 |
|
115 private: // Data |
|
116 |
|
117 //For access to CommsDB |
|
118 CCommsDatabase* iCommDb; |
|
119 |
|
120 //Trace Utility |
|
121 COMASuplTrace* iTrace; |
|
122 |
|
123 //Observer for request completion |
|
124 MOMASuplIapChangeNotifierObserver& iObserver; |
|
125 |
|
126 }; |
|
127 |
|
128 #endif // EPOS_COMASUPLETELNOTIFIER_H |
|
129 |
|
130 // End of File |