74 |
74 |
75 // EXTERNAL FUNCTION PROTOTYPES |
75 // EXTERNAL FUNCTION PROTOTYPES |
76 // None. |
76 // None. |
77 |
77 |
78 // CONSTANTS |
78 // CONSTANTS |
79 // Prefix change off. See SettingsInternalCRKeys.h |
79 // Prefix change off. See settingsinternalcrkeys.h |
80 const TInt KPEPrefixChangeOff = 0; |
80 const TInt KPEPrefixChangeOff = 0; |
81 // Prefix change on. See SettingsInternalCRKeys.h |
81 // Prefix change on. See settingsinternalcrkeys.h |
82 const TInt KPEPrefixChangeOn = 1; |
82 const TInt KPEPrefixChangeOn = 1; |
83 // International prefix |
83 // International prefix |
84 _LIT( KPEIntPrefix, "+" ); |
84 _LIT( KPEIntPrefix, "+" ); |
85 // Japan prefix |
85 // Japan prefix |
86 _LIT( KPEJapanPrefix, "+81" ); |
86 _LIT( KPEJapanPrefix, "+81" ); |
398 else |
398 else |
399 { |
399 { |
400 errorCode = iCallHandling.HangUp( callId, aAutoResumeOption ); |
400 errorCode = iCallHandling.HangUp( callId, aAutoResumeOption ); |
401 } |
401 } |
402 return errorCode; |
402 return errorCode; |
|
403 } |
|
404 |
|
405 // ----------------------------------------------------------------------------- |
|
406 // CPEMessageHandler::HandleReleaseConference |
|
407 // Handles release message from phone application |
|
408 // Method calls HangUp method from the CallHandling subsystem. |
|
409 // ----------------------------------------------------------------------------- |
|
410 // |
|
411 TInt CPEMessageHandler::HandleReleaseConference() |
|
412 { |
|
413 |
|
414 return iCallHandling.ReleaseConference(); |
|
415 |
403 } |
416 } |
404 |
417 |
405 // ----------------------------------------------------------------------------- |
418 // ----------------------------------------------------------------------------- |
406 // CPEMessageHandler::HandleSendDtmf |
419 // CPEMessageHandler::HandleSendDtmf |
407 // Handles send dtmf message from phone application |
420 // Handles send dtmf message from phone application |
2836 { |
2849 { |
2837 return iCallHandling.ReplaceActive(); |
2850 return iCallHandling.ReplaceActive(); |
2838 } |
2851 } |
2839 |
2852 |
2840 // ----------------------------------------------------------------------------- |
2853 // ----------------------------------------------------------------------------- |
2841 // CPEMessageHandler::CheckIfPhoneIsLockedL |
|
2842 // ----------------------------------------------------------------------------- |
|
2843 // |
|
2844 void CPEMessageHandler::CheckIfPhoneIsLockedL() |
|
2845 { |
|
2846 // Check if phone is locked |
|
2847 TInt keyLockStatus( EAutolockStatusUninitialized ); |
|
2848 TInt err = RProperty::Get( KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus, keyLockStatus ); |
|
2849 const TBool phoneIsLocked = ( keyLockStatus > EAutolockOff ); |
|
2850 |
|
2851 if ( phoneIsLocked && err == KErrNone ) |
|
2852 { |
|
2853 // New call is not possible if device lock is on |
|
2854 TEFLOGSTRING2( KTAERROR, |
|
2855 "PE CPEMessageHandler::CheckIfPhoneIsLockedL, keyLockStatus : %d", keyLockStatus ); |
|
2856 User::Leave( ECCPErrorAuthenticationFailed ); |
|
2857 } |
|
2858 } |
|
2859 |
|
2860 // ----------------------------------------------------------------------------- |
|
2861 // CPEMessageHandler::IsActiveVideo |
2854 // CPEMessageHandler::IsActiveVideo |
2862 // Checks if there are any connected video calls |
2855 // Checks if there are any connected video calls |
2863 // ----------------------------------------------------------------------------- |
2856 // ----------------------------------------------------------------------------- |
2864 // |
2857 // |
2865 TBool CPEMessageHandler::IsActiveVideo() |
2858 TBool CPEMessageHandler::IsActiveVideo() |