equal
deleted
inserted
replaced
706 notificationArray.Append(ECalenNotifyDeleteInstanceView); |
706 notificationArray.Append(ECalenNotifyDeleteInstanceView); |
707 notificationArray.Append(ECalenNotifyStopAlarm); |
707 notificationArray.Append(ECalenNotifyStopAlarm); |
708 notificationArray.Append(ECalenNotifyDeleteFailed); |
708 notificationArray.Append(ECalenNotifyDeleteFailed); |
709 notificationArray.Append(ECalenNotifyEntryDeleted); |
709 notificationArray.Append(ECalenNotifyEntryDeleted); |
710 notificationArray.Append(ECalenNotifyResourceChanged); |
710 notificationArray.Append(ECalenNotifyResourceChanged); |
|
711 notificationArray.Append(ECalenNotifyEventViewLaunchedFromAlarm); |
711 |
712 |
712 iServices.RegisterForNotificationsL( this,notificationArray); |
713 iServices.RegisterForNotificationsL( this,notificationArray); |
713 |
714 |
714 notificationArray.Reset(); |
715 notificationArray.Reset(); |
|
716 |
|
717 iIgnoreTap = EFalse; |
715 |
718 |
716 iCommandProcessing = EFalse; |
719 iCommandProcessing = EFalse; |
717 TCallBack callback(CCalenNativeView::AsyncCopyToCalendarsL,this); |
720 TCallBack callback(CCalenNativeView::AsyncCopyToCalendarsL,this); |
718 iAsyncCallback = new(ELeave) CAsyncCallBack(callback,CActive::EPriorityStandard); |
721 iAsyncCallback = new(ELeave) CAsyncCallBack(callback,CActive::EPriorityStandard); |
719 |
722 |
1072 } |
1075 } |
1073 break; |
1076 break; |
1074 case ECalenNotifySystemTimeChanged: |
1077 case ECalenNotifySystemTimeChanged: |
1075 { |
1078 { |
1076 PIM_TRAPD_HANDLE( OnLocaleChangedL( EChangesSystemTime ) ); |
1079 PIM_TRAPD_HANDLE( OnLocaleChangedL( EChangesSystemTime ) ); |
|
1080 } |
|
1081 break; |
|
1082 case ECalenNotifyEventViewLaunchedFromAlarm: |
|
1083 { |
|
1084 SetTapIgnore(ETrue); |
1077 } |
1085 } |
1078 break; |
1086 break; |
1079 case ECalenNotifyEntryClosed: |
1087 case ECalenNotifyEntryClosed: |
1080 { |
1088 { |
1081 // The editor/ viewer is changed |
1089 // The editor/ viewer is changed |
1309 // ---------------------------------------------------------------------------- |
1317 // ---------------------------------------------------------------------------- |
1310 // |
1318 // |
1311 void CCalenNativeView::OnEditorClosedL() |
1319 void CCalenNativeView::OnEditorClosedL() |
1312 { |
1320 { |
1313 TRACE_ENTRY_POINT; |
1321 TRACE_ENTRY_POINT; |
|
1322 |
|
1323 SetTapIgnore(EFalse); |
1314 // If the view is active, then update status pane |
1324 // If the view is active, then update status pane |
1315 if( Container() ) |
1325 if( Container() ) |
1316 { |
1326 { |
1317 RedrawStatusPaneL(); |
1327 RedrawStatusPaneL(); |
1318 iIsEditorActive = EFalse; |
1328 iIsEditorActive = EFalse; |
1348 return iCommandProcessing; |
1358 return iCommandProcessing; |
1349 |
1359 |
1350 TRACE_EXIT_POINT; |
1360 TRACE_EXIT_POINT; |
1351 } |
1361 } |
1352 |
1362 |
|
1363 // ---------------------------------------------------------------------------- |
|
1364 // CCalenNativeView::IsEventViewLaunchedFromAlarm |
|
1365 // other details are commented in the header |
|
1366 // ---------------------------------------------------------------------------- |
|
1367 // |
|
1368 TBool CCalenNativeView::IsEventViewLaunchedFromAlarm() |
|
1369 { |
|
1370 TRACE_ENTRY_POINT; |
|
1371 return iIgnoreTap; |
|
1372 TRACE_EXIT_POINT; |
|
1373 } |
1353 // ---------------------------------------------------------------------------- |
1374 // ---------------------------------------------------------------------------- |
1354 // CCalenNativeView::SetCommandHandlingProgress |
1375 // CCalenNativeView::SetCommandHandlingProgress |
1355 // other details are commented in the header |
1376 // other details are commented in the header |
1356 // ---------------------------------------------------------------------------- |
1377 // ---------------------------------------------------------------------------- |
1357 // |
1378 // |
1426 TRACE_EXIT_POINT; |
1447 TRACE_EXIT_POINT; |
1427 return EFalse; |
1448 return EFalse; |
1428 } |
1449 } |
1429 } |
1450 } |
1430 |
1451 |
|
1452 // ---------------------------------------------------------------------------- |
|
1453 // CCalenNativeView::SetTapIgnore |
|
1454 // Sets flag to ignore tap on any of the views |
|
1455 // (other items were commented in a header). |
|
1456 // ---------------------------------------------------------------------------- |
|
1457 // |
|
1458 void CCalenNativeView::SetTapIgnore(TBool aIgnore) |
|
1459 { |
|
1460 iIgnoreTap = aIgnore; |
|
1461 } |
|
1462 |
1431 // End of File |
1463 // End of File |