equal
deleted
inserted
replaced
48 |
48 |
49 /*! |
49 /*! |
50 Default constructor. |
50 Default constructor. |
51 */ |
51 */ |
52 CalenNativeView::CalenNativeView(MCalenServices &services) : |
52 CalenNativeView::CalenNativeView(MCalenServices &services) : |
53 mServices(services), mIsCapturedScreenShotValid(false) |
53 mServices(services), mIsCapturedScreenShotValid(false), |
|
54 mEntriesInDataBase(false) |
54 { |
55 { |
55 OstTraceFunctionEntry0( CALENNATIVEVIEW_CALENNATIVEVIEW_ENTRY ); |
56 OstTraceFunctionEntry0( CALENNATIVEVIEW_CALENNATIVEVIEW_ENTRY ); |
56 |
57 |
57 setTitle(hbTrId("txt_calendar_title_calendar")); |
58 setTitle(hbTrId("txt_calendar_title_calendar")); |
58 |
59 |
112 void CalenNativeView::deleteAllEntries() |
113 void CalenNativeView::deleteAllEntries() |
113 { |
114 { |
114 OstTraceFunctionEntry0( CALENNATIVEVIEW_DELETEALLENTRIES_ENTRY ); |
115 OstTraceFunctionEntry0( CALENNATIVEVIEW_DELETEALLENTRIES_ENTRY ); |
115 |
116 |
116 mServices.IssueCommandL(ECalenDeleteAllEntries); |
117 mServices.IssueCommandL(ECalenDeleteAllEntries); |
|
118 mEntriesInDataBase = false; |
117 |
119 |
118 OstTraceFunctionExit0( CALENNATIVEVIEW_DELETEALLENTRIES_EXIT ); |
120 OstTraceFunctionExit0( CALENNATIVEVIEW_DELETEALLENTRIES_EXIT ); |
119 } |
121 } |
120 |
122 |
121 /*! |
123 /*! |
222 |
224 |
223 switch (notification) { |
225 switch (notification) { |
224 case ECalenNotifySystemLocaleChanged: { |
226 case ECalenNotifySystemLocaleChanged: { |
225 onLocaleChanged(EChangesLocale); |
227 onLocaleChanged(EChangesLocale); |
226 } |
228 } |
227 break; |
229 break; |
|
230 case ECalenNotifySystemTimeChanged: { |
|
231 onLocaleChanged(EChangesSystemTime); |
|
232 } |
|
233 break; |
228 case ECalenNotifyContextChanged: { |
234 case ECalenNotifyContextChanged: { |
229 onContextChanged(); |
235 onContextChanged(); |
230 } |
236 } |
231 break; |
237 break; |
232 default: |
238 default: |