phoneapp/phoneuicontrol/src/cphonestatestartup.cpp
branchRCL_3
changeset 23 40a3f856b14d
parent 9 91c2fb4b78df
child 24 41a7f70b3818
equal deleted inserted replaced
22:94dc1107e8b2 23:40a3f856b14d
   210     {
   210     {
   211     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateStartup::HandlePhoneStartupL() ");
   211     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateStartup::HandlePhoneStartupL() ");
   212     // Indicate that the phone is ready
   212     // Indicate that the phone is ready
   213     iPhoneReady = ETrue;
   213     iPhoneReady = ETrue;
   214 
   214 
       
   215     // Sim security status is available at this phase.
       
   216     iStateMachine->SecurityMode()->Initialize();
       
   217     if ( !IsSimOk() )
       
   218         {
       
   219         iCreateNote = CIdle::NewL( CActive::EPriorityHigh );
       
   220         CreateAndShowNoteAfterIdle(); 
       
   221         }
       
   222     
   215     // Only go to idle state when Phone engine is also ready
   223     // Only go to idle state when Phone engine is also ready
   216     if ( iPEReady )
   224     if ( iPEReady )
   217         {
   225         {
   218         InitializationReadyL();
   226         InitializationReadyL();
   219         }
   227         }
   274 // -----------------------------------------------------------------------------
   282 // -----------------------------------------------------------------------------
   275 //
   283 //
   276 void CPhoneStateStartup::InitializationReadyL()
   284 void CPhoneStateStartup::InitializationReadyL()
   277     {
   285     {
   278     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateStartup::InitializationReady() ");
   286     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateStartup::InitializationReady() ");
   279     iStateMachine->SecurityMode()->Initialize();
       
   280     if ( !IsSimOk() )
       
   281         {
       
   282         iCreateNote = CIdle::NewL( CActive::EPriorityHigh );
       
   283         CreateAndShowNoteAfterIdle(); 
       
   284         }
       
   285     // Go to idle state
   287     // Go to idle state
   286     SetDefaultFlagsL();
   288     SetDefaultFlagsL();
   287     iCbaManager->UpdateCbaL( EPhoneEmptyCBA );
   289     iCbaManager->UpdateCbaL( EPhoneEmptyCBA );
   288     iViewCommandHandle->ExecuteCommand( EPhoneViewPrepareIcons );
   290     iViewCommandHandle->ExecuteCommand( EPhoneViewPrepareIcons );
   289     iViewCommandHandle->ExecuteCommand( EPhoneViewLoadPlugins );
   291     iViewCommandHandle->ExecuteCommand( EPhoneViewLoadPlugins );