19 |
19 |
20 #ifndef CPROENGNOTIFYHANDLERIMPL_H |
20 #ifndef CPROENGNOTIFYHANDLERIMPL_H |
21 #define CPROENGNOTIFYHANDLERIMPL_H |
21 #define CPROENGNOTIFYHANDLERIMPL_H |
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 #include <MProEngNotifyHandler2.h> |
24 #include <MProEngNotifyHandler.h> |
25 #include <e32base.h> |
25 #include <e32base.h> |
26 |
26 |
27 // FORWARD DECLARATIONS |
27 // FORWARD DECLARATIONS |
28 class CProEngProfileActivationDelegate; |
28 class CProEngProfileActivationDelegate; |
29 class CProEngActiveProfileDelegate; |
29 class CProEngActiveProfileDelegate; |
30 class CProEngProfileNameArrayEventDelegate; |
30 class CProEngProfileNameArrayEventDelegate; |
31 class CProEngProfileEventDelegate; |
31 class CProEngProfileEventDelegate; |
32 class CProEngActiveSettingsEventDelegate; |
|
33 class CProEngMasterSettingsEventDelegate; |
|
34 |
32 |
35 // CLASS DECLARATION |
33 // CLASS DECLARATION |
36 |
34 |
37 /** |
35 /** |
38 * This class implements MProEngNotifyHandler interface. |
36 * This class implements MProEngNotifyHandler interface. |
39 * |
37 * |
40 * @lib ProfileEngine.lib |
38 * @lib ProfileEngine.lib |
41 * @since 3.1 |
39 * @since 3.1 |
42 */ |
40 */ |
43 NONSHARABLE_CLASS( CProEngNotifyHandlerImpl ) : public CBase, |
41 NONSHARABLE_CLASS( CProEngNotifyHandlerImpl ) : public CBase, |
44 public MProEngNotifyHandler2 |
42 public MProEngNotifyHandler |
45 { |
43 { |
46 public: // Constructors and destructor |
44 public: // Constructors and destructor |
47 |
45 |
48 /** |
46 /** |
49 * Two-phased constructor. |
47 * Two-phased constructor. |
81 */ |
79 */ |
82 TInt RequestProfileNameArrayNotificationsL( |
80 TInt RequestProfileNameArrayNotificationsL( |
83 MProEngProfileNameArrayObserver& aObserver ); |
81 MProEngProfileNameArrayObserver& aObserver ); |
84 |
82 |
85 /** |
83 /** |
86 * From MProEngNotifyHandler2 |
|
87 */ |
|
88 virtual TInt RequestActiveSettingsNotificationsL( |
|
89 MProEngActiveSettingsObserver &aObserver ); |
|
90 |
|
91 /** |
|
92 * From MProEngNotifyHandler2 |
|
93 */ |
|
94 virtual TInt RequestMasterSettingsNotificationsL( |
|
95 MProEngMasterSettingsObserver &aObserver ); |
|
96 |
|
97 /** |
|
98 * From MProEngNotifyHandler |
84 * From MProEngNotifyHandler |
99 */ |
85 */ |
100 void CancelProfileActivationNotifications(); |
86 void CancelProfileActivationNotifications(); |
101 |
87 |
102 /** |
88 /** |
113 * From MProEngNotifyHandler |
99 * From MProEngNotifyHandler |
114 */ |
100 */ |
115 void CancelProfileNameArrayNotifications(); |
101 void CancelProfileNameArrayNotifications(); |
116 |
102 |
117 /** |
103 /** |
118 * From MProEngNotifyHandler2 |
|
119 */ |
|
120 virtual void CancelActiveSettingsNotificationsL(); |
|
121 |
|
122 /** |
|
123 * From MProEngNotifyHandler2 |
|
124 */ |
|
125 virtual void CancelMasterSettingsNotificationsL(); |
|
126 |
|
127 /** |
|
128 * From MProEngNotifyHandler |
104 * From MProEngNotifyHandler |
129 */ |
105 */ |
130 void CancelAll(); |
106 void CancelAll(); |
131 |
|
132 |
107 |
133 private: |
108 private: |
134 |
109 |
135 /** |
110 /** |
136 * C++ default constructor. |
111 * C++ default constructor. |
148 // Own: Delegate for profile name array modification events |
123 // Own: Delegate for profile name array modification events |
149 CProEngProfileNameArrayEventDelegate* iNameArrayEventDelegate; |
124 CProEngProfileNameArrayEventDelegate* iNameArrayEventDelegate; |
150 |
125 |
151 // Own: Array of profile change observers |
126 // Own: Array of profile change observers |
152 RPointerArray< CProEngProfileEventDelegate > iProfileEventDelegates; |
127 RPointerArray< CProEngProfileEventDelegate > iProfileEventDelegates; |
153 |
|
154 // Own: Delegate for active settings modification events |
|
155 CProEngActiveSettingsEventDelegate *iActiveSettingEventDelegate; |
|
156 |
|
157 // Own: Delegate for master settings modification events |
|
158 CProEngMasterSettingsEventDelegate *iMasterSettingEventDelegate; |
|
159 |
128 |
160 }; |
129 }; |
161 |
130 |
162 #endif // CPROENGNOTIFYHANDLERIMPL_H |
131 #endif // CPROENGNOTIFYHANDLERIMPL_H |
163 |
132 |