phoneapp/phoneuicontrol/src/cphonestatestartup.cpp
changeset 76 cfea66083b62
parent 74 d1c62c765e48
equal deleted inserted replaced
74:d1c62c765e48 76:cfea66083b62
   197         SetDefaultFlagsL();
   197         SetDefaultFlagsL();
   198         iStateMachine->ChangeState( EPhoneStateIdle );
   198         iStateMachine->ChangeState( EPhoneStateIdle );
   199         }
   199         }
   200     }
   200     }
   201 
   201 
   202 // ---------------------------------------------------------
       
   203 // CPhoneStateStartup::HandleIdleForegroundEventL
       
   204 // Phone should show security note asap. 
       
   205 // Active idle might be in front quite early if f.e. rejected SIM 
       
   206 // ---------------------------------------------------------
       
   207 //
       
   208 EXPORT_C void CPhoneStateStartup::HandleIdleForegroundEventL()
       
   209     {
       
   210     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateStartup::HandleIdleForegroundEventL( ) ");
       
   211     TPhoneCmdParamBoolean isSecurityMode;      
       
   212     iViewCommandHandle->ExecuteCommandL( EPhoneViewGetSecurityModeStatus, &isSecurityMode );
       
   213     if ( !isSecurityMode.Boolean() && !IsSimOk() )
       
   214         {
       
   215         TPhoneCmdParamBoolean securityMode;
       
   216         securityMode.SetBoolean( ETrue );
       
   217         iViewCommandHandle->ExecuteCommandL( EPhoneViewSetSecurityMode, &securityMode );
       
   218         iCreateNote = CIdle::NewL( CActive::EPriorityHigh );
       
   219         
       
   220         CreateAndShowNoteAfterIdle(); 
       
   221         }
       
   222     }
       
   223 
       
   224 // -----------------------------------------------------------------------------
   202 // -----------------------------------------------------------------------------
   225 // CPhoneStateStartup::CreateAndShowNoteAfterIdle
   203 // CPhoneStateStartup::CreateAndShowNoteAfterIdle
   226 //
   204 //
   227 // Callback function.
   205 // Callback function.
   228 // -----------------------------------------------------------------------------
   206 // -----------------------------------------------------------------------------