|
1 /* |
|
2 * Copyright (c) 2009-2010 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: Observer to Sim Store changed |
|
15 * Interface : Private, CVmbxSimStoreObserver |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef C_VMBXSIMSTOREOBSERVERR_H |
|
21 #define C_VMBXSIMSTOREOBSERVERR_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "mvmbxsimstoreobserver.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CVmbxSimHandler; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * DECLARATION CVmbxSimStoreObserver |
|
34 * |
|
35 * @lib vmbxengine.lib |
|
36 */ |
|
37 NONSHARABLE_CLASS( CVmbxSimStoreObserver ) : public CActive |
|
38 { |
|
39 |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor |
|
44 * @param in aSimHandler Reference to Sim handler |
|
45 * @param in aObserver observer of MVmbxSimStoreObserver |
|
46 */ |
|
47 static CVmbxSimStoreObserver* NewL( CVmbxSimHandler& aSimHandler, |
|
48 MVmbxSimStoreObserver& aObserver ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CVmbxSimStoreObserver(); |
|
54 |
|
55 public: // New functions |
|
56 |
|
57 /** |
|
58 * Activates this notification. Call ETel NotifyStoreEvent. |
|
59 */ |
|
60 void ActivateL(); |
|
61 |
|
62 private: |
|
63 |
|
64 /** |
|
65 * C++ default constructor. |
|
66 * @param in aSimHandler Reference to Sim handler |
|
67 * @param in aObserver observer of MVmbxSimStoreObserver |
|
68 */ |
|
69 CVmbxSimStoreObserver( CVmbxSimHandler& aSimHandler, |
|
70 MVmbxSimStoreObserver& aObserver ); |
|
71 |
|
72 /** |
|
73 * By default Symbian 2nd phase constructor is private. |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 /** |
|
78 * Informs SimHandler about changed number |
|
79 */ |
|
80 void NotifySimHandler(); |
|
81 |
|
82 // from base class CActive |
|
83 private: |
|
84 /** |
|
85 * @see CActive::RunL |
|
86 */ |
|
87 void RunL(); |
|
88 |
|
89 /** |
|
90 * @see CActive::DoCancel |
|
91 */ |
|
92 void DoCancel(); |
|
93 |
|
94 |
|
95 private: // data |
|
96 |
|
97 /** |
|
98 * The index of the entry that has been changed |
|
99 */ |
|
100 TInt iIndex; |
|
101 |
|
102 /** |
|
103 * The events that ETel sends |
|
104 */ |
|
105 TUint32 iEvents; |
|
106 |
|
107 /** |
|
108 * CVmbxSimHandler reference |
|
109 * |
|
110 */ |
|
111 CVmbxSimHandler& iSimHandler; |
|
112 |
|
113 /** |
|
114 * MVmbxSimStoreObserver reference |
|
115 * |
|
116 */ |
|
117 MVmbxSimStoreObserver& iObserver; |
|
118 |
|
119 }; |
|
120 |
|
121 #endif // C_VMBXSIMSTOREOBSERVERR_H |