equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
|
19 |
|
20 // INCLUDE FILES |
18 // INCLUDE FILES |
21 #include "WidgetEngineBridge.h" |
19 #include "WidgetEngineBridge.h" |
22 #include "WidgetEventHandler.h" |
20 #include "WidgetEventHandler.h" |
23 #include <object.h> |
21 #include <object.h> |
24 #include <eikamnt.h> |
22 #include <eikamnt.h> |
25 #include <eikmenub.h> |
23 #include <eikmenub.h> |
26 #include <gdi.h> |
24 #include <gdi.h> |
27 #include <bitdev.h> |
25 #include <bitdev.h> |
28 #include "brctlinterface.h" |
26 #include <brctlinterface.h> |
29 #include "WidgetEngineCallbacks.h" |
27 #include "WidgetEngineCallbacks.h" |
30 |
28 |
31 #include "WidgetClient.h" |
29 #include "WidgetClient.h" |
32 #include "MenuClient.h" |
30 #include "MenuClient.h" |
33 #include "Renderer.h" |
31 #include "Renderer.h" |
170 m_preferences = new (ELeave) WidgetPreferences(); |
168 m_preferences = new (ELeave) WidgetPreferences(); |
171 |
169 |
172 switch( aParam ) { |
170 switch( aParam ) { |
173 case TBrCtlDefs::EWidgetBasePath: { |
171 case TBrCtlDefs::EWidgetBasePath: { |
174 m_preferences->setBasePathL(aValue); |
172 m_preferences->setBasePathL(aValue); |
175 m_preferences->loadL(); |
173 TRAPD(err, m_preferences->loadL()); |
|
174 if(err!=KErrNone) |
|
175 { |
|
176 m_preferences->deleteAllPrefFiles(); |
|
177 } |
176 break; |
178 break; |
177 } |
179 } |
178 case TBrCtlDefs::EWidgetBundleId: { |
180 case TBrCtlDefs::EWidgetBundleId: { |
179 m_preferences->setWidgetBundleId(aValue); |
181 m_preferences->setWidgetBundleId(aValue); |
180 break; |
182 break; |
319 } |
321 } |
320 |
322 |
321 //END OF FILE |
323 //END OF FILE |
322 |
324 |
323 |
325 |
|
326 |