58 #include "tphonecmdparampointer.h" |
58 #include "tphonecmdparampointer.h" |
59 #include "cphonenewcallcmdhandler.h" |
59 #include "cphonenewcallcmdhandler.h" |
60 #include "cphonevcchandler.h" |
60 #include "cphonevcchandler.h" |
61 #include "cphonecallforwardqueryhandler.h" |
61 #include "cphonecallforwardqueryhandler.h" |
62 #include "cphonekeys.h" |
62 #include "cphonekeys.h" |
|
63 #include "phoneui.hrh" |
63 |
64 |
64 // CONSTANTS |
65 // CONSTANTS |
65 const TInt KMaxLengthForSIPURIFirstLine = 15; |
66 const TInt KMaxLengthForSIPURIFirstLine = 15; |
66 const TInt KMaxLengthForSIPURITwoLines = 30; |
67 const TInt KMaxLengthForSIPURITwoLines = 30; |
67 const TInt KMaxLengthForSIPURI = 256; |
68 const TInt KMaxLengthForSIPURI = 256; |
383 { |
384 { |
384 iNewCallCmdHandler->HandleCommandL( aCommand ); |
385 iNewCallCmdHandler->HandleCommandL( aCommand ); |
385 handled = ETrue; |
386 handled = ETrue; |
386 } |
387 } |
387 break; |
388 break; |
|
389 case EPhoneCmdUnattendedTransferCallBackCancel: |
|
390 if ( NeedToRestoreKeyLock() ) |
|
391 { |
|
392 SetKeyLockEnabledL( ETrue ); |
|
393 SetNeedToRestoreKeyLock( EFalse ); |
|
394 } |
|
395 // intended fall-through |
388 case EPhoneInCallCmdUnattendedTransfer: |
396 case EPhoneInCallCmdUnattendedTransfer: |
389 case EPhoneCmdTransferDialerOk: |
397 case EPhoneCmdTransferDialerOk: |
390 case EPhoneCmdTransferDialerExit: |
398 case EPhoneCmdTransferDialerExit: |
391 case EPhoneCmdTransferDialerSearch: |
399 case EPhoneCmdTransferDialerSearch: |
392 case EPhoneCmdTransferDialerContactFetch: |
400 case EPhoneCmdTransferDialerContactFetch: |
393 case EPhoneCmdUnattendedTransferCallBackOk: |
401 case EPhoneCmdUnattendedTransferCallBackOk: |
394 case EPhoneCmdUnattendedTransferCallBackCancel: |
|
395 // intended fall-through |
402 // intended fall-through |
396 iTransferCmdHandler->HandleCommandL( aCommand ); |
403 iTransferCmdHandler->HandleCommandL( aCommand ); |
397 handled = ETrue; |
404 handled = ETrue; |
398 break; |
405 break; |
399 case EPhoneCmdCancelServiceEnabling: |
406 case EPhoneCmdCancelServiceEnabling: |
427 case EPhoneCmdHandoverToWlan: |
434 case EPhoneCmdHandoverToWlan: |
428 iVccHandler->StartManualHandoverL( EPhoneVoIPWaitHandoverFromGsm ); |
435 iVccHandler->StartManualHandoverL( EPhoneVoIPWaitHandoverFromGsm ); |
429 handled = ETrue; |
436 handled = ETrue; |
430 break; |
437 break; |
431 |
438 |
|
439 case EPhoneCmdRejectUnattendedTransfer: |
|
440 if ( NeedToRestoreKeyLock() ) |
|
441 { |
|
442 SetKeyLockEnabledL( ETrue ); |
|
443 SetNeedToRestoreKeyLock( EFalse ); |
|
444 } |
|
445 handled = ETrue; |
|
446 break; |
|
447 |
432 default: |
448 default: |
433 { |
449 { |
434 RArray<CTelMenuExtension::TCallInfo> array; |
450 RArray<CTelMenuExtension::TCallInfo> array; |
435 CleanupClosePushL( array ); |
451 CleanupClosePushL( array ); |
436 GetActiveCallArrayL( array ); |
452 GetActiveCallArrayL( array ); |
596 break; |
612 break; |
597 } |
613 } |
598 case MEngineMonitor::EPEMessageTransferring: |
614 case MEngineMonitor::EPEMessageTransferring: |
599 { |
615 { |
600 iViewCommandHandle.ExecuteCommandL( EPhoneViewRemoveGlobalNote ); |
616 iViewCommandHandle.ExecuteCommandL( EPhoneViewRemoveGlobalNote ); |
601 CPhoneState* phoneState = |
617 break; |
602 static_cast< CPhoneState* >( iStateMachine.State() ); |
618 } |
|
619 case MEngineMonitor::EPEMessageTransferDone: |
|
620 { |
|
621 iViewCommandHandle.ExecuteCommandL( EPhoneViewRemoveGlobalNote ); |
603 SendGlobalInfoNoteL( EPhoneInCallTransferred ); |
622 SendGlobalInfoNoteL( EPhoneInCallTransferred ); |
604 break; |
623 break; |
605 } |
624 } |
606 case MEngineMonitor::EPEMessageRemoteForwarding: |
625 case MEngineMonitor::EPEMessageRemoteForwarding: |
607 { |
626 { |
608 SendGlobalErrorNoteL( EPhoneRemoteForwarding ); |
627 SendGlobalErrorNoteL( EPhoneRemoteForwarding ); |
609 break; |
628 break; |
610 } |
629 } |
611 case MEngineMonitor::EPEMessageTransferCallBackRequest: |
630 case MEngineMonitor::EPEMessageTransferCallBackRequest: |
612 { |
631 { |
|
632 if ( iStateMachine.State()->IsKeyLockOn() ) |
|
633 { |
|
634 SetNeedToRestoreKeyLock( ETrue ); |
|
635 SetKeyLockEnabledL( EFalse ); |
|
636 } |
613 iTransferCmdHandler->LaunchCallBackQueryL(); |
637 iTransferCmdHandler->LaunchCallBackQueryL(); |
614 break; |
638 break; |
615 } |
639 } |
|
640 case MEngineMonitor::EPEMessageIdle: |
|
641 { |
|
642 TPhoneCmdParamInteger activeCallCount; |
|
643 iViewCommandHandle.ExecuteCommandL( |
|
644 EPhoneViewGetCountOfActiveCalls, &activeCallCount ); |
|
645 |
|
646 if ( ENoActiveCalls == activeCallCount.Integer() |
|
647 && NeedToRestoreKeyLock() ) |
|
648 { |
|
649 SetKeyLockEnabledL( ETrue ); |
|
650 SetNeedToRestoreKeyLock( EFalse ); |
|
651 } |
|
652 break; |
|
653 } |
616 default: |
654 default: |
617 handled = EFalse; |
655 handled = EFalse; |
618 break; |
656 break; |
619 } |
657 } |
620 return handled; |
658 return handled; |
1528 &stringParam ); |
1566 &stringParam ); |
1529 |
1567 |
1530 return phoneNumber; |
1568 return phoneNumber; |
1531 } |
1569 } |
1532 |
1570 |
|
1571 // --------------------------------------------------------------------------- |
|
1572 // CPhoneCustomizationVoip::SetKeyLockEnabledL |
|
1573 // --------------------------------------------------------------------------- |
|
1574 // |
|
1575 void CPhoneCustomizationVoip::SetKeyLockEnabledL( TBool aEnabled ) |
|
1576 { |
|
1577 __LOGMETHODSTARTEND( PhoneUIVoIPExtension, |
|
1578 "CPhoneCustomizationVoip::CPhoneCustomizationVoip::SetKeyLockEnabledL" ); |
|
1579 if ( aEnabled ) |
|
1580 { |
|
1581 iViewCommandHandle.ExecuteCommandL( |
|
1582 EPhoneViewEnableKeyLock ); |
|
1583 } |
|
1584 else |
|
1585 { |
|
1586 iViewCommandHandle.ExecuteCommandL( |
|
1587 EPhoneViewDisableKeyLockWithoutNote ); |
|
1588 } |
|
1589 } |
|
1590 |
|
1591 // --------------------------------------------------------------------------- |
|
1592 // CPhoneCustomizationVoip::SetNeedToRestoreKeyLock |
|
1593 // --------------------------------------------------------------------------- |
|
1594 // |
|
1595 void CPhoneCustomizationVoip::SetNeedToRestoreKeyLock( TBool aRestore ) |
|
1596 { |
|
1597 __LOGMETHODSTARTEND( PhoneUIVoIPExtension, |
|
1598 "CPhoneCustomizationVoip::CPhoneCustomizationVoip::SetNeedToRestoreKeyLock" ); |
|
1599 __PHONELOG1( EBasic, PhoneUIVoIPExtension, |
|
1600 "CPhoneCustomizationVoip::AwrNeedToRestoreKeyLock:%d", aRestore ); |
|
1601 iNeedToRestoreKeyLock = aRestore; |
|
1602 } |
|
1603 |
|
1604 // ----------------------------------------------------------- |
|
1605 // CPhoneCustomizationVoip::NeedToRestoreKeyLock |
|
1606 // ----------------------------------------------------------- |
|
1607 // |
|
1608 TBool CPhoneCustomizationVoip::NeedToRestoreKeyLock() const |
|
1609 { |
|
1610 __LOGMETHODSTARTEND( PhoneUIVoIPExtension, |
|
1611 "CPhoneCustomizationVoip::CPhoneCustomizationVoip::NeedToRestoreKeyLock" ); |
|
1612 __PHONELOG1( EBasic, PhoneUIVoIPExtension, |
|
1613 "CPhoneCustomizationVoip::NeedToRestoreKeyLock:%d", iNeedToRestoreKeyLock ); |
|
1614 return iNeedToRestoreKeyLock; |
|
1615 } |
|
1616 |
1533 // End of File |
1617 // End of File |