104 __LOGMETHODSTARTEND( EPhoneUIStates, |
104 __LOGMETHODSTARTEND( EPhoneUIStates, |
105 "CPhoneAlerting::HandleKeyMessageL()"); |
105 "CPhoneAlerting::HandleKeyMessageL()"); |
106 switch ( aCode ) |
106 switch ( aCode ) |
107 { |
107 { |
108 case EKeyYes: // send-key |
108 case EKeyYes: // send-key |
109 if ( IsNumberEntryUsedL() ) |
109 if ( iNumberEntryManager->IsNumberEntryUsedL() ) |
110 { |
110 { |
111 CallFromNumberEntryL(); |
111 iNumberEntryManager->CallFromNumberEntryL(); |
112 } |
112 } |
113 else |
113 else |
114 { |
114 { |
115 SendGlobalErrorNoteL( |
115 SendGlobalErrorNoteL( |
116 EPhoneNoteTextNotAllowed, ETrue ); |
116 EPhoneNoteTextNotAllowed, ETrue ); |
120 case EKeyNo: // end-key |
120 case EKeyNo: // end-key |
121 if ( aMessage == EPhoneKeyLongPress ) |
121 if ( aMessage == EPhoneKeyLongPress ) |
122 { |
122 { |
123 iStateMachine->SendPhoneEngineMessage( |
123 iStateMachine->SendPhoneEngineMessage( |
124 MPEPhoneModel::EPEMessageTerminateAllConnections ); |
124 MPEPhoneModel::EPEMessageTerminateAllConnections ); |
125 if ( IsNumberEntryUsedL() ) |
125 if ( iNumberEntryManager->IsNumberEntryUsedL() ) |
126 { |
126 { |
127 iViewCommandHandle->ExecuteCommandL( |
127 iViewCommandHandle->ExecuteCommandL( |
128 EPhoneViewRemoveNumberEntry ); |
128 EPhoneViewRemoveNumberEntry ); |
129 // Do state-specific operation when number entry is cleared |
129 // Do state-specific operation when number entry is cleared |
130 HandleNumberEntryClearedL(); |
130 HandleNumberEntryClearedL(); |
131 } |
|
132 if ( !TopAppIsDisplayedL() ) |
|
133 { |
|
134 TPhoneCmdParamInteger uidParam; |
|
135 uidParam.SetInteger( KUidPhoneApplication.iUid ); |
|
136 iViewCommandHandle->ExecuteCommandL( |
|
137 EPhoneViewBringAppToForeground, &uidParam ); |
|
138 } |
131 } |
139 } |
132 } |
140 else // handle short end key |
133 else // handle short end key |
141 { |
134 { |
142 DisconnectOutgoingCallL(); |
135 DisconnectOutgoingCallL(); |
218 // |
211 // |
219 EXPORT_C void CPhoneAlerting::HandleConnectedL( TInt aCallId ) |
212 EXPORT_C void CPhoneAlerting::HandleConnectedL( TInt aCallId ) |
220 { |
213 { |
221 __LOGMETHODSTARTEND( EPhoneUIStates, |
214 __LOGMETHODSTARTEND( EPhoneUIStates, |
222 "CPhoneAlerting::HandleConnectedL()"); |
215 "CPhoneAlerting::HandleConnectedL()"); |
223 TPhoneCmdParamBoolean booleanParam; |
|
224 booleanParam.SetBoolean( EFalse ); |
|
225 iViewCommandHandle->ExecuteCommandL( |
|
226 EPhoneViewSetNeedToSendToBackgroundStatus, &booleanParam ); |
|
227 BeginUiUpdateLC(); |
216 BeginUiUpdateLC(); |
228 UpdateSingleActiveCallL( aCallId ); |
217 UpdateSingleActiveCallL( aCallId ); |
229 SetTouchPaneButtons( EPhoneIncallButtons ); |
218 UpdateUiCommands(); |
230 EndUiUpdate(); |
219 EndUiUpdate(); |
231 UpdateCbaL( EPhoneCallHandlingInCallCBA ); |
|
232 iStateMachine->ChangeState( EPhoneStateSingle ); |
220 iStateMachine->ChangeState( EPhoneStateSingle ); |
233 } |
221 } |
234 |
222 |
235 // ----------------------------------------------------------- |
223 // ----------------------------------------------------------- |
236 // CPhoneAlerting::HandleCommandL |
224 // CPhoneAlerting::HandleCommandL |