phoneapp/phoneuicontrol/src/cphonestatestartup.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 22 6bb1b21d2484
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
    70             &boolean );
    70             &boolean );
    71 
    71 
    72     // CAPTURE KEY EVENTS PERMANENTLY
    72     // CAPTURE KEY EVENTS PERMANENTLY
    73         
    73         
    74     // Capture the up and down events for the No key
    74     // Capture the up and down events for the No key
    75     TPhoneCmdParamKeyCapture noKeyCaptureParam;
    75     /*TPhoneCmdParamKeyCapture noKeyCaptureParam;
    76     noKeyCaptureParam.SetKey( EStdKeyNo );
    76     noKeyCaptureParam.SetKey( EStdKeyNo );
    77     noKeyCaptureParam.SetKeyCode( EKeyNo );
    77     noKeyCaptureParam.SetKeyCode( EKeyNo );
    78     noKeyCaptureParam.SetCaptureType( EPhoneKeyAllEvents );
    78     noKeyCaptureParam.SetCaptureType( EPhoneKeyAllEvents );
    79     iViewCommandHandle->ExecuteCommandL( EPhoneViewStartCapturingKey, 
    79     iViewCommandHandle->ExecuteCommandL( EPhoneViewStartCapturingKey, 
    80         &noKeyCaptureParam );
    80         &noKeyCaptureParam );*/
    81           
    81           
    82     // Capture the up and down events for the EStdKeyEnd key
    82     // Capture the up and down events for the EStdKeyEnd key
    83     TPhoneCmdParamKeyCapture endKeyCaptureParam;
    83     /*TPhoneCmdParamKeyCapture endKeyCaptureParam;
    84     endKeyCaptureParam.SetKey( EStdKeyEnd );
    84     endKeyCaptureParam.SetKey( EStdKeyEnd );
    85     endKeyCaptureParam.SetKeyCode( EKeyEnd );
    85     endKeyCaptureParam.SetKeyCode( EKeyEnd );
    86     endKeyCaptureParam.SetCaptureType( EPhoneKeyAllEvents );
    86     endKeyCaptureParam.SetCaptureType( EPhoneKeyAllEvents );
    87     iViewCommandHandle->ExecuteCommandL( EPhoneViewStartCapturingKey, 
    87     iViewCommandHandle->ExecuteCommandL( EPhoneViewStartCapturingKey, 
    88         &endKeyCaptureParam );
    88         &endKeyCaptureParam );*/
    89     }
    89     }
    90 
    90 
    91 // -----------------------------------------------------------
    91 // -----------------------------------------------------------
    92 // CPhoneStateStartup::NewL()
    92 // CPhoneStateStartup::NewL()
    93 // Constructor
    93 // Constructor
   180     // If a key event is received in this state, either the phone engine
   180     // If a key event is received in this state, either the phone engine
   181     // is not ready or the phone has not started up yet. Display an error note
   181     // is not ready or the phone has not started up yet. Display an error note
   182     // if the phone engine is not ready.
   182     // if the phone engine is not ready.
   183     if ( iPhoneReady && !iPEReady )
   183     if ( iPhoneReady && !iPEReady )
   184         {
   184         {
   185         SendGlobalErrorNoteL( EPhoneNoteTextPEFailedAtStartup );
   185         SendGlobalErrorNoteL( EPhoneNoteTextPEFailedAtStartup, ETrue );
   186         }
   186         }
   187     }
   187     }
   188 
   188 
   189 // -----------------------------------------------------------
   189 // -----------------------------------------------------------
   190 // CPhoneStateStartup::HandleKeyEventL
   190 // CPhoneStateStartup::HandleKeyEventL