calendarui/views/src/calennativeview.cpp
branchRCL_3
changeset 23 51372538e3d3
parent 18 d68a4b5d5885
child 28 96907930389d
equal deleted inserted replaced
22:07e82e2b738b 23:51372538e3d3
   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     
   795 	    {
   796 	    {
   796 	    SetFasterAppActive(ETrue);
   797 	    SetFasterAppActive(ETrue);
   797 	    DoDeactivate();	
   798 	    DoDeactivate();	
   798 	    }
   799 	    }
   799 
   800 
   800     if (!iNaviContainer)
   801      if( AknLayoutUtils::PenEnabled() )
   801         {
       
   802         CEikStatusPane* sp = StatusPane();
       
   803         iNaviContainer =
       
   804             static_cast<CAknNavigationControlContainer*>(
       
   805                         sp->ControlL(TUid::Uid(EEikStatusPaneUidNavi)));
       
   806         }
       
   807 
       
   808     iNaviContainer->Pop();
       
   809 
       
   810     if( AknLayoutUtils::PenEnabled() )
       
   811         {
   802         {
   812         MCalenToolbar* toolbarImpl = iServices.ToolbarOrNull();
   803         MCalenToolbar* toolbarImpl = iServices.ToolbarOrNull();
   813         if(toolbarImpl)
   804         if(toolbarImpl)
   814             {
   805             {
   815             CAknToolbar& toolbar = toolbarImpl->Toolbar();
   806             CAknToolbar& toolbar = toolbarImpl->Toolbar();
  1172                 {
  1163                 {
  1173                 PIM_TRAPD_HANDLE(iContainer->HandleStopCommandL());
  1164                 PIM_TRAPD_HANDLE(iContainer->HandleStopCommandL());
  1174                 }
  1165                 }
  1175             }
  1166             }
  1176             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;
  1177         default:
  1181         default:
  1178             ASSERT( 0 ); // should never get here
  1182             ASSERT( 0 ); // should never get here
  1179             break;
  1183             break;
  1180         }
  1184         }
  1181 
  1185