calendarui/controller/src/calencmdlinelauncher.cpp
branchRCL_3
changeset 31 97232defd20e
parent 30 bd7edf625bdd
equal deleted inserted replaced
30:bd7edf625bdd 31:97232defd20e
   259           	GfxTransEffect::BeginFullScreen( AknTransEffect::EApplicationStart,TRect(), AknTransEffect::EParameterType, AknTransEffect::GfxTransParam(KCalendarUid,
   259           	GfxTransEffect::BeginFullScreen( AknTransEffect::EApplicationStart,TRect(), AknTransEffect::EParameterType, AknTransEffect::GfxTransParam(KCalendarUid,
   260           	AknTransEffect::TParameter::EActivateExplicitContinue ) );
   260           	AknTransEffect::TParameter::EActivateExplicitContinue ) );
   261           	
   261           	
   262             if( iController.ViewManager().ViewsActivated() )
   262             if( iController.ViewManager().ViewsActivated() )
   263                 {
   263                 {
       
   264                 if(command == ECalenDayView)
       
   265                     {
       
   266                     iController.BroadcastNotification(ECalenNotifyCalenLaunchedFromExtApp);
       
   267                     }
   264                 iController.IssueCommandL( command );
   268                 iController.IssueCommandL( command );
   265                 iController.SetLaunchFromExternalApp( ETrue );
   269                 iController.SetLaunchFromExternalApp( ETrue );
   266                 }
   270                 }
   267             else
   271             else
   268                 {
   272                 {
   292         		)
   296         		)
   293         		{
   297         		{
   294 		        if( iCmdParameters.iCommandType == CCalenCmdLineParser::EStartTypeUidAlarmViewer )
   298 		        if( iCmdParameters.iCommandType == CCalenCmdLineParser::EStartTypeUidAlarmViewer )
   295               		{
   299               		{
   296                     //When event viewer launched from alarm only we need to ignore tap. (ETrue)     
   300                     //When event viewer launched from alarm only we need to ignore tap. (ETrue)     
   297 		            iController.BroadcastNotification(ECalenNotifyEventViewLaunchedFromAlarm);
   301 		            iController.BroadcastNotification(ECalenNotifyCalenLaunchedFromExtApp);
   298               		if(! iController.ViewManager().ViewsActivated() )                    
   302               		if(! iController.ViewManager().ViewsActivated() )                    
   299                         {
   303                         {
   300                         iController.ViewManager().ActivateDefaultViewL( KUidCalenEventView); 
   304                         iController.ViewManager().ActivateDefaultViewL( KUidCalenEventView); 
   301                         }
   305                         }
   302                         // start in alarm viewer mode
   306                         // start in alarm viewer mode
   303                         iController.IssueCommandL( ECalenEventViewFromAlarm );
   307                         iController.IssueCommandL( ECalenEventViewFromAlarm );
   304                     }
   308                     }
   305                 else if( iCmdParameters.iCommandType == CCalenCmdLineParser::EStartTypeUidAlarmViewerNoSnooze )
   309                 else if( iCmdParameters.iCommandType == CCalenCmdLineParser::EStartTypeUidAlarmViewerNoSnooze )
   306                     {
   310                     {
   307                     //When event viewer launched from alarm only we need to ignore tap. (ETrue)     
   311                     //When event viewer launched from alarm only we need to ignore tap. (ETrue)     
   308                     iController.BroadcastNotification(ECalenNotifyEventViewLaunchedFromAlarm);
   312                     iController.BroadcastNotification(ECalenNotifyCalenLaunchedFromExtApp);
   309                     if(! iController.ViewManager().ViewsActivated() )                    
   313                     if(! iController.ViewManager().ViewsActivated() )                    
   310                         {
   314                         {
   311                         iController.ViewManager().ActivateDefaultViewL( KUidCalenEventView);   
   315                         iController.ViewManager().ActivateDefaultViewL( KUidCalenEventView);   
   312                         }                    
   316                         }                    
   313                     // start in alarm viewer mode (snooze key not available)
   317                     // start in alarm viewer mode (snooze key not available)