136 default: |
136 default: |
137 CPhoneGsmInCall::HandlePhoneEngineMessageL( aMessage, aCallId ); |
137 CPhoneGsmInCall::HandlePhoneEngineMessageL( aMessage, aCallId ); |
138 break; |
138 break; |
139 } |
139 } |
140 } |
140 } |
141 |
|
142 // ----------------------------------------------------------- |
|
143 // CPhoneTwoSingles::OpenMenuBarL |
|
144 // ----------------------------------------------------------- |
|
145 // |
|
146 EXPORT_C void CPhoneTwoSingles::OpenMenuBarL() |
|
147 { |
|
148 __LOGMETHODSTARTEND( EPhoneUIStates, |
|
149 "CPhoneTwoSingles::OpenMenuBarL()"); |
|
150 TInt resourceId; |
|
151 |
|
152 if ( iOnScreenDialer && IsDTMFEditorVisibleL() ) |
|
153 { |
|
154 resourceId = EPhoneDtmfDialerMenubar; |
|
155 } |
|
156 if ( iOnScreenDialer && IsCustomizedDialerVisibleL() ) |
|
157 { |
|
158 resourceId = CustomizedDialerMenuResourceIdL(); |
|
159 } |
|
160 else if ( IsNumberEntryVisibleL() ) |
|
161 { |
|
162 resourceId = EPhoneCallActiveAndHeldMenubarWithNumberEntry; |
|
163 } |
|
164 else |
|
165 { |
|
166 resourceId = EPhoneCallActiveAndHeldMenubar; |
|
167 } |
|
168 |
|
169 TPhoneCmdParamInteger integerParam; |
|
170 integerParam.SetInteger( |
|
171 CPhoneMainResourceResolver::Instance()-> |
|
172 ResolveResourceID( resourceId ) ); |
|
173 |
|
174 // Set Hold flag to view |
|
175 TPhoneCmdParamBoolean holdFlag; |
|
176 holdFlag.SetBoolean( EFalse ); |
|
177 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag ); |
|
178 |
|
179 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarOpen, |
|
180 &integerParam ); |
|
181 } |
|
182 |
141 |
183 // ----------------------------------------------------------- |
142 // ----------------------------------------------------------- |
184 // CPhoneTwoSingles:HandleIdleL |
143 // CPhoneTwoSingles:HandleIdleL |
185 // ----------------------------------------------------------- |
144 // ----------------------------------------------------------- |
186 // |
145 // |
382 TPhoneCmdParamBoolean holdFlag; |
339 TPhoneCmdParamBoolean holdFlag; |
383 holdFlag.SetBoolean( EFalse ); |
340 holdFlag.SetBoolean( EFalse ); |
384 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag ); |
341 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag ); |
385 |
342 |
386 SetTouchPaneButtons( EPhoneConferenceButtons ); |
343 SetTouchPaneButtons( EPhoneConferenceButtons ); |
387 SetTouchPaneButtonEnabled( EPhoneInCallCmdPrivate ); |
|
388 EndUiUpdate(); |
344 EndUiUpdate(); |
389 |
345 |
390 UpdateCbaL( EPhoneCallHandlingInCallCBA ); |
346 UpdateCbaL( EPhoneCallHandlingInCallCBA ); |
391 |
347 |
392 // Go to conference state |
348 // Go to conference state |
415 CEikonEnv::Static()->DismissTaskList(); |
371 CEikonEnv::Static()->DismissTaskList(); |
416 |
372 |
417 // Display incoming call |
373 // Display incoming call |
418 DisplayIncomingCallL( aCallId, dialerParam ); |
374 DisplayIncomingCallL( aCallId, dialerParam ); |
419 |
375 |
420 // Set touch controls |
|
421 SetTouchPaneButtonDisabled( EPhoneCallComingCmdAnswer ); |
|
422 |
|
423 // Check if HW Keys or Call UI should be disabled |
376 // Check if HW Keys or Call UI should be disabled |
424 CheckDisableHWKeysAndCallUIL(); |
377 CheckDisableHWKeysAndCallUIL(); |
425 |
378 |
426 SetTouchPaneButtons( EPhoneWaitingCallButtons ); |
379 SetTouchPaneButtons( EPhoneWaitingCallButtons ); |
427 |
380 |
441 TInt aCallId, |
394 TInt aCallId, |
442 const TPhoneCmdParamBoolean aCommandParam ) |
395 const TPhoneCmdParamBoolean aCommandParam ) |
443 { |
396 { |
444 __LOGMETHODSTARTEND( EPhoneUIStates, |
397 __LOGMETHODSTARTEND( EPhoneUIStates, |
445 "CPhoneTwoSingles::DisplayIncomingCallL()"); |
398 "CPhoneTwoSingles::DisplayIncomingCallL()"); |
446 // Close menu bar, if it is displayed |
|
447 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); |
|
448 |
399 |
449 // Cannot delete active note, e.g. New call query, |
400 // Cannot delete active note, e.g. New call query, |
450 // but show waiting note with or without caller name |
401 // but show waiting note with or without caller name |
451 if ( IsAnyQueryActiveL() || |
402 if ( IsAnyQueryActiveL() || |
452 ( !aCommandParam.Boolean() && iOnScreenDialer ) ) |
403 ( !aCommandParam.Boolean() && iOnScreenDialer ) ) |