135 |
135 |
136 #include <dialingextensioninterface.h> |
136 #include <dialingextensioninterface.h> |
137 #include <easydialingcommands.hrh> |
137 #include <easydialingcommands.hrh> |
138 |
138 |
139 // Kastor effect IDs, aknskincontent/101f84b9.sel |
139 // Kastor effect IDs, aknskincontent/101f84b9.sel |
140 const TInt KTouchDialerOpenEffect = 1505; |
140 const TInt KTouchDialerOpenEffect = 3; |
141 const TInt KTouchDialerCloseEffect = 1506; |
141 const TInt KTouchDialerCloseEffect = 5; |
142 |
142 |
143 // ================= MEMBER FUNCTIONS ======================= |
143 // ================= MEMBER FUNCTIONS ======================= |
144 |
144 |
145 // --------------------------------------------------------------------------- |
145 // --------------------------------------------------------------------------- |
146 // CPhoneViewController::CPhoneViewController |
146 // CPhoneViewController::CPhoneViewController |
498 |
498 |
499 case EPhoneViewEnableKeyLock: |
499 case EPhoneViewEnableKeyLock: |
500 iKeyLock.EnableKeyLock(); |
500 iKeyLock.EnableKeyLock(); |
501 break; |
501 break; |
502 |
502 |
503 case EPhoneViewEnableKeyLockWithoutNote: |
|
504 iKeyLock.EnableWithoutNote(); |
|
505 break; |
|
506 |
|
507 case EPhoneViewDisableKeyLockWithoutNote: |
503 case EPhoneViewDisableKeyLockWithoutNote: |
508 iKeyLock.DisableWithoutNote(); |
504 iKeyLock.DisableWithoutNote(); |
509 break; |
505 break; |
510 |
506 |
511 case EPhoneViewUpdateFSW: |
507 case EPhoneViewUpdateFSW: |
1432 |
1422 |
1433 // Check whether the idle is on foreground |
1423 // Check whether the idle is on foreground |
1434 TBool idleInFore = ForegroundApplicationWindowGroupId() == IdleWindowGroupId() ? |
1424 TBool idleInFore = ForegroundApplicationWindowGroupId() == IdleWindowGroupId() ? |
1435 ETrue : EFalse; |
1425 ETrue : EFalse; |
1436 |
1426 |
1437 if ( isForeground && // Newer run effect if not at front |
1427 if ( ( isForeground && // Newer run effect if not at front |
1438 ( ( type == EPhoneTransEffectDialerCreate && !iDialerActive ) || |
1428 ( ( type == EPhoneTransEffectDialerCreate && !iDialerActive ) || |
1439 ( type == EPhoneTransEffectDialerOpen && !iDialerActive && |
1429 ( type == EPhoneTransEffectDialerOpen && !iDialerActive && |
1440 iBubbleWrapper->IsNumberEntryUsed() ) || |
1430 iBubbleWrapper->IsNumberEntryUsed() )) || |
1441 ( type == EPhoneTransEffectDialerClose && iDialerActive ) ) ) |
1431 ( type == EPhoneTransEffectDialerClose && iDialerActive ) ) ) |
1442 { |
1432 { |
1443 HandleTransitionEffect( type ); |
1433 HandleTransitionEffect( type ); |
1444 } |
1434 } |
1445 // In case transition is from idle to dialer show transition effects as well. |
1435 // In case transition is from idle to dialer show transition effects as well. |
1446 else if ( idleInFore && !iDialerActive && |
1436 else if ( idleInFore && !iDialerActive && |
1447 type == EPhoneTransEffectDialerCreate ) |
1437 type == EPhoneTransEffectDialerOpen ) |
1448 { |
1438 { |
1449 HandleTransitionEffect( type ); |
1439 HandleTransitionEffect( type ); |
1450 } |
1440 } |
1451 } |
1441 } |
1452 break; |
1442 break; |
1627 viewResponse = iVmbxHandler->IsStraightCallToVideoMailBox() ? |
1617 viewResponse = iVmbxHandler->IsStraightCallToVideoMailBox() ? |
1628 EPhoneViewResponseSuccess : |
1618 EPhoneViewResponseSuccess : |
1629 EPhoneViewResponseFailed; |
1619 EPhoneViewResponseFailed; |
1630 } |
1620 } |
1631 break; |
1621 break; |
1632 |
|
1633 case EPhoneViewIsKeyLockEnabled: |
|
1634 viewResponse = IsKeyLockEnabled() ? |
|
1635 EPhoneViewResponseSuccess : |
|
1636 EPhoneViewResponseFailed; |
|
1637 break; |
|
1638 |
1622 |
1639 // Dialer specific commands start |
1623 // Dialer specific commands start |
1640 |
1624 |
1641 // Dialer handles these commands. |
1625 // Dialer handles these commands. |
1642 // ** TODO Here we need just to flag if functionality creates blocking dialog. |
1626 // ** TODO Here we need just to flag if functionality creates blocking dialog. |
2746 __PHONELOG1( EBasic, EPhoneUIView, |
2730 __PHONELOG1( EBasic, EPhoneUIView, |
2747 "CPhoneViewController::SetGlobalNotifiersDisabledL(%d)", |
2731 "CPhoneViewController::SetGlobalNotifiersDisabledL(%d)", |
2748 booleanParam->Boolean() ); |
2732 booleanParam->Boolean() ); |
2749 } |
2733 } |
2750 |
2734 |
2751 // --------------------------------------------------------- |
|
2752 // CPhoneViewController::IsKeyLockEnabled |
|
2753 // --------------------------------------------------------- |
|
2754 // |
|
2755 TBool CPhoneViewController::IsKeyLockEnabled() |
|
2756 { |
|
2757 TBool keylock; |
|
2758 keylock = iKeyLock.IsKeyLockEnabled(); |
|
2759 __PHONELOG1( EBasic, EPhoneUIView, |
|
2760 "CPhoneViewController::IsKeyLockEnabled(%d)", keylock ); |
|
2761 return keylock; |
|
2762 } |
|
2763 |
|
2764 // --------------------------------------------------------- |
|
2765 // CPhoneViewController::DisableKeyLock |
|
2766 // --------------------------------------------------------- |
|
2767 // |
|
2768 void CPhoneViewController::DisableKeyLock() |
|
2769 { |
|
2770 __PHONELOG( EBasic, EPhoneUIView, |
|
2771 "CPhoneViewController::DisableKeyLock()"); |
|
2772 return iKeyLock.DisableWithoutNote(); |
|
2773 } |
|
2774 |
|
2775 // CPhoneViewController::CancelAllNotications |
2735 // CPhoneViewController::CancelAllNotications |
2776 // --------------------------------------------------------------------------- |
2736 // --------------------------------------------------------------------------- |
2777 // |
2737 // |
2778 void CPhoneViewController::CancelAllNotications() |
2738 void CPhoneViewController::CancelAllNotications() |
2779 { |
2739 { |
3698 // SwitchLayoutL for statuspane. |
3658 // SwitchLayoutL for statuspane. |
3699 if ( currentLayout == R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT || |
3659 if ( currentLayout == R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT || |
3700 currentLayout == R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL ) |
3660 currentLayout == R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL ) |
3701 { |
3661 { |
3702 SwapEmptyIndicatorPaneInSecureStateL( EFalse ); |
3662 SwapEmptyIndicatorPaneInSecureStateL( EFalse ); |
3703 |
3663 |
3704 // do Pop for navipane |
|
3705 iAudioController->DeactivateVolumeControl(); |
|
3706 |
|
3707 if ( !Layout_Meta_Data::IsLandscapeOrientation() ) |
3664 if ( !Layout_Meta_Data::IsLandscapeOrientation() ) |
3708 { |
3665 { |
3709 iStatusPane->StatusPane().SwitchLayoutL |
3666 iStatusPane->StatusPane().SwitchLayoutL |
3710 ( R_AVKON_STATUS_PANE_LAYOUT_IDLE ); |
3667 ( R_AVKON_STATUS_PANE_LAYOUT_IDLE ); |
3711 } |
3668 } |