equal
deleted
inserted
replaced
29 #include "tphonecmdparamstring.h" |
29 #include "tphonecmdparamstring.h" |
30 #include "tphonecmdparaminteger.h" |
30 #include "tphonecmdparaminteger.h" |
31 #include "tphonecmdparamboolean.h" |
31 #include "tphonecmdparamboolean.h" |
32 #include "tphonecmdparamemergencycallheaderdata.h" |
32 #include "tphonecmdparamemergencycallheaderdata.h" |
33 #include "tphonecmdparamcallheaderdata.h" |
33 #include "tphonecmdparamcallheaderdata.h" |
|
34 #include "tphonecmdparamkeycapture.h" |
34 #include "mphonestatemachine.h" |
35 #include "mphonestatemachine.h" |
35 #include "phonestatedefinitionsgsm.h" |
36 #include "phonestatedefinitionsgsm.h" |
36 #include "phoneviewcommanddefinitions.h" |
37 #include "phoneviewcommanddefinitions.h" |
37 #include "phoneui.hrh" |
38 #include "phoneui.hrh" |
38 #include "phonerssbase.h" |
39 #include "phonerssbase.h" |
180 { |
181 { |
181 UpdateSetupCbaL(); |
182 UpdateSetupCbaL(); |
182 } |
183 } |
183 } |
184 } |
184 break; |
185 break; |
|
186 |
|
187 case MEngineMonitor::EPEMessageColpNumberAvailable: |
|
188 //Don't show COLP note during emergency call. |
|
189 break; |
185 |
190 |
186 default: |
191 default: |
187 CPhoneGsmInCall::HandlePhoneEngineMessageL( |
192 CPhoneGsmInCall::HandlePhoneEngineMessageL( |
188 aMessage, aCallId ); |
193 aMessage, aCallId ); |
189 break; |
194 break; |
215 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
220 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
216 // Remove emergency connecting note if still there |
221 // Remove emergency connecting note if still there |
217 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNote ); |
222 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNote ); |
218 // Close menu bar, if it is displayed |
223 // Close menu bar, if it is displayed |
219 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); |
224 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); |
|
225 |
|
226 TPhoneCmdParamKeyCapture captureParam; |
|
227 captureParam.SetKeyCode( EKeyNo ); |
|
228 iViewCommandHandle->ExecuteCommand( |
|
229 EPhoneViewStopCapturingKey, &captureParam ); |
220 |
230 |
221 const TBool isSimStateNotPresentWithSecurityMode = IsSimStateNotPresentWithSecurityModeEnabled(); |
231 const TBool isSimStateNotPresentWithSecurityMode = IsSimStateNotPresentWithSecurityModeEnabled(); |
222 |
232 |
223 // Sim IS not ok when making emergency call from Pin query, no note |
233 // Sim IS not ok when making emergency call from Pin query, no note |
224 if ( (!IsSimOk() && !iStartupInterrupted) || isSimStateNotPresentWithSecurityMode ) |
234 if ( (!IsSimOk() && !iStartupInterrupted) || isSimStateNotPresentWithSecurityMode ) |
343 globalNotifierParam.SetBoolean( ETrue ); |
353 globalNotifierParam.SetBoolean( ETrue ); |
344 iViewCommandHandle->ExecuteCommandL( |
354 iViewCommandHandle->ExecuteCommandL( |
345 EPhoneViewSetGlobalNotifiersDisabled, |
355 EPhoneViewSetGlobalNotifiersDisabled, |
346 &globalNotifierParam ); |
356 &globalNotifierParam ); |
347 |
357 |
|
358 TPhoneCmdParamKeyCapture captureParam; |
|
359 captureParam.SetKeyCode( EKeyNo ); |
|
360 iViewCommandHandle->ExecuteCommand( EPhoneViewStartCapturingKey, &captureParam ); |
|
361 |
348 // Capture keys when the phone is dialling |
362 // Capture keys when the phone is dialling |
349 CaptureKeysDuringCallNotificationL( ETrue ); |
363 CaptureKeysDuringCallNotificationL( ETrue ); |
350 |
364 |
351 // Indicate that the Phone needs to be sent to the background if |
365 // Indicate that the Phone needs to be sent to the background if |
352 // an application other than the top application is in the foreground |
366 // an application other than the top application is in the foreground |
579 &numberEntryCountParam ); |
593 &numberEntryCountParam ); |
580 TInt neLength( numberEntryCountParam.Integer() ); |
594 TInt neLength( numberEntryCountParam.Integer() ); |
581 if ( neLength ) |
595 if ( neLength ) |
582 { |
596 { |
583 // Show not allowed note |
597 // Show not allowed note |
584 SendGlobalErrorNoteL( EPhoneNoteTextNotAllowed ); |
598 SendGlobalErrorNoteL( EPhoneNoteTextNotAllowed, ETrue ); |
585 } |
599 } |
586 else |
600 else |
587 { |
601 { |
588 // Logs to open |
602 // Logs to open |
589 CallFromNumberEntryL(); |
603 CallFromNumberEntryL(); |
590 } |
604 } |
591 } |
605 } |
592 else |
606 else |
593 { |
607 { |
594 // Show not allowed note |
608 // Show not allowed note |
595 SendGlobalErrorNoteL( EPhoneNoteTextNotAllowed ); |
609 SendGlobalErrorNoteL( EPhoneNoteTextNotAllowed, ETrue ); |
596 } |
610 } |
597 break; |
611 break; |
598 |
612 |
599 default: |
613 default: |
600 { |
614 { |
707 case ECCPErrorConnectionError: |
721 case ECCPErrorConnectionError: |
708 case ECCPErrorCCIncompatibleMessageInProtocolState: |
722 case ECCPErrorCCIncompatibleMessageInProtocolState: |
709 case ECCPErrorCCNoChannelAvailable: |
723 case ECCPErrorCCNoChannelAvailable: |
710 case ECCPErrorNetworkBusy: |
724 case ECCPErrorNetworkBusy: |
711 case ECCPEmergencyFailed: |
725 case ECCPEmergencyFailed: |
712 SendGlobalErrorNoteL( EPhoneNoteNoNetworkCallEmergency ); |
726 SendGlobalErrorNoteL( EPhoneNoteNoNetworkCallEmergency, ETrue ); |
713 break; |
727 break; |
714 |
728 |
715 default: |
729 default: |
716 __PHONELOG1( |
730 __PHONELOG1( |
717 EOnlyFatal, |
731 EOnlyFatal, |
811 // Output |
825 // Output |
812 const TPEAudioOutput audioOutput = |
826 const TPEAudioOutput audioOutput = |
813 iStateMachine->PhoneEngineInfo()->AudioOutput(); |
827 iStateMachine->PhoneEngineInfo()->AudioOutput(); |
814 |
828 |
815 UpdateSetupCbaL(); |
829 UpdateSetupCbaL(); |
816 |
830 SetTouchPaneButtons(0); |
|
831 |
817 // view update |
832 // view update |
818 outputParam.SetAudioOutput( audioOutput ); |
833 outputParam.SetAudioOutput( audioOutput ); |
819 iViewCommandHandle->ExecuteCommandL( EPhoneViewActivateAudioPathUIChanges, |
834 iViewCommandHandle->ExecuteCommandL( EPhoneViewActivateAudioPathUIChanges, |
820 &outputParam ); |
835 &outputParam ); |
821 |
836 |