136 iViewCommandHandle->HandleCommandL( EPhoneViewGetCallIdByState, |
136 iViewCommandHandle->HandleCommandL( EPhoneViewGetCallIdByState, |
137 &callStateData ); |
137 &callStateData ); |
138 |
138 |
139 if( callStateData.CallId() > KErrNotFound ) |
139 if( callStateData.CallId() > KErrNotFound ) |
140 { |
140 { |
141 TPhoneCmdParamCallHeaderData callHeaderParam; |
|
142 callHeaderParam.SetCallState( EPEStateRinging ); |
|
143 SetCallHeaderTextsForCallComingInL( callStateData.CallId(), EFalse, &callHeaderParam ); |
|
144 |
|
145 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, |
141 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, |
146 callStateData.CallId(), |
142 callStateData.CallId() ); |
147 &callHeaderParam ); |
143 |
148 |
144 BringIncomingToForegroundL(); |
149 SetTouchPaneButtons( EPhoneIncomingCallButtons ); |
|
150 BringIncomingToForegroundL(); |
|
151 iCbaManager->UpdateIncomingCbaL( callStateData.CallId() ); |
|
152 SetRingingTonePlaybackL( callStateData.CallId() ); |
145 SetRingingTonePlaybackL( callStateData.CallId() ); |
|
146 UpdateUiCommands(); |
153 SetBackButtonActive(EFalse); |
147 SetBackButtonActive(EFalse); |
154 iStateMachine->ChangeState( EPhoneStateIncoming ); |
148 iStateMachine->ChangeState( EPhoneStateIncoming ); |
155 } |
149 } |
156 else // waiting call was terminated. |
150 else // waiting call was terminated. |
157 { |
151 { |
158 CPhoneState::SetTouchPaneButtons( EPhoneCallSetupButtons ); |
152 UpdateUiCommands(); |
159 UpdateCbaL( EPhoneCallHandlingInCallCBA ); |
|
160 iStateMachine->ChangeState( EPhoneStateAlerting ); |
153 iStateMachine->ChangeState( EPhoneStateAlerting ); |
161 } |
154 } |
162 EndUiUpdate(); |
155 EndUiUpdate(); |
163 } |
|
164 |
|
165 // ----------------------------------------------------------- |
|
166 // CPhoneCallSetupAndWaiting::UpdateInCallCbaL |
|
167 // ----------------------------------------------------------- |
|
168 // |
|
169 void CPhoneCallSetupAndWaiting::UpdateInCallCbaL() |
|
170 { |
|
171 __LOGMETHODSTARTEND( EPhoneControl, |
|
172 "CPhoneCallSetupAndWaiting::UpdateInCallCbaL() "); |
|
173 UpdateCbaL( EPhoneCallHandlingIncomingRejectCBA ); |
|
174 } |
156 } |
175 |
157 |
176 // ----------------------------------------------------------- |
158 // ----------------------------------------------------------- |
177 // CPhoneCallSetupAndWaiting::HandleConnectedL |
159 // CPhoneCallSetupAndWaiting::HandleConnectedL |
178 // ----------------------------------------------------------- |
160 // ----------------------------------------------------------- |
179 // |
161 // |
180 void CPhoneCallSetupAndWaiting::HandleConnectedL( TInt aCallId ) |
162 void CPhoneCallSetupAndWaiting::HandleConnectedL( TInt aCallId ) |
181 { |
163 { |
182 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneCallSetupAndWaiting::HandleConnectedL() "); |
164 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneCallSetupAndWaiting::HandleConnectedL() "); |
183 BeginUiUpdateLC(); |
165 BeginUiUpdateLC(); |
184 TPhoneCmdParamCallHeaderData callHeaderParam; |
166 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId ); |
185 callHeaderParam.SetCallState( EPEStateConnected ); |
|
186 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, |
|
187 &callHeaderParam ); |
|
188 |
167 |
189 SetTouchPaneButtons( EPhoneWaitingCallButtons ); |
168 UpdateUiCommands(); |
190 EndUiUpdate(); |
169 EndUiUpdate(); |
191 |
170 iNumberEntryManager->SetVisibilityIfNumberEntryUsedL(ETrue); |
192 if ( IsNumberEntryUsedL() ) |
|
193 { |
|
194 TPhoneCmdParamBoolean booleanParam; |
|
195 booleanParam.SetBoolean( ETrue ); |
|
196 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetNumberEntryVisible, &booleanParam ); |
|
197 } |
|
198 UpdateCbaL( EPhoneCallHandlingCallWaitingCBA ); |
|
199 iStateMachine->ChangeState( EPhoneStateWaitingInSingle ); |
171 iStateMachine->ChangeState( EPhoneStateWaitingInSingle ); |
200 } |
172 } |
201 |
173 |
202 // End of File |
174 // End of File |