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 CPhoneSingleAndWaiting class. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
// INCLUDES |
|
20 |
#include <eikmenub.h> |
|
21 |
#include <eikenv.h> |
|
22 |
#include <StringLoader.h> |
|
23 |
#include <featmgr.h> |
|
24 |
#include <pevirtualengine.h> |
|
25 |
#include <mpeengineinfo.h> |
|
26 |
#include <telephonyvariant.hrh> |
|
27 |
#include <cpephonemodelif.h> |
|
28 |
#include "cphonesingleandwaiting.h" |
|
29 |
#include "mphonestatemachine.h" |
|
30 |
#include "phoneviewcommanddefinitions.h" |
|
31 |
#include "phoneui.hrh" |
|
32 |
#include "cphonemainresourceresolver.h" |
|
33 |
#include "phonerssbase.h" |
|
34 |
#include "cphonegsmincall.h" |
|
35 |
#include "tphonecmdparaminteger.h" |
|
36 |
#include "tphonecmdparamboolean.h" |
|
37 |
#include "tphonecmdparamstring.h" |
|
38 |
#include "tphonecmdparamcallheaderdata.h" |
|
39 |
#include "tphonecmdparamglobalnote.h" |
|
40 |
#include "tphonecmdparamcallstatedata.h" |
|
41 |
#include "phonestatedefinitionsgsm.h" |
|
42 |
#include "phonelogger.h" |
|
43 |
#include "cphonecenrepproxy.h" |
|
44 |
#include "cphonepubsubproxy.h" |
|
45 |
#include "mphonestorage.h" |
|
46 |
||
47 |
// ================= MEMBER FUNCTIONS ======================= |
|
48 |
||
49 |
// C++ default constructor can NOT contain any code, that |
|
50 |
// might leave. |
|
51 |
// |
|
52 |
CPhoneSingleAndWaiting::CPhoneSingleAndWaiting( |
|
53 |
MPhoneStateMachine* aStateMachine, |
|
54 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
55 |
MPhoneCustomization* aPhoneCustomization ) : |
|
56 |
CPhoneGsmInCall( aStateMachine, aViewCommandHandle, aPhoneCustomization ), |
|
57 |
iSingleCallId ( KErrNotFound ) |
|
58 |
{ |
|
59 |
} |
|
60 |
||
61 |
// ----------------------------------------------------------- |
|
62 |
// CPhoneSingleAndWaiting::~CPhoneSingleAndWaiting() |
|
63 |
// ----------------------------------------------------------- |
|
64 |
// |
|
65 |
CPhoneSingleAndWaiting::~CPhoneSingleAndWaiting() |
|
66 |
{ |
|
67 |
} |
|
68 |
||
69 |
// ----------------------------------------------------------- |
|
70 |
// CPhoneSingleAndWaiting::ConstructL() |
|
71 |
// ----------------------------------------------------------- |
|
72 |
// |
|
73 |
void CPhoneSingleAndWaiting::ConstructL() |
|
74 |
{ |
|
75 |
CPhoneGsmInCall::ConstructL(); |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
76 |
|
37 | 77 |
TPhoneCmdParamCallStateData callStateData; |
78 |
callStateData.SetCallState( EPEStateConnected ); |
|
79 |
iViewCommandHandle->HandleCommandL( |
|
80 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
81 |
||
82 |
if ( callStateData.CallId() == KErrNotFound ) |
|
83 |
{ |
|
84 |
callStateData.SetCallState( EPEStateHeld ); |
|
85 |
iViewCommandHandle->HandleCommandL( |
|
86 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
87 |
} |
|
88 |
iSingleCallId = callStateData.CallId(); |
|
89 |
__PHONELOG1( EBasic, EPhoneUIStates, |
|
90 |
"CPhoneSingleAndWaiting::ConstructL() (iSingleCallId=%d)", iSingleCallId); |
|
91 |
} |
|
92 |
||
93 |
// ----------------------------------------------------------- |
|
94 |
// CPhoneSingleAndWaiting::NewL() |
|
95 |
// ----------------------------------------------------------- |
|
96 |
// |
|
97 |
CPhoneSingleAndWaiting* CPhoneSingleAndWaiting::NewL( |
|
98 |
MPhoneStateMachine* aStateMachine, |
|
99 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
100 |
MPhoneCustomization* aPhoneCustomization ) |
|
101 |
{ |
|
102 |
CPhoneSingleAndWaiting* self = new( ELeave ) CPhoneSingleAndWaiting( |
|
103 |
aStateMachine, aViewCommandHandle, aPhoneCustomization ); |
|
104 |
||
105 |
CleanupStack::PushL( self ); |
|
106 |
self->ConstructL(); |
|
107 |
CleanupStack::Pop( self ); |
|
108 |
||
109 |
return self; |
|
110 |
} |
|
111 |
||
112 |
// ----------------------------------------------------------- |
|
113 |
// CPhoneSingleAndWaiting::HandlePhoneEngineMessageL |
|
114 |
// ----------------------------------------------------------- |
|
115 |
// |
|
116 |
void CPhoneSingleAndWaiting::HandlePhoneEngineMessageL( |
|
117 |
const TInt aMessage, |
|
118 |
TInt aCallId ) |
|
119 |
{ |
|
120 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
121 |
"CPhoneSingleAndWaiting::HandlePhoneEngineMessageL() "); |
|
122 |
switch ( aMessage ) |
|
123 |
{ |
|
124 |
case MEngineMonitor::EPEMessageIdle: |
|
125 |
HandleIdleL( aCallId ); |
|
126 |
break; |
|
127 |
||
128 |
case MEngineMonitor::EPEMessageHeld: |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
129 |
UpdateBubbleAndUICommandsL( aCallId ); |
37 | 130 |
break; |
131 |
||
132 |
case MEngineMonitor::EPEMessageConnected: |
|
133 |
HandleConnectedL( aCallId ); |
|
134 |
break; |
|
135 |
||
136 |
case MEngineMonitor::EPEMessageDialing: |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
137 |
HandleDialingL( aCallId ); |
37 | 138 |
break; |
139 |
||
140 |
case MEngineMonitor::EPEMessageDisconnecting: |
|
141 |
HandleDisconnectingL( aCallId ); |
|
142 |
/* Flow through */ |
|
143 |
||
144 |
default: |
|
145 |
CPhoneGsmInCall::HandlePhoneEngineMessageL( aMessage, aCallId ); |
|
146 |
break; |
|
147 |
} |
|
148 |
} |
|
149 |
||
150 |
// ----------------------------------------------------------- |
|
151 |
// CPhoneSingleAndWaiting:HandleCommandL |
|
152 |
// ----------------------------------------------------------- |
|
153 |
// |
|
154 |
TBool CPhoneSingleAndWaiting::HandleCommandL( TInt aCommand ) |
|
155 |
{ |
|
156 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
157 |
"CPhoneSingleAndWaiting::HandleCommandL() "); |
|
158 |
TBool commandStatus = ETrue; |
|
159 |
switch( aCommand ) |
|
160 |
{ |
|
161 |
case EPhoneInCallCmdHold: |
|
162 |
{ |
|
163 |
iStateMachine->SetCallId( iSingleCallId ); |
|
164 |
iStateMachine->SendPhoneEngineMessage( |
|
165 |
CPEPhoneModelIF::EPEMessageHold ); |
|
166 |
break; |
|
167 |
} |
|
168 |
||
169 |
case EPhoneInCallCmdUnhold: |
|
170 |
{ |
|
171 |
iStateMachine->SetCallId( iSingleCallId ); |
|
172 |
iStateMachine->SendPhoneEngineMessage( |
|
173 |
CPEPhoneModelIF::EPEMessageResume ); |
|
174 |
break; |
|
175 |
} |
|
176 |
||
177 |
case EPhoneInCallCmdNewCall: |
|
178 |
break; |
|
179 |
||
180 |
case EPhoneCallComingCmdReject: // fall through |
|
181 |
{ |
|
182 |
// Get waiting callid |
|
183 |
TPhoneCmdParamCallStateData callStateData; |
|
184 |
callStateData.SetCallState( EPEStateRinging ); |
|
185 |
iViewCommandHandle->HandleCommandL( EPhoneViewGetCallIdByState, |
|
186 |
&callStateData ); |
|
187 |
iStateMachine->SetCallId( callStateData.CallId() ); |
|
188 |
iStateMachine->SendPhoneEngineMessage( |
|
189 |
MPEPhoneModel::EPEMessageReject ); |
|
190 |
break; |
|
191 |
} |
|
192 |
||
193 |
case EPhoneInCallCmdReject: |
|
194 |
iStateMachine->SetCallId( iSingleCallId ); |
|
195 |
iStateMachine->SendPhoneEngineMessage( |
|
196 |
MPEPhoneModel::EPEMessageReject ); |
|
197 |
break; |
|
198 |
||
199 |
case EPhoneCmdUpdateUiControls: |
|
200 |
UpdateUiControlsL(); |
|
201 |
break; |
|
202 |
||
203 |
default: |
|
204 |
commandStatus = CPhoneGsmInCall::HandleCommandL( aCommand ); |
|
205 |
break; |
|
206 |
} |
|
207 |
return commandStatus; |
|
208 |
} |
|
209 |
||
210 |
// -------------------------------------------------------------- |
|
211 |
// CPhoneSingleAndWaiting::HandleKeyMessageL |
|
212 |
// -------------------------------------------------------------- |
|
213 |
// |
|
214 |
void CPhoneSingleAndWaiting::HandleKeyMessageL( |
|
215 |
TPhoneKeyEventMessages aMessage, |
|
216 |
TKeyCode aCode ) |
|
217 |
{ |
|
218 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
219 |
"CPhoneSingleAndWaiting::HandleKeyMessageL() "); |
|
220 |
switch ( aCode ) |
|
221 |
{ |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
222 |
case EKeyYes: // send-key |
37 | 223 |
{ |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
224 |
if( iNumberEntryManager->IsNumberEntryVisibleL() ) |
37 | 225 |
{ |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
226 |
iNumberEntryManager->CallFromNumberEntryL(); |
37 | 227 |
} |
228 |
else |
|
229 |
{ |
|
230 |
// Close DTMF sending note if it exists |
|
231 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNote ); |
|
232 |
iStateMachine->SendPhoneEngineMessage( |
|
233 |
CPEPhoneModelIF::EPEMessageAnswer ); |
|
234 |
} |
|
235 |
break; |
|
236 |
} |
|
237 |
||
238 |
default: |
|
239 |
CPhoneGsmInCall::HandleKeyMessageL( aMessage, aCode ); |
|
240 |
break; |
|
241 |
} |
|
242 |
} |
|
243 |
||
244 |
// ----------------------------------------------------------- |
|
245 |
// CPhoneSingleAndWaiting::HandleIdleL |
|
246 |
// ----------------------------------------------------------- |
|
247 |
// |
|
248 |
void CPhoneSingleAndWaiting::HandleIdleL( TInt aCallId ) |
|
249 |
{ |
|
250 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
251 |
"CPhoneSingleAndWaiting::HandleIdleL() "); |
|
252 |
||
253 |
if ( iSingleCallId == KErrNotFound ) |
|
254 |
{ |
|
255 |
TPhoneCmdParamCallStateData callStateData; |
|
256 |
callStateData.SetCallState( EPEStateDisconnecting ); |
|
257 |
iViewCommandHandle->HandleCommandL( |
|
258 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
259 |
||
260 |
if ( callStateData.CallId() == KErrNotFound ) |
|
261 |
{ |
|
262 |
callStateData.SetCallState( EPEStateConnected ); |
|
263 |
iViewCommandHandle->HandleCommandL( |
|
264 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
265 |
||
266 |
if ( callStateData.CallId() == KErrNotFound ) |
|
267 |
{ |
|
268 |
callStateData.SetCallState( EPEStateHeld ); |
|
269 |
iViewCommandHandle->HandleCommandL( |
|
270 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
271 |
} |
|
272 |
} |
|
273 |
iSingleCallId = callStateData.CallId(); |
|
274 |
} |
|
275 |
||
276 |
__PHONELOG1( EBasic, EPhoneControl, |
|
277 |
"CPhoneSingleAndWaiting::HandleIdleL iSingleCallId(%d)", |
|
278 |
iSingleCallId ); |
|
279 |
__PHONELOG1( EBasic, EPhoneControl, |
|
280 |
"CPhoneSingleAndWaiting::HandleIdleL aCallId(%d)", |
|
281 |
aCallId ); |
|
282 |
||
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
283 |
// Idle message came for active call |
37 | 284 |
if( iSingleCallId == aCallId ) |
285 |
{ |
|
286 |
BeginUiUpdateLC(); |
|
287 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
|
288 |
||
289 |
// Get waiting callId |
|
290 |
TPhoneCmdParamCallStateData callStateData; |
|
291 |
callStateData.SetCallState( EPEStateRinging ); |
|
292 |
iViewCommandHandle->HandleCommandL( EPhoneViewGetCallIdByState, |
|
293 |
&callStateData ); |
|
294 |
||
295 |
__PHONELOG1( EBasic, EPhoneControl, |
|
296 |
"CPhoneSingleAndWaiting::HandleIdleL EPEStateRinging CallId(%d)", |
|
297 |
callStateData.CallId() ); |
|
298 |
||
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
299 |
// Display ringing bubble |
37 | 300 |
if ( callStateData.CallId() > KErrNotFound ) |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
301 |
{ |
37 | 302 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
303 |
callStateData.CallId() ); |
37 | 304 |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
305 |
if ( iNumberEntryManager->IsNumberEntryVisibleL() ) |
37 | 306 |
{ |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
307 |
iNumberEntryManager->SetNumberEntryVisibilityL(EFalse); |
37 | 308 |
} |
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
309 |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
310 |
SetRingingTonePlaybackL( callStateData.CallId() ); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
311 |
UpdateUiCommands(); |
37 | 312 |
BringIncomingToForegroundL(); |
313 |
} |
|
314 |
SetBackButtonActive(EFalse); |
|
315 |
EndUiUpdate(); |
|
316 |
iStateMachine->ChangeState( EPhoneStateIncoming ); |
|
317 |
} |
|
318 |
else |
|
319 |
{ |
|
320 |
BeginUiUpdateLC(); |
|
321 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
|
322 |
||
323 |
// Idle message came for waiting call |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
324 |
if ( iNumberEntryManager->IsNumberEntryUsedL() ) |
37 | 325 |
{ |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
326 |
iNumberEntryManager->SetNumberEntryVisibilityL(ETrue); |
37 | 327 |
} |
328 |
||
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
329 |
UpdateUiCommands(); |
37 | 330 |
EndUiUpdate(); |
331 |
iStateMachine->ChangeState( EPhoneStateSingle ); |
|
332 |
} |
|
333 |
||
334 |
} |
|
335 |
||
336 |
||
337 |
||
338 |
// ----------------------------------------------------------- |
|
339 |
// CPhoneSingleAndWaiting::HandleConnectedL |
|
340 |
// ----------------------------------------------------------- |
|
341 |
// |
|
342 |
void CPhoneSingleAndWaiting::HandleConnectedL( TInt aCallId ) |
|
343 |
{ |
|
344 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
345 |
"CPhoneSingleAndWaiting::HandleConnectedL() "); |
|
346 |
__PHONELOG1( EBasic, EPhoneUIStates, |
|
347 |
"CPhoneSingleAndWaiting::HandleConnectedL (CallId=%d)", aCallId); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
348 |
|
37 | 349 |
if ( iSingleCallId == aCallId ) |
350 |
{ |
|
351 |
// Connected message came for the hold call, we still |
|
352 |
// have the waiting call also |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
353 |
UpdateBubbleAndUICommandsL( aCallId ); |
37 | 354 |
} |
355 |
else |
|
356 |
{ |
|
357 |
// Connected message came for waiting call |
|
358 |
MakeStateTransitionToTwoSinglesL( aCallId ); |
|
359 |
} |
|
360 |
} |
|
361 |
||
362 |
// ----------------------------------------------------------- |
|
363 |
// CPhoneSingleAndWaiting::HandleUnholdL |
|
364 |
// ----------------------------------------------------------- |
|
365 |
// |
|
366 |
void CPhoneSingleAndWaiting::HandleUnholdL( TInt aCallId ) |
|
367 |
{ |
|
368 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
369 |
"CPhoneSingleAndWaiting::HandleUnholdL() "); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
370 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId ); |
37 | 371 |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
372 |
UpdateUiCommands(); |
37 | 373 |
} |
374 |
||
375 |
// ----------------------------------------------------------- |
|
376 |
// CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL |
|
377 |
// ----------------------------------------------------------- |
|
378 |
// |
|
379 |
void CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL( TInt aCallId ) |
|
380 |
{ |
|
381 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
382 |
"CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL() "); |
|
383 |
||
384 |
BeginUiUpdateLC(); |
|
385 |
||
386 |
UpdateRemoteInfoDataL ( aCallId ); |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
387 |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
388 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId ); |
37 | 389 |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
390 |
if ( iNumberEntryManager->IsNumberEntryUsedL() ) |
37 | 391 |
{ |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
392 |
iNumberEntryManager->SetNumberEntryVisibilityL(ETrue); |
37 | 393 |
} |
394 |
||
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
395 |
UpdateUiCommands(); |
37 | 396 |
EndUiUpdate(); |
397 |
iStateMachine->ChangeState( EPhoneStateTwoSingles ); |
|
398 |
} |
|
399 |
||
400 |
// ----------------------------------------------------------- |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
401 |
// CPhoneSingleAndWaiting::HandleDialingL |
37 | 402 |
// ----------------------------------------------------------- |
403 |
// |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
404 |
void CPhoneSingleAndWaiting::HandleDialingL( TInt aCallId ) |
37 | 405 |
{ |
406 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
407 |
"CPhoneSingleAndWaiting::HandleDialingL() "); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
408 |
DisplayCallHeaderL( aCallId, ESetNEVisibilityFalse); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
409 |
iStateMachine->ChangeState( EPhoneStateSingleAndCallSetupAndWaiting ); |
37 | 410 |
} |
411 |
||
412 |
// ----------------------------------------------------------- |
|
413 |
// CPhoneSingleAndWaiting::HandleErrorL |
|
414 |
// ----------------------------------------------------------- |
|
415 |
// |
|
416 |
EXPORT_C void CPhoneSingleAndWaiting::HandleErrorL( const TPEErrorInfo& aErrorInfo ) |
|
417 |
{ |
|
418 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndWaiting::HandleErrorL()"); |
|
419 |
if( aErrorInfo.iErrorCode == ECCPErrorCCUserAlertingNoAnswer ) |
|
420 |
{ |
|
421 |
// Should not shown "Not Allowed" note, if active call. |
|
422 |
__PHONELOG1( EBasic, EPhoneUIStates, |
|
423 |
"PhoneUIControl: CPhoneSingleAndWaiting::HandleErrorL - aErrorInfo.iErrorCode =%d ", |
|
424 |
aErrorInfo.iErrorCode); |
|
425 |
} |
|
426 |
else |
|
427 |
{ |
|
428 |
CPhoneState::HandleErrorL( aErrorInfo ); |
|
429 |
} |
|
430 |
} |
|
431 |
||
432 |
// ----------------------------------------------------------- |
|
433 |
// CPhoneSingleAndWaiting::HandleDisconnectingL |
|
434 |
// ----------------------------------------------------------- |
|
435 |
// |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
436 |
void CPhoneSingleAndWaiting::HandleDisconnectingL( TInt /*aCallId*/ ) |
37 | 437 |
{ |
438 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndWaiting::HandleDisconnectingL( ) "); |
|
439 |
} |
|
440 |
||
441 |
// ----------------------------------------------------------- |
|
442 |
// CPhoneSingleAndWaiting::UpdateUiControlsL |
|
443 |
// ----------------------------------------------------------- |
|
444 |
// |
|
445 |
void CPhoneSingleAndWaiting::UpdateUiControlsL() |
|
446 |
{ |
|
447 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndWaiting::UpdateUiControlsL( ) "); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
448 |
UpdateUiCommands(); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
449 |
} |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
450 |
|
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
451 |
// ----------------------------------------------------------- |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
452 |
// Updates bubble and ui commands |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
453 |
// ----------------------------------------------------------- |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
454 |
// |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
455 |
void CPhoneSingleAndWaiting::UpdateBubbleAndUICommandsL( |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
456 |
TInt aCallId ) |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
457 |
{ |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
458 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
459 |
"CPhoneSingleAndWaiting::UpdateBubbleAndUICommandsL() "); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
460 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId ); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
461 |
|
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
462 |
UpdateUiCommands(); |
37 | 463 |
} |
464 |
||
465 |
// End of File |