20 #include "mpeengineinfo.h" |
20 #include "mpeengineinfo.h" |
21 #include "mphoneviewcommandhandle.h" |
21 #include "mphoneviewcommandhandle.h" |
22 #include "mphonestatemachine.h" |
22 #include "mphonestatemachine.h" |
23 |
23 |
24 #include <featmgr.h> |
24 #include <featmgr.h> |
25 #include <callhandlingui.rsg> |
25 // <-- QT PHONE START --> |
|
26 //#include <callhandlingui.rsg> |
|
27 // <-- QT PHONE END --> |
26 |
28 |
27 #include "phonerssbase.h" |
29 #include "phonerssbase.h" |
28 #include "phoneui.pan" |
30 #include "phoneui.pan" |
29 #include "phonelogger.h" |
31 #include "phonelogger.h" |
30 |
32 |
145 TPhoneCmdParamInteger activeCallCount; |
147 TPhoneCmdParamInteger activeCallCount; |
146 iViewCommandHandle.ExecuteCommandL( |
148 iViewCommandHandle.ExecuteCommandL( |
147 EPhoneViewGetCountOfActiveCalls, &activeCallCount ); |
149 EPhoneViewGetCountOfActiveCalls, &activeCallCount ); |
148 |
150 |
149 TPhoneCmdParamCallStateData callStateData; |
151 TPhoneCmdParamCallStateData callStateData; |
150 callStateData.SetCallState( EPEStateRinging ); |
152 callStateData.SetCallState( EPEStateRinging ); |
151 iViewCommandHandle.HandleCommandL( |
153 iViewCommandHandle.HandleCommandL( |
152 EPhoneViewGetCallIdByState, &callStateData ); |
154 EPhoneViewGetCallIdByState, &callStateData ); |
153 |
155 |
154 TInt incomingCall = callStateData.CallId(); |
156 TInt incomingCall = callStateData.CallId(); |
155 |
157 |
156 if( dtmfEditorVisible ) |
158 if( dtmfEditorVisible ) |
157 { |
159 { |
158 resourceId = EPhoneDtmfDialerCBA; |
160 resourceId = EPhoneDtmfDialerCBA; |
159 } |
161 } |
160 else if( activeCallCount.Integer() == ENoActiveCalls ) |
162 else if( activeCallCount.Integer() == ENoActiveCalls ) |
161 { |
163 { |
162 resourceId = EPhoneNumberAcqCBA; |
164 resourceId = EPhoneNumberAcqCBA; |
163 } |
165 } |
164 else if ( activeCallCount.Integer() > ENoActiveCalls && |
166 else if ( activeCallCount.Integer() > ENoActiveCalls && |
165 incomingCall > KErrNotFound ) |
167 incomingCall > KErrNotFound ) |
166 { |
168 { |
167 resourceId = EPhoneCallHandlingCallWaitingCBA; |
169 resourceId = EPhoneCallHandlingCallWaitingCBA; |
168 } |
170 } |
169 else |
171 else |
170 { |
172 { |
171 resourceId = EPhoneInCallNumberAcqCBA; |
173 resourceId = EPhoneInCallNumberAcqCBA; |
172 } |
174 } |
173 } |
175 } |
174 } |
176 } |
175 |
177 |
176 // Check if Audio is muted |
178 // Check is Audio muted |
177 else if ( iStateMachine.PhoneEngineInfo()->AudioMute() && |
179 else if ( iStateMachine.PhoneEngineInfo()->AudioMute() ) |
178 !FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling )) |
|
179 { |
180 { |
180 resourceId = EPhoneCallHandlingInCallUnmuteCBA; |
181 resourceId = EPhoneCallHandlingInCallUnmuteCBA; |
181 } |
182 } |
182 |
183 |
183 // Multicall swap |
184 // Multicall swap |
267 |
268 |
268 // Update soft reject flag |
269 // Update soft reject flag |
269 TBool softRejectActivated( ETrue ); |
270 TBool softRejectActivated( ETrue ); |
270 // VoIP calls do not support sms sending |
271 // VoIP calls do not support sms sending |
271 if ( iStateMachine.PhoneEngineInfo()->CallType( aCallId ) == EPECallTypeVoIP |
272 if ( iStateMachine.PhoneEngineInfo()->CallType( aCallId ) == EPECallTypeVoIP |
272 || iStateMachine.PhoneEngineInfo()->RemotePhoneNumber( aCallId ).Length() == 0 ) |
273 || iStateMachine.PhoneEngineInfo()->RemotePhoneNumber( aCallId ).Length() == 0 ) |
273 { |
274 { |
274 softRejectActivated = EFalse; |
275 softRejectActivated = EFalse; |
275 } |
276 } |
276 TPhoneCmdParamBoolean softRejectParam; |
277 TPhoneCmdParamBoolean softRejectParam; |
277 softRejectParam.SetBoolean( softRejectActivated ); |
278 softRejectParam.SetBoolean( softRejectActivated ); |
278 iViewCommandHandle.ExecuteCommandL( EPhoneViewSetSoftRejectFlag, |
279 iViewCommandHandle.ExecuteCommandL( EPhoneViewSetSoftRejectFlag, |
279 &softRejectParam ); |
280 &softRejectParam ); |
280 |
281 |
452 // ----------------------------------------------------------- |
453 // ----------------------------------------------------------- |
453 // CPhoneCbaManager::GetIncomingCallSilenceCBA |
454 // CPhoneCbaManager::GetIncomingCallSilenceCBA |
454 // ----------------------------------------------------------- |
455 // ----------------------------------------------------------- |
455 // |
456 // |
456 TInt CPhoneCbaManager::GetIncomingCallSilenceCBA( |
457 TInt CPhoneCbaManager::GetIncomingCallSilenceCBA( |
457 const TBool aSoftRejectActivated ) |
458 const TBool /*aSoftRejectActivated*/ ) |
458 { |
459 { |
459 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneCbaManager::GetIncomingCallSilenceCBA ()" ); |
460 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneCbaManager::GetIncomingCallSilenceCBA ()" ); |
460 TInt ret = EPhoneCallHandlingIncomingSoftRejectCBA; |
461 // <-- QT PHONE START --> |
|
462 TInt ret = EPhoneCallHandlingIncomingCBA; |
|
463 /*TInt ret = EPhoneCallHandlingIncomingSoftRejectCBA; |
461 |
464 |
462 //Get incoming call touchpane button set |
465 //Get incoming call touchpane button set |
463 TPhoneCmdParamInteger touchpaneButtonsParam; |
466 TPhoneCmdParamInteger touchpaneButtonsParam; |
464 touchpaneButtonsParam.SetInteger( CPhoneMainResourceResolver::Instance()-> |
467 touchpaneButtonsParam.SetInteger( CPhoneMainResourceResolver::Instance()-> |
465 ResolveResourceID( EPhoneIncomingCallButtons ) ); |
468 ResolveResourceID( EPhoneIncomingCallButtons ) ); |