calendarui/views/src/calenmissedeventview.cpp
branchRCL_3
changeset 27 55d60436f00b
parent 21 9711e452b5e9
child 36 9c5b1510919f
equal deleted inserted replaced
21:9711e452b5e9 27:55d60436f00b
   149         case EPopulationDone: 
   149         case EPopulationDone: 
   150         default:    
   150         default:    
   151         	{
   151         	{
   152         	cnt->CompletePopulationL();
   152         	cnt->CompletePopulationL();
   153         	RedrawStatusPaneL();
   153         	RedrawStatusPaneL();
       
   154         	
       
   155         	//no tool bar in missed event view
       
   156         	MCalenToolbar* toolbar = iServices.ToolbarOrNull(); 
       
   157         	    if(toolbar && toolbar->IsVisible())
       
   158         	      {
       
   159         	      toolbar->SetToolbarVisibilityL(EFalse);  
       
   160         	      } 
   154         	nextStep = CCalenView::EDone;
   161         	nextStep = CCalenView::EDone;
   155         	}
   162         	}
   156         	break;
   163         	break;
   157         }
   164         }
   158     TRACE_EXIT_POINT;  
   165     TRACE_EXIT_POINT;  
   232             }
   239             }
   233         CleanupStack::PopAndDestroy( temp );
   240         CleanupStack::PopAndDestroy( temp );
   234         }
   241         }
   235     
   242     
   236     UpdateCbaL();
   243     UpdateCbaL();
   237     //no tool bar in missed event view
   244     
       
   245    
       
   246     TRACE_EXIT_POINT;
       
   247     }
       
   248 
       
   249 // ----------------------------------------------------------------------------
       
   250 // CCalenMissedEventView::DoDeactivateImpl
       
   251 // Take action before deactivating the view
       
   252 // ----------------------------------------------------------------------------
       
   253 //
       
   254 void CCalenMissedEventView::DoDeactivateImpl()
       
   255     {
       
   256     TRACE_ENTRY_POINT;
       
   257     
       
   258     iPreviousViewId.iViewUid = KNullUid;
   238     MCalenToolbar* toolbar = iServices.ToolbarOrNull(); 
   259     MCalenToolbar* toolbar = iServices.ToolbarOrNull(); 
   239     if(toolbar)
   260     if(toolbar)
   240       {
   261         {
   241       toolbar->SetToolbarVisibilityL(EFalse);  
   262         toolbar->SetToolbarVisibilityL(ETrue);  
   242       } 
   263         }
   243    
       
   244     TRACE_EXIT_POINT;
       
   245     }
       
   246 
       
   247 // ----------------------------------------------------------------------------
       
   248 // CCalenMissedEventView::DoDeactivateImpl
       
   249 // Take action before deactivating the view
       
   250 // ----------------------------------------------------------------------------
       
   251 //
       
   252 void CCalenMissedEventView::DoDeactivateImpl()
       
   253     {
       
   254     TRACE_ENTRY_POINT;
       
   255     
       
   256     iPreviousViewId.iViewUid = KNullUid;
       
   257 
   264 
   258         
   265         
   259     TRACE_EXIT_POINT;
   266     TRACE_EXIT_POINT;
   260     }
   267     }
   261 
   268 
   314         	}
   321         	}
   315             break;
   322             break;
   316         case EAknSoftkeyClose:   
   323         case EAknSoftkeyClose:   
   317         case EAknSoftkeyBack:
   324         case EAknSoftkeyBack:
   318 			{
   325 			{
   319 			MCalenToolbar* toolbar = iServices.ToolbarOrNull(); 
   326 		
   320             if(toolbar)
       
   321              {
       
   322              toolbar->SetToolbarVisibilityL(ETrue);  
       
   323              } 
       
   324 	        iServices.IssueNotificationL(ECalenNotifyMissedEventViewClosed);
   327 	        iServices.IssueNotificationL(ECalenNotifyMissedEventViewClosed);
   325 			break;
   328 			break;
   326 			}
   329 			}
   327         case EAknSoftkeyExit: 
   330         case EAknSoftkeyExit: 
   328             {
   331             {
   329             MCalenToolbar* toolbar = iServices.ToolbarOrNull(); 
   332                       
   330             if(toolbar)
       
   331              {
       
   332              toolbar->SetToolbarVisibilityL(ETrue);  
       
   333              }             
       
   334             CCalenNativeView::HandleCommandL(aCommand);
   333             CCalenNativeView::HandleCommandL(aCommand);
   335             }
   334             }
   336             break;
   335             break;
   337         default:
   336         default:
   338             if(cnt->GetFindItemMenu()->CommandIsValidL(aCommand))
   337             if(cnt->GetFindItemMenu()->CommandIsValidL(aCommand))