138 #include <easydialingcommands.hrh> |
138 #include <easydialingcommands.hrh> |
139 #include <AknIncallBubbleNotify.h> |
139 #include <AknIncallBubbleNotify.h> |
140 |
140 |
141 // Kastor effect IDs, aknskincontent/101f84b9.sel |
141 // Kastor effect IDs, aknskincontent/101f84b9.sel |
142 // These effects cannot be used for internal transitions (Call UI<->Dialer) |
142 // These effects cannot be used for internal transitions (Call UI<->Dialer) |
143 const TInt KTouchPhoneUiOpenEffect = 3; |
143 const TInt KTouchDialerOpenEffect = 3; |
144 const TInt KTouchPhoneUiCloseEffect = 5; |
144 const TInt KTouchDialerCloseEffect = 5; |
145 |
145 |
146 const TInt KTouchCallUiOpenEffect = 1000; |
146 const TInt KTouchCallUiOpenEffect = 1000; |
147 const TInt KTouchCallUiCloseEffect = 1001; |
147 const TInt KTouchCallUiCloseEffect = 1001; |
148 |
148 |
149 const TInt KDialerInputMaxChars( 100 ); |
149 const TInt KDialerInputMaxChars( 100 ); |
839 |
839 |
840 case EPhoneViewActivateMuteUIChanges: |
840 case EPhoneViewActivateMuteUIChanges: |
841 iMenuController->SetMuteFlag( aCommandParam ); |
841 iMenuController->SetMuteFlag( aCommandParam ); |
842 iBubbleWrapper->SetPhoneMuted( aCommandParam ); |
842 iBubbleWrapper->SetPhoneMuted( aCommandParam ); |
843 iIncallIndicator->HandleMuteChange( aCommandParam ); |
843 iIncallIndicator->HandleMuteChange( aCommandParam ); |
|
844 iAudioController->HandleMuteChange( aCommandParam ); |
844 iToolbarController->SetMuteFlag( aCommandParam ); |
845 iToolbarController->SetMuteFlag( aCommandParam ); |
845 if ( iButtonsController ) |
846 if ( iButtonsController ) |
846 { |
847 { |
847 iButtonsController->SetMuteFlag( aCommandParam ); |
848 iButtonsController->SetMuteFlag( aCommandParam ); |
848 } |
849 } |
1119 static_cast<TPhoneCmdParamBoolean*>( aCommandParam ); |
1120 static_cast<TPhoneCmdParamBoolean*>( aCommandParam ); |
1120 iMenuController->SetAllowDtmfOptionsFlag( |
1121 iMenuController->SetAllowDtmfOptionsFlag( |
1121 booleanParam->Boolean() ); |
1122 booleanParam->Boolean() ); |
1122 break; |
1123 break; |
1123 } |
1124 } |
1124 |
1125 |
1125 case EPhoneViewSetVoipCallDTMFVisibilityFlag: |
|
1126 { |
|
1127 TPhoneCmdParamBoolean* booleanParam = |
|
1128 static_cast<TPhoneCmdParamBoolean*>( aCommandParam ); |
|
1129 iMenuController->SetHideVoipCallDTMFVisibilityFlag( |
|
1130 booleanParam->Boolean() ); |
|
1131 break; |
|
1132 } |
|
1133 case EPhoneViewSetVideoCallDTMFVisibilityFlag: |
1126 case EPhoneViewSetVideoCallDTMFVisibilityFlag: |
1134 { |
1127 { |
1135 TPhoneCmdParamBoolean* booleanParam = |
1128 TPhoneCmdParamBoolean* booleanParam = |
1136 static_cast<TPhoneCmdParamBoolean*>( aCommandParam ); |
1129 static_cast<TPhoneCmdParamBoolean*>( aCommandParam ); |
1137 iMenuController->SetHideVideoCallDTMFVisibilityFlag( |
1130 iMenuController->SetHideVideoCallDTMFVisibilityFlag( |
3377 iMenuController->SetIhfFlag( &ihfParam ); |
3370 iMenuController->SetIhfFlag( &ihfParam ); |
3378 iToolbarController->SetIhfFlag( &ihfParam ); |
3371 iToolbarController->SetIhfFlag( &ihfParam ); |
3379 |
3372 |
3380 // btaa menu options |
3373 // btaa menu options |
3381 iMenuController->SetBTAccFlag( &btaaParam ); |
3374 iMenuController->SetBTAccFlag( &btaaParam ); |
3382 iToolbarController->SetBTAccFlag( &btaaParam ); |
3375 |
3383 iAudioController->HandleIhfChange( &ihfParam ); |
3376 iAudioController->HandleIhfChange( &ihfParam ); |
3384 |
3377 |
3385 if ( iButtonsController ) |
3378 if ( iButtonsController ) |
3386 { |
3379 { |
3387 iButtonsController->SetIhfFlag( &ihfParam ); |
3380 iButtonsController->SetIhfFlag( &ihfParam ); |
3417 iMenuController->SetWiredAccAvailableFlag( &wiredAvailableParam ); |
3410 iMenuController->SetWiredAccAvailableFlag( &wiredAvailableParam ); |
3418 iToolbarController->SetWiredAccFlag( &wiredAvailableParam ); |
3411 iToolbarController->SetWiredAccFlag( &wiredAvailableParam ); |
3419 |
3412 |
3420 // btaa menu options |
3413 // btaa menu options |
3421 iMenuController->SetBTAccAvailableFlag( &btAvailableParam ); |
3414 iMenuController->SetBTAccAvailableFlag( &btAvailableParam ); |
3422 iToolbarController->SetBTAccAvailableFlag( &btAvailableParam ); |
3415 |
3423 |
|
3424 if ( iButtonsController ) |
3416 if ( iButtonsController ) |
3425 { |
3417 { |
3426 iButtonsController->SetBTAccAvailableFlag( &btAvailableParam ); |
3418 iButtonsController->SetBTAccAvailableFlag( &btAvailableParam ); |
3427 iButtonsController->ReplaceAudioButton(); |
3419 iButtonsController->ReplaceAudioButton(); |
3428 } |
3420 } |
3857 "CPhoneViewController::HandleTransitionEffect aType:(%d)", aType ); |
3849 "CPhoneViewController::HandleTransitionEffect aType:(%d)", aType ); |
3858 TInt useEffect(KErrNotFound); |
3850 TInt useEffect(KErrNotFound); |
3859 switch ( aType ) |
3851 switch ( aType ) |
3860 { |
3852 { |
3861 case EPhoneTransEffectDialerCreate: |
3853 case EPhoneTransEffectDialerCreate: |
3862 case EPhoneTransEffectPhoneUiOpen: |
3854 case EPhoneTransEffectDialerOpen: |
3863 useEffect = KTouchPhoneUiOpenEffect; |
3855 useEffect = KTouchDialerOpenEffect; |
3864 break; |
3856 break; |
3865 case EPhoneTransEffectPhoneUiClose: |
3857 case EPhoneTransEffectDialerClose: |
3866 useEffect = KTouchPhoneUiCloseEffect; |
3858 useEffect = KTouchDialerCloseEffect; |
3867 break; |
3859 break; |
3868 case EPhoneTransEffectAppStartFromDialer: |
3860 case EPhoneTransEffectAppStartFromDialer: |
3869 useEffect = AknTransEffect::EApplicationStart; |
3861 useEffect = AknTransEffect::EApplicationStart; |
3870 break; |
3862 break; |
3871 case EPhoneTransEffectCallUiAppear: |
3863 case EPhoneTransEffectCallUiAppear: |
4134 okToUseEffect = ETrue; |
4126 okToUseEffect = ETrue; |
4135 } |
4127 } |
4136 /* In case transition is from idle to dialer or to incoming call |
4128 /* In case transition is from idle to dialer or to incoming call |
4137 show transition effects as well. */ |
4129 show transition effects as well. */ |
4138 else if ( isIdleInForeground && |
4130 else if ( isIdleInForeground && |
4139 ( aType == EPhoneTransEffectPhoneUiOpen || |
4131 ( aType == EPhoneTransEffectDialerOpen || |
4140 aType == EPhoneTransEffectCallUiAppear ) ) |
4132 aType == EPhoneTransEffectCallUiAppear ) ) |
4141 { |
4133 { |
4142 okToUseEffect = ETrue; |
4134 okToUseEffect = ETrue; |
4143 } |
4135 } |
4144 /* isPhoneForeground/isIdleInForeground are false |
4136 /* isPhoneForeground/isIdleInForeground are false |
4145 when call is created from some other then phone app for example logs or from phonebook*/ |
4137 when call is created from some other then phone app for example logs or from phonebook*/ |
4146 else if ( !isPhoneForeground && |
4138 else if ( !isPhoneForeground && |
4147 !isIdleInForeground && |
4139 !isIdleInForeground && |
4148 ( aType == EPhoneTransEffectPhoneUiOpen || |
4140 ( aType == EPhoneTransEffectDialerOpen || |
4149 aType == EPhoneTransEffectCallUiAppear ) ) |
4141 aType == EPhoneTransEffectCallUiAppear ) ) |
4150 { |
4142 { |
4151 okToUseEffect = ETrue; |
4143 okToUseEffect = ETrue; |
4152 } |
4144 } |
4153 return okToUseEffect; |
4145 return okToUseEffect; |
4162 { |
4154 { |
4163 TBool okToUse(EFalse); |
4155 TBool okToUse(EFalse); |
4164 switch ( aType ) |
4156 switch ( aType ) |
4165 { |
4157 { |
4166 case EPhoneTransEffectDialerCreate: |
4158 case EPhoneTransEffectDialerCreate: |
4167 case EPhoneTransEffectPhoneUiOpen: |
4159 case EPhoneTransEffectDialerOpen: |
4168 okToUse = !iDialerActive; |
4160 okToUse = !iDialerActive; |
4169 break; |
4161 break; |
4170 case EPhoneTransEffectAppStartFromDialer: |
4162 case EPhoneTransEffectAppStartFromDialer: |
4171 okToUse = iDialerActive; |
4163 okToUse = iDialerActive; |
4172 break; |
4164 break; |
4173 /* No need to check dialer activity below because effects are |
4165 /* No need to check dialer activity below because effects are |
4174 common to callhandling/dialer */ |
4166 common to callhandling/dialer */ |
4175 case EPhoneTransEffectPhoneUiClose: |
4167 case EPhoneTransEffectDialerClose: |
4176 case EPhoneTransEffectCallUiAppear: |
4168 case EPhoneTransEffectCallUiAppear: |
4177 case EPhoneTransEffectCallUiDisappear: |
4169 case EPhoneTransEffectCallUiDisappear: |
4178 okToUse = ETrue; |
4170 okToUse = ETrue; |
4179 break; |
4171 break; |
4180 default: |
4172 default: |