equal
deleted
inserted
replaced
21 |
21 |
22 // External includes |
22 // External includes |
23 #include <e32base.h> |
23 #include <e32base.h> |
24 #include <bamdesca.h> // For MDesCArray |
24 #include <bamdesca.h> // For MDesCArray |
25 #include <badesca.h> |
25 #include <badesca.h> |
26 #include <mhomescreensettingsobserver.h> |
|
27 #include <hspluginsettings.h> |
26 #include <hspluginsettings.h> |
28 #include <propertymap.h> |
27 #include <propertymap.h> |
29 |
28 |
30 // Internal includes |
29 // Internal includes |
31 #include "mcspluginsettingsapplist.h" |
30 #include "mcspluginsettingsapplist.h" |
64 * @lib mcspluginsettings.lib |
63 * @lib mcspluginsettings.lib |
65 * @since S60 9.1 |
64 * @since S60 9.1 |
66 */ |
65 */ |
67 class CMCSPluginSettingsModel : public CBase |
66 class CMCSPluginSettingsModel : public CBase |
68 , public MDesCArray |
67 , public MDesCArray |
69 , public HSPluginSettingsIf::MHomeScreenSettingsObserver |
|
70 { |
68 { |
71 |
69 |
72 public: |
70 public: |
73 |
71 |
74 /** |
72 /** |
167 * |
165 * |
168 * @param aPluginId |
166 * @param aPluginId |
169 */ |
167 */ |
170 void UpdateSettingsContainerL( const TDesC8& aPluginId ); |
168 void UpdateSettingsContainerL( const TDesC8& aPluginId ); |
171 |
169 |
172 // From MHomeScreenSettingsObserver |
170 /** |
173 /** |
171 * Update settings model |
174 * Settings changed |
172 * |
175 * |
173 * @param aPluginId |
176 * @param aEvent |
174 */ |
177 * @param aPluginName |
175 void UpdateSettingModelL( const TDesC8& aPluginId ); |
178 * @param aPluginUid |
|
179 * @param aPluginId |
|
180 * @return TInt |
|
181 */ |
|
182 TInt SettingsChangedL( const TDesC8& aEvent, const TDesC8& aPluginName, |
|
183 const TDesC8& aPluginUid, const TDesC8& aPluginId ); |
|
184 |
176 |
185 private: |
177 private: |
186 |
178 |
187 /** |
179 /** |
188 * Private constructor |
180 * Private constructor |
254 * Array of setting items. |
246 * Array of setting items. |
255 * Own. |
247 * Own. |
256 */ |
248 */ |
257 RArray<TSettingItem> iSettings; |
249 RArray<TSettingItem> iSettings; |
258 |
250 |
259 // Homescreen settings API |
251 // Homescreen settings API. NOT OWNED! |
260 HSPluginSettingsIf::CHomescreenSettings* iPluginSettings; |
252 HSPluginSettingsIf::CHomescreenSettings* iPluginSettings; |
261 |
253 |
262 HBufC8* iPluginId; |
254 HBufC8* iPluginId; |
263 |
255 |
264 // Stores the text which is drawn by listbox |
256 // Stores the text which is drawn by listbox |