118 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandleKeyMessageL() "); |
118 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandleKeyMessageL() "); |
119 switch ( aCode ) |
119 switch ( aCode ) |
120 { |
120 { |
121 // send-key |
121 // send-key |
122 case EKeyYes: |
122 case EKeyYes: |
123 if( IsNumberEntryVisibleL() ) |
123 if( IsNumberEntryVisibleL() ) |
124 { |
124 { |
125 CPhoneState::CallFromNumberEntryL(); |
125 CPhoneState::CallFromNumberEntryL(); |
126 } |
126 } |
127 else |
127 else |
128 { |
128 { |
129 // Number entry is behind waiting call bubble |
129 // Number entry is behind waiting call bubble |
130 // We can't answer to waiting call in this state |
130 // We can't answer to waiting call in this state |
131 // so display Not allowed -note. |
131 // so display Not allowed -note. |
132 CPhoneState::SendGlobalErrorNoteL( |
132 CPhoneState::SendGlobalErrorNoteL( |
133 EPhoneNoteTextNotAllowed ); |
133 EPhoneNoteTextNotAllowed ); |
134 } |
134 } |
135 break; |
135 break; |
136 |
136 |
137 // end-key |
137 // end-key |
138 case EKeyNo: |
138 case EKeyNo: |
139 if ( aMessage == EPhoneKeyLongPress ) |
139 if ( aMessage == EPhoneKeyLongPress ) |
195 { |
195 { |
196 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandlePhoneEngineMessageL() "); |
196 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandlePhoneEngineMessageL() "); |
197 switch ( aMessage ) |
197 switch ( aMessage ) |
198 { |
198 { |
199 case MEngineMonitor::EPEMessageConnecting: |
199 case MEngineMonitor::EPEMessageConnecting: |
200 { |
|
201 iAlerting = ETrue; |
200 iAlerting = ETrue; |
202 HandleConnectingL( aCallId ); |
201 HandleConnectingL( aCallId ); |
203 } |
|
204 break; |
202 break; |
205 |
203 |
206 case MEngineMonitor::EPEMessageConnected: |
204 case MEngineMonitor::EPEMessageConnected: |
207 { |
|
208 HandleConnectedL( aCallId ); |
205 HandleConnectedL( aCallId ); |
209 } |
|
210 break; |
206 break; |
211 |
207 |
212 case MEngineMonitor::EPEMessageIdle: |
208 case MEngineMonitor::EPEMessageIdle: |
213 { |
|
214 HandleIdleL( aCallId ); |
209 HandleIdleL( aCallId ); |
215 } |
|
216 break; |
210 break; |
217 |
211 |
218 case MEngineMonitor::EPEMessageRemoteBusy: |
212 case MEngineMonitor::EPEMessageRemoteBusy: |
219 { |
|
220 // If call setup failed then stop capturing keys. |
213 // If call setup failed then stop capturing keys. |
221 // Flow through to default branch. |
214 // Flow through to default branch. |
222 CaptureKeysDuringCallNotificationL( EFalse ); |
215 CaptureKeysDuringCallNotificationL( EFalse ); |
223 } |
|
224 |
|
225 case MEngineMonitor::EPEMessageColpNumberAvailable: |
|
226 { |
|
227 HandleColpNoteL( aCallId ); |
|
228 } |
|
229 break; |
|
230 default: |
216 default: |
231 { |
|
232 CPhoneGsmInCall::HandlePhoneEngineMessageL( aMessage, aCallId ); |
217 CPhoneGsmInCall::HandlePhoneEngineMessageL( aMessage, aCallId ); |
233 } |
|
234 break; |
218 break; |
235 } |
219 } |
236 } |
220 } |
237 |
221 |
238 |
222 |
463 if ( !iOnScreenDialer || !IsNumberEntryVisibleL() || !IsDTMFEditorVisibleL() ) |
447 if ( !iOnScreenDialer || !IsNumberEntryVisibleL() || !IsDTMFEditorVisibleL() ) |
464 { |
448 { |
465 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); |
449 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); |
466 } |
450 } |
467 |
451 |
|
452 HandleColpNoteL( aCallId ); |
|
453 |
468 if ( aCallId != iWaitingCallId ) |
454 if ( aCallId != iWaitingCallId ) |
469 { |
455 { |
470 // Alerting call is connected |
456 // Alerting call is connected |
471 StateChangeToTwoSinglesAndWaitingL( aCallId ); |
457 StateChangeToTwoSinglesAndWaitingL( aCallId ); |
472 } |
458 } |
574 BeginUiUpdateLC(); |
560 BeginUiUpdateLC(); |
575 |
561 |
576 SetTouchPaneButtons( EPhoneCallSetupButtons ); |
562 SetTouchPaneButtons( EPhoneCallSetupButtons ); |
577 |
563 |
578 EndUiUpdate(); |
564 EndUiUpdate(); |
579 // Go to Single And Alerting state |
565 // Go to Single And Alerting state |
580 UpdateCbaL( EPhoneCallHandlingInCallCBA ); |
566 UpdateCbaL( EPhoneCallHandlingInCallCBA ); |
581 iStateMachine->ChangeState( EPhoneStateAlertingInSingle ); |
567 iStateMachine->ChangeState( EPhoneStateAlertingInSingle ); |
582 } |
568 } |
583 |
569 |
584 // ----------------------------------------------------------- |
570 // ----------------------------------------------------------- |
585 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL |
571 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL |
586 // ----------------------------------------------------------- |
572 // ----------------------------------------------------------- |
587 // |
573 // |
588 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL( TInt aCallId ) |
574 // <-- QT PHONE START --> |
|
575 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL( TInt /*aCallId*/ ) |
|
576 // <-- QT PHONE END --> |
589 { |
577 { |
590 __LOGMETHODSTARTEND( EPhoneUIStates, |
578 __LOGMETHODSTARTEND( EPhoneUIStates, |
591 "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL()"); |
579 "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL()"); |
592 |
580 |
593 BeginUiUpdateLC(); |
581 BeginUiUpdateLC(); |
594 |
582 |
595 SetTouchPaneButtonEnabled( EPhoneCallComingCmdAnswer ); |
583 SetTouchPaneButtonEnabled( EPhoneCallComingCmdAnswer ); |
596 SetTouchPaneButtons( EPhoneTwoSinglesButtons ); |
584 SetTouchPaneButtons( EPhoneTwoSinglesButtons ); |
604 |
592 |
605 // ----------------------------------------------------------- |
593 // ----------------------------------------------------------- |
606 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL |
594 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL |
607 // ----------------------------------------------------------- |
595 // ----------------------------------------------------------- |
608 // |
596 // |
609 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL( TInt aCallId ) |
597 // <-- QT PHONE START --> |
|
598 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL( TInt /*aCallId*/ ) |
|
599 // <-- QT PHONE END --> |
610 { |
600 { |
611 __LOGMETHODSTARTEND( EPhoneUIStates, |
601 __LOGMETHODSTARTEND( EPhoneUIStates, |
612 "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL()"); |
602 "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL()"); |
613 |
603 |
614 BeginUiUpdateLC(); |
604 BeginUiUpdateLC(); |
615 |
605 |
616 SetTouchPaneButtons( EPhoneWaitingCallButtons ); |
606 SetTouchPaneButtons( EPhoneWaitingCallButtons ); |
617 SetTouchPaneButtonDisabled( EPhoneCallComingCmdAnswer ); |
607 SetTouchPaneButtonDisabled( EPhoneCallComingCmdAnswer ); |