calendarui/views/src/calennativeview.cpp
branchRCL_3
changeset 30 d68a4b5d5885
parent 27 55d60436f00b
child 60 96907930389d
equal deleted inserted replaced
27:55d60436f00b 30:d68a4b5d5885
   705     notificationArray.Append(ECalenNotifyMarkedEntryCompleted);
   705     notificationArray.Append(ECalenNotifyMarkedEntryCompleted);
   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 	
   711 	
   711     iServices.RegisterForNotificationsL( this,notificationArray);
   712     iServices.RegisterForNotificationsL( this,notificationArray);
   712     
   713     
   713     notificationArray.Reset();
   714     notificationArray.Reset();
   714     
   715     
  1162                 {
  1163                 {
  1163                 PIM_TRAPD_HANDLE(iContainer->HandleStopCommandL());
  1164                 PIM_TRAPD_HANDLE(iContainer->HandleStopCommandL());
  1164                 }
  1165                 }
  1165             }
  1166             }
  1166             break;
  1167             break;
       
  1168 		case ECalenNotifyResourceChanged:
       
  1169 		    {
       
  1170 		    if(iContainer )
       
  1171 		        {
       
  1172                 CAknAppUi* Appui = (CAknAppUi*)CEikonEnv::Static()->EikAppUi();
       
  1173                 //handle this event when the app is in background
       
  1174                 if(!Appui->IsForeground())
       
  1175                     {
       
  1176                     iContainer->HandleResourceChange(KEikDynamicLayoutVariantSwitch);
       
  1177                     }
       
  1178 		        }
       
  1179 		    }
       
  1180 		    break;
  1167         default:
  1181         default:
  1168             ASSERT( 0 ); // should never get here
  1182             ASSERT( 0 ); // should never get here
  1169             break;
  1183             break;
  1170         }
  1184         }
  1171 
  1185