author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 00:16:48 +0300 | |
changeset 77 | 2be0b271d017 |
parent 72 | c76a0b1755b9 |
child 76 | cfea66083b62 |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: Implementation of CPhoneSingleAndCallSetupAndWaiting class. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
// INCLUDES |
|
20 |
#include <eikmenub.h> |
|
21 |
#include <eikenv.h> |
|
22 |
#include <StringLoader.h> |
|
23 |
#include <pevirtualengine.h> |
|
24 |
#include <cpephonemodelif.h> |
|
25 |
#include "cphonesingleandcallsetupandwaiting.h" |
|
26 |
#include "mphonestatemachine.h" |
|
27 |
#include "phoneviewcommanddefinitions.h" |
|
28 |
#include "phoneui.hrh" |
|
29 |
#include "cphonemainresourceresolver.h" |
|
30 |
#include "phonerssbase.h" |
|
31 |
#include "cphonestateincall.h" |
|
32 |
#include "tphonecmdparaminteger.h" |
|
33 |
#include "tphonecmdparamboolean.h" |
|
34 |
#include "tphonecmdparamstring.h" |
|
35 |
#include "tphonecmdparamcallheaderdata.h" |
|
36 |
#include "tphonecmdparamglobalnote.h" |
|
37 |
#include "tphonecmdparamcallstatedata.h" |
|
38 |
#include "phonestatedefinitionsgsm.h" |
|
39 |
#include "phonelogger.h" |
|
40 |
||
41 |
enum TTerminatedCall |
|
42 |
{ |
|
43 |
ENull = 0, |
|
44 |
EHold, |
|
45 |
ERinging, |
|
46 |
EAlerting |
|
47 |
}; |
|
48 |
||
49 |
// ================= MEMBER FUNCTIONS ======================= |
|
50 |
||
51 |
// C++ default constructor can NOT contain any code, that |
|
52 |
// might leave. |
|
53 |
// |
|
54 |
CPhoneSingleAndCallSetupAndWaiting::CPhoneSingleAndCallSetupAndWaiting( |
|
55 |
MPhoneStateMachine* aStateMachine, |
|
56 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
57 |
MPhoneCustomization* aPhoneCustomization ) : |
|
58 |
CPhoneGsmInCall( aStateMachine, aViewCommandHandle, aPhoneCustomization ) |
|
59 |
{ |
|
60 |
} |
|
61 |
||
62 |
// ----------------------------------------------------------- |
|
63 |
// CPhoneSingleAndCallSetupAndWaiting::~CPhoneSingleAndCallSetupAndWaiting() |
|
64 |
// Destructor |
|
65 |
// (other items were commented in a header). |
|
66 |
// ----------------------------------------------------------- |
|
67 |
// |
|
68 |
CPhoneSingleAndCallSetupAndWaiting::~CPhoneSingleAndCallSetupAndWaiting() |
|
69 |
{ |
|
70 |
} |
|
71 |
||
72 |
// ----------------------------------------------------------- |
|
73 |
// CPhoneSingleAndCallSetupAndWaiting::ConstructL() |
|
74 |
// Constructor |
|
75 |
// (other items were commented in a header). |
|
76 |
// ----------------------------------------------------------- |
|
77 |
// |
|
78 |
void CPhoneSingleAndCallSetupAndWaiting::ConstructL() |
|
79 |
{ |
|
80 |
CPhoneGsmInCall::ConstructL(); |
|
81 |
||
82 |
TPhoneCmdParamCallStateData callStateData; |
|
83 |
callStateData.SetCallState( EPEStateRinging ); |
|
84 |
iViewCommandHandle->HandleCommandL( |
|
85 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
86 |
iWaitingCallId = callStateData.CallId(); |
|
87 |
} |
|
88 |
||
89 |
// ----------------------------------------------------------- |
|
90 |
// CPhoneSingleAndCallSetupAndWaiting::NewL() |
|
91 |
// Constructor |
|
92 |
// (other items were commented in a header). |
|
93 |
// ----------------------------------------------------------- |
|
94 |
// |
|
95 |
CPhoneSingleAndCallSetupAndWaiting* CPhoneSingleAndCallSetupAndWaiting::NewL( |
|
96 |
MPhoneStateMachine* aStateMachine, |
|
97 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
98 |
MPhoneCustomization* aPhoneCustomization ) |
|
99 |
{ |
|
100 |
CPhoneSingleAndCallSetupAndWaiting* self = new( ELeave ) CPhoneSingleAndCallSetupAndWaiting( |
|
101 |
aStateMachine, aViewCommandHandle, aPhoneCustomization ); |
|
102 |
||
103 |
CleanupStack::PushL( self ); |
|
104 |
self->ConstructL(); |
|
105 |
CleanupStack::Pop( self ); |
|
106 |
||
107 |
return self; |
|
108 |
} |
|
109 |
||
110 |
// -------------------------------------------------------------- |
|
111 |
// CPhoneSingleAndCallSetupAndWaiting::HandleKeyMessageL |
|
112 |
// -------------------------------------------------------------- |
|
113 |
// |
|
114 |
void CPhoneSingleAndCallSetupAndWaiting::HandleKeyMessageL( |
|
115 |
TPhoneKeyEventMessages aMessage, |
|
116 |
TKeyCode aCode ) |
|
117 |
{ |
|
118 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandleKeyMessageL() "); |
|
119 |
switch ( aCode ) |
|
120 |
{ |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
121 |
case EKeyYes: // send-key |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
122 |
if( iNumberEntryManager->IsNumberEntryVisibleL() ) |
37 | 123 |
{ |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
124 |
iNumberEntryManager->CallFromNumberEntryL(); |
37 | 125 |
} |
126 |
else |
|
127 |
{ |
|
128 |
// Number entry is behind waiting call bubble |
|
129 |
// We can't answer to waiting call in this state |
|
130 |
// so display Not allowed -note. |
|
131 |
CPhoneState::SendGlobalErrorNoteL( |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
132 |
EPhoneNoteTextNotAllowed, ETrue ); |
37 | 133 |
} |
134 |
break; |
|
135 |
||
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
136 |
case EKeyNo: // end-key |
37 | 137 |
if ( aMessage == EPhoneKeyLongPress ) |
138 |
{ |
|
139 |
iStateMachine->SendPhoneEngineMessage( |
|
140 |
MPEPhoneModel::EPEMessageTerminateAllConnections ); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
141 |
iNumberEntryManager->ClearNumberEntryContentCacheIfContentStored(); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
142 |
if ( iNumberEntryManager->IsNumberEntryUsedL() ) |
37 | 143 |
{ |
56
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
144 |
iViewCommandHandle->ExecuteCommandL( |
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
145 |
EPhoneViewRemoveNumberEntry ); |
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
146 |
// Do state-specific operation when number entry is cleared |
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
147 |
HandleNumberEntryClearedL(); |
37 | 148 |
} |
149 |
} |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
150 |
else // handle short end key |
37 | 151 |
{ |
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
152 |
DisconnectOutgoingCallL(); |
37 | 153 |
} |
154 |
break; |
|
155 |
||
156 |
default: |
|
157 |
CPhoneGsmInCall::HandleKeyMessageL( aMessage, aCode ); |
|
158 |
break; |
|
159 |
} |
|
160 |
} |
|
161 |
||
162 |
// ----------------------------------------------------------- |
|
163 |
// CPhoneSingleAndCallSetupAndWaiting::HandlePhoneEngineMessageL |
|
164 |
// ----------------------------------------------------------- |
|
165 |
// |
|
166 |
void CPhoneSingleAndCallSetupAndWaiting::HandlePhoneEngineMessageL( |
|
167 |
const TInt aMessage, |
|
168 |
TInt aCallId ) |
|
169 |
{ |
|
170 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandlePhoneEngineMessageL() "); |
|
171 |
switch ( aMessage ) |
|
172 |
{ |
|
173 |
case MEngineMonitor::EPEMessageConnecting: |
|
174 |
iAlerting = ETrue; |
|
175 |
HandleConnectingL( aCallId ); |
|
176 |
break; |
|
177 |
||
178 |
case MEngineMonitor::EPEMessageConnected: |
|
179 |
HandleConnectedL( aCallId ); |
|
180 |
break; |
|
181 |
||
182 |
case MEngineMonitor::EPEMessageIdle: |
|
183 |
HandleIdleL( aCallId ); |
|
184 |
break; |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
185 |
|
37 | 186 |
default: |
187 |
CPhoneGsmInCall::HandlePhoneEngineMessageL( aMessage, aCallId ); |
|
188 |
break; |
|
189 |
} |
|
190 |
} |
|
191 |
||
192 |
// ----------------------------------------------------------- |
|
193 |
// CPhoneSingleAndCallSetupAndWaiting:HandleCommandL |
|
194 |
// ----------------------------------------------------------- |
|
195 |
// |
|
196 |
TBool CPhoneSingleAndCallSetupAndWaiting::HandleCommandL( TInt aCommand ) |
|
197 |
{ |
|
198 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandleCommandL() "); |
|
199 |
TBool commandStatus = ETrue; |
|
200 |
switch( aCommand ) |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
201 |
{ |
37 | 202 |
case EPhoneInCallCmdEndThisActiveCall: |
203 |
DisconnectOutgoingCallL(); |
|
204 |
break; |
|
205 |
||
206 |
case EPhoneInCallCmdEndAllCalls: |
|
207 |
iStateMachine->SendPhoneEngineMessage( |
|
208 |
MPEPhoneModel::EPEMessageReleaseAll ); |
|
209 |
break; |
|
210 |
||
211 |
case EPhoneDtmfDialerCancel: |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
212 |
break; |
37 | 213 |
|
214 |
default: |
|
215 |
commandStatus = CPhoneGsmInCall::HandleCommandL( aCommand ); |
|
216 |
break; |
|
217 |
} |
|
218 |
return commandStatus; |
|
219 |
} |
|
220 |
||
221 |
// ----------------------------------------------------------- |
|
222 |
// CPhoneSingleAndCallSetupAndWaiting:HandleIdleL |
|
223 |
// ----------------------------------------------------------- |
|
224 |
// |
|
225 |
void CPhoneSingleAndCallSetupAndWaiting::HandleIdleL( TInt aCallId ) |
|
226 |
{ |
|
227 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandleIdleL() "); |
|
228 |
// Fetch call ids for hold, ringing and alerting bubbles |
|
229 |
TInt holdCallId; |
|
230 |
TInt ringingCallId; |
|
231 |
TInt alertingCallId; |
|
232 |
TPhoneViewResponseId heldResponse; |
|
233 |
TPhoneViewResponseId ringingResponse; |
|
234 |
TPhoneViewResponseId alertingResponse; |
|
235 |
TPhoneCmdParamCallStateData callStateData; |
|
236 |
||
237 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
|
238 |
||
239 |
callStateData.SetCallState( EPEStateHeld ); |
|
240 |
heldResponse = iViewCommandHandle->HandleCommandL( |
|
241 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
242 |
holdCallId = callStateData.CallId(); |
|
243 |
||
244 |
callStateData.SetCallState( EPEStateRinging ); |
|
245 |
ringingResponse = iViewCommandHandle->HandleCommandL( |
|
246 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
247 |
ringingCallId = callStateData.CallId(); |
|
248 |
||
249 |
callStateData.SetCallState( EPEStateConnecting ); |
|
250 |
alertingResponse = iViewCommandHandle->HandleCommandL( |
|
251 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
252 |
alertingCallId = callStateData.CallId(); |
|
253 |
||
254 |
if( heldResponse != EPhoneViewResponseSuccess || |
|
255 |
ringingResponse != EPhoneViewResponseSuccess || |
|
256 |
alertingResponse != EPhoneViewResponseSuccess ) |
|
257 |
{ |
|
258 |
// Some or all call id fetches were unsuccesfull. |
|
259 |
// Terminate all connections and return to idle state. |
|
260 |
// TBD: Kill all bubbles here |
|
261 |
iStateMachine->SendPhoneEngineMessage( |
|
262 |
MPEPhoneModel::EPEMessageTerminateAllConnections ); |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
263 |
CPhoneGsmInCall::HandleIdleL( aCallId ); |
37 | 264 |
return; |
265 |
} |
|
266 |
||
267 |
// Find out which call was terminated |
|
268 |
TTerminatedCall terminatedCall = ENull; |
|
269 |
if( holdCallId < 0 ) |
|
270 |
{ |
|
271 |
terminatedCall = EHold; |
|
272 |
} |
|
273 |
else if( ringingCallId < 0 ) |
|
274 |
{ |
|
275 |
terminatedCall = ERinging; |
|
276 |
} |
|
277 |
else if( alertingCallId < 0 ) |
|
278 |
{ |
|
279 |
terminatedCall = EAlerting; |
|
280 |
} |
|
281 |
||
282 |
switch( terminatedCall ) |
|
283 |
{ |
|
284 |
case EHold: |
|
285 |
// Idle message came for hold call |
|
286 |
StateChangeToCallSetupAndWaitingL( aCallId ); |
|
287 |
break; |
|
288 |
||
289 |
case ERinging: |
|
290 |
// Idle message came for ringing call |
|
291 |
StateChangeToSingleAndAlertingL( aCallId ); |
|
292 |
break; |
|
293 |
||
294 |
case EAlerting: |
|
295 |
// Idle message came for alerting call |
|
296 |
StateChangeToSingleAndWaitingL( aCallId ); |
|
297 |
break; |
|
298 |
||
299 |
default: |
|
300 |
break; |
|
301 |
} |
|
302 |
||
303 |
} |
|
304 |
||
305 |
// ----------------------------------------------------------- |
|
306 |
// CPhoneSingleAndCallSetupAndWaiting:HandleConnectingL |
|
307 |
// ----------------------------------------------------------- |
|
308 |
// |
|
309 |
void CPhoneSingleAndCallSetupAndWaiting::HandleConnectingL( TInt aCallId ) |
|
310 |
{ |
|
311 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandleConnectingL() "); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
312 |
iNumberEntryManager->RemoveNumberEntryIfVisibilityIsFalseL(); |
37 | 313 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveGlobalNote ); |
314 |
||
315 |
TPhoneCmdParamBoolean globalNotifierParam; |
|
316 |
globalNotifierParam.SetBoolean( EFalse ); |
|
317 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
|
318 |
&globalNotifierParam ); |
|
319 |
||
320 |
BeginUiUpdateLC(); |
|
321 |
UpdateRemoteInfoDataL( aCallId ); |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
322 |
iViewCommandHandle->ExecuteCommandL( |
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
323 |
EPhoneViewUpdateBubble, |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
324 |
aCallId ); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
325 |
|
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
326 |
UpdateUiCommands(); |
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
327 |
EndUiUpdate(); |
37 | 328 |
} |
329 |
||
330 |
// ----------------------------------------------------------- |
|
331 |
// CPhoneSingleAndCallSetupAndWaiting::HandleConnectedL |
|
332 |
// ----------------------------------------------------------- |
|
333 |
// |
|
334 |
void CPhoneSingleAndCallSetupAndWaiting::HandleConnectedL( TInt aCallId ) |
|
335 |
{ |
|
336 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
337 |
"CPhoneSingleAndCallSetupAndWaiting::HandleConnectedL()"); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
338 |
|
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
339 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId ); |
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
340 |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
341 |
iNumberEntryManager->RemoveNumberEntryIfVisibilityIsFalseL(); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
342 |
|
37 | 343 |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
344 |
if ( aCallId != iWaitingCallId ) // Alerting call is connected |
37 | 345 |
{ |
346 |
StateChangeToTwoSinglesAndWaitingL( aCallId ); |
|
347 |
} |
|
348 |
else |
|
349 |
{ |
|
350 |
// Waiting call is connected while alerting call is disconnecting |
|
351 |
// (manual control sequence '1' + Send). |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
352 |
StateChangeToTwoSinglesL( aCallId ); |
37 | 353 |
} |
354 |
} |
|
355 |
||
356 |
// ----------------------------------------------------------- |
|
357 |
// CPhoneSingleAndCallSetupAndWaiting:StateChangeToCallSetupAndWaitingL |
|
358 |
// ----------------------------------------------------------- |
|
359 |
// |
|
360 |
void CPhoneSingleAndCallSetupAndWaiting::StateChangeToCallSetupAndWaitingL( TInt aCallId ) |
|
361 |
{ |
|
362 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::StateChangeToCallSetupAndWaitingL() "); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
363 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
37 | 364 |
|
365 |
BeginUiUpdateLC(); |
|
366 |
||
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
367 |
UpdateUiCommands(); |
37 | 368 |
SetToolbarButtonLoudspeakerEnabled(); |
369 |
||
370 |
EndUiUpdate(); |
|
371 |
iStateMachine->ChangeState( EPhoneStateCallSetupAndWaiting ); |
|
372 |
} |
|
373 |
||
374 |
// ----------------------------------------------------------- |
|
375 |
// CPhoneSingleAndCallSetupAndWaiting:StateChangeToSingleAndWaitingL |
|
376 |
// ----------------------------------------------------------- |
|
377 |
// |
|
378 |
void CPhoneSingleAndCallSetupAndWaiting::StateChangeToSingleAndWaitingL( TInt aCallId ) |
|
379 |
{ |
|
380 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::StateChangeToSingleAndWaitingL() "); |
|
381 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
382 |
if ( iNumberEntryManager->IsNumberEntryUsedL() ) |
37 | 383 |
{ |
384 |
TPhoneCmdParamBoolean booleanParam; |
|
385 |
booleanParam.SetBoolean( ETrue ); |
|
386 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewSetNumberEntryVisible, &booleanParam ); |
|
387 |
} |
|
388 |
||
389 |
BeginUiUpdateLC(); |
|
390 |
||
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
391 |
UpdateUiCommands(); |
37 | 392 |
|
393 |
EndUiUpdate(); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
394 |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
395 |
iStateMachine->ChangeState( EPhoneStateWaitingInSingle ); |
37 | 396 |
} |
397 |
||
398 |
// ----------------------------------------------------------- |
|
399 |
// CPhoneSingleAndCallSetupAndWaiting:StateChangeToSingleAndAlertingL |
|
400 |
// ----------------------------------------------------------- |
|
401 |
// |
|
402 |
void CPhoneSingleAndCallSetupAndWaiting::StateChangeToSingleAndAlertingL( TInt aCallId ) |
|
403 |
{ |
|
404 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::StateChangeToSingleAndAlertingL() "); |
|
405 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
406 |
iNumberEntryManager->RemoveNumberEntryIfVisibilityIsFalseL(); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
407 |
BeginUiUpdateLC(); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
408 |
UpdateUiCommands(); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
409 |
EndUiUpdate(); |
37 | 410 |
|
411 |
iStateMachine->ChangeState( EPhoneStateAlertingInSingle ); |
|
412 |
} |
|
413 |
||
414 |
// ----------------------------------------------------------- |
|
415 |
// CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL |
|
416 |
// ----------------------------------------------------------- |
|
417 |
// |
|
418 |
void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL( TInt /*aCallId*/ ) |
|
419 |
{ |
|
420 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
421 |
"CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL()"); |
|
422 |
BeginUiUpdateLC(); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
423 |
UpdateUiCommands(); |
37 | 424 |
EndUiUpdate(); |
425 |
||
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
426 |
iStateMachine->ChangeState( EPhoneStateTwoSingles ); |
37 | 427 |
} |
428 |
||
429 |
// ----------------------------------------------------------- |
|
430 |
// CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL |
|
431 |
// ----------------------------------------------------------- |
|
432 |
// |
|
433 |
void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL( TInt /*aCallId*/ ) |
|
434 |
{ |
|
435 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
436 |
"CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL()"); |
|
437 |
BeginUiUpdateLC(); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
438 |
UpdateUiCommands(); |
37 | 439 |
EndUiUpdate(); |
440 |
||
441 |
iStateMachine->ChangeState( EPhoneStateTwoSinglesAndWaiting ); |
|
442 |
} |
|
443 |
||
444 |
||
445 |
// End of File |