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 CPhoneConferenceAndWaiting class. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
// INCLUDES |
|
20 |
#include <StringLoader.h> |
|
21 |
#include <cpephonemodelif.h> |
|
22 |
#include <featmgr.h> |
|
23 |
#include <telephonyvariant.hrh> |
|
24 |
#include "cphoneconferenceandwaiting.h" |
|
25 |
#include "mphonestatemachine.h" |
|
26 |
#include "phoneviewcommanddefinitions.h" |
|
27 |
#include "tphonecmdparamcallheaderdata.h" |
|
28 |
#include "phonestatedefinitionsgsm.h" |
|
29 |
#include "phonelogger.h" |
|
30 |
#include "tphonecmdparamboolean.h" |
|
31 |
#include "tphonecmdparaminteger.h" |
|
32 |
#include "tphonecmdparamcallstatedata.h" |
|
33 |
#include "cphonemainresourceresolver.h" |
|
34 |
#include "phonerssbase.h" |
|
35 |
#include "tphonecmdparamglobalnote.h" |
|
36 |
#include "phoneui.hrh" |
|
37 |
#include "cphonecenrepproxy.h" |
|
38 |
#include "mphonestorage.h" |
|
39 |
||
40 |
// ================= MEMBER FUNCTIONS ======================= |
|
41 |
||
42 |
// C++ default constructor can NOT contain any code, that |
|
43 |
// might leave. |
|
44 |
// |
|
45 |
CPhoneConferenceAndWaiting::CPhoneConferenceAndWaiting( |
|
46 |
MPhoneStateMachine* aStateMachine, |
|
47 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
48 |
MPhoneCustomization* aPhoneCustomization ) : |
|
49 |
CPhoneConference( aStateMachine, aViewCommandHandle, aPhoneCustomization ) |
|
50 |
{ |
|
51 |
} |
|
52 |
||
53 |
// ----------------------------------------------------------- |
|
54 |
// CPhoneConferenceAndWaiting::~CPhoneConferenceAndWaiting() |
|
55 |
// Destructor |
|
56 |
// (other items were commented in a header). |
|
57 |
// ----------------------------------------------------------- |
|
58 |
// |
|
59 |
CPhoneConferenceAndWaiting::~CPhoneConferenceAndWaiting() |
|
60 |
{ |
|
61 |
} |
|
62 |
||
63 |
// ----------------------------------------------------------- |
|
64 |
// CPhoneConferenceAndWaiting::ConstructL() |
|
65 |
// Constructor |
|
66 |
// (other items were commented in a header). |
|
67 |
// ----------------------------------------------------------- |
|
68 |
// |
|
69 |
void CPhoneConferenceAndWaiting::ConstructL() |
|
70 |
{ |
|
71 |
CPhoneConference::ConstructL(); |
|
72 |
||
73 |
TPhoneCmdParamCallStateData callStateData; |
|
74 |
callStateData.SetCallState( EPEStateRinging ); |
|
75 |
iViewCommandHandle->HandleCommandL( |
|
76 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
77 |
iRingingCallId = callStateData.CallId(); |
|
78 |
} |
|
79 |
||
80 |
// ----------------------------------------------------------- |
|
81 |
// CPhoneConferenceAndWaiting::NewL() |
|
82 |
// Constructor |
|
83 |
// (other items were commented in a header). |
|
84 |
// ----------------------------------------------------------- |
|
85 |
// |
|
86 |
CPhoneConferenceAndWaiting* CPhoneConferenceAndWaiting::NewL( |
|
87 |
MPhoneStateMachine* aStateMachine, |
|
88 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
89 |
MPhoneCustomization* aPhoneCustomization ) |
|
90 |
{ |
|
91 |
CPhoneConferenceAndWaiting* self = new( ELeave ) CPhoneConferenceAndWaiting( |
|
92 |
aStateMachine, aViewCommandHandle, aPhoneCustomization ); |
|
93 |
||
94 |
CleanupStack::PushL( self ); |
|
95 |
self->ConstructL(); |
|
96 |
CleanupStack::Pop( self ); |
|
97 |
||
98 |
return self; |
|
99 |
} |
|
100 |
||
101 |
// ----------------------------------------------------------- |
|
102 |
// CPhoneConferenceAndWaiting::HandlePhoneEngineMessageL |
|
103 |
// ----------------------------------------------------------- |
|
104 |
// |
|
105 |
void CPhoneConferenceAndWaiting::HandlePhoneEngineMessageL( |
|
106 |
const TInt aMessage, |
|
107 |
TInt aCallId ) |
|
108 |
{ |
|
109 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneConferenceAndWaiting::HandlePhoneEngineMessageL()"); |
|
110 |
switch ( aMessage ) |
|
111 |
{ |
|
112 |
case MEngineMonitor::EPEMessageIdle: |
|
113 |
HandleIdleL( aCallId ); |
|
114 |
break; |
|
115 |
||
116 |
case MEngineMonitor::EPEMessageConnected: |
|
117 |
HandleConnectedL( aCallId ); |
|
118 |
break; |
|
119 |
||
120 |
case MEngineMonitor::EPEMessageDialing: |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
121 |
HandleDialingL( aCallId ); |
37 | 122 |
break; |
123 |
||
124 |
case MEngineMonitor::EPEMessageConferenceIdle: |
|
125 |
HandleConferenceIdleL(); |
|
126 |
break; |
|
127 |
||
128 |
case MEngineMonitor::EPEMessageWentOneToOne: |
|
129 |
HandleWentOneToOneL( aCallId ); |
|
130 |
break; |
|
131 |
||
132 |
case MEngineMonitor::EPEMessageHeldConference: |
|
133 |
case MEngineMonitor::EPEMessageConnectedConference: |
|
134 |
{ |
|
135 |
TPhoneCmdParamInteger callIdParam; |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
136 |
iViewCommandHandle->ExecuteCommand( |
37 | 137 |
EPhoneViewGetExpandedBubbleCallId, &callIdParam ); |
138 |
CPhoneConference::HandlePhoneEngineMessageL( aMessage, |
|
139 |
aCallId ); |
|
140 |
if ( KConferenceCallId == callIdParam.Integer() ) |
|
141 |
{ |
|
142 |
iViewCommandHandle->ExecuteCommand(EPhoneSetConferenceExpanded); |
|
143 |
} |
|
144 |
} |
|
145 |
break; |
|
146 |
||
147 |
default: |
|
148 |
CPhoneConference::HandlePhoneEngineMessageL( aMessage, |
|
149 |
aCallId ); |
|
150 |
break; |
|
151 |
} |
|
152 |
} |
|
153 |
||
154 |
// -------------------------------------------------------------- |
|
155 |
// CPhoneConferenceAndWaiting::HandleKeyMessageL |
|
156 |
// -------------------------------------------------------------- |
|
157 |
// |
|
158 |
void CPhoneConferenceAndWaiting::HandleKeyMessageL( |
|
159 |
TPhoneKeyEventMessages aMessage, |
|
160 |
TKeyCode aCode ) |
|
161 |
{ |
|
162 |
__LOGMETHODSTARTEND(EPhoneUIStates, "CPhoneConferenceAndWaiting::HandleKeyMessageL()"); |
|
163 |
switch ( aCode ) |
|
164 |
{ |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
165 |
case EKeyYes: // send-key |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
166 |
if( iNumberEntryManager->IsNumberEntryVisibleL() ) |
37 | 167 |
{ |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
168 |
iNumberEntryManager->CallFromNumberEntryL(); |
37 | 169 |
} |
170 |
else |
|
171 |
{ |
|
172 |
iStateMachine->SendPhoneEngineMessage( |
|
173 |
MPEPhoneModel::EPEMessageAnswer ); |
|
174 |
} |
|
175 |
break; |
|
176 |
||
177 |
default: |
|
178 |
CPhoneConference::HandleKeyMessageL( aMessage, aCode ); |
|
179 |
break; |
|
180 |
} |
|
181 |
} |
|
182 |
||
183 |
||
184 |
// ----------------------------------------------------------- |
|
185 |
// CPhoneConferenceAndWaiting::HandleConnectedL |
|
186 |
// ----------------------------------------------------------- |
|
187 |
// |
|
188 |
void CPhoneConferenceAndWaiting::HandleConnectedL( TInt aCallId ) |
|
189 |
{ |
|
190 |
__LOGMETHODSTARTEND(EPhoneUIStates, "CPhoneConferenceAndWaiting::HandleConnectedL()"); |
|
191 |
TPhoneCmdParamCallStateData callStateData; |
|
192 |
if ( iRingingCallId == KErrNotFound ) |
|
193 |
{ |
|
194 |
TPhoneCmdParamCallStateData callStateData; |
|
195 |
callStateData.SetCallState( EPEStateRinging ); |
|
196 |
iViewCommandHandle->HandleCommandL( |
|
197 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
198 |
iRingingCallId = callStateData.CallId(); |
|
199 |
} |
|
200 |
||
201 |
if ( iRingingCallId == aCallId ) |
|
202 |
{ |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
203 |
// not a member of conference call |
37 | 204 |
MakeStateTransitionToConferenceAndSingleL( aCallId ); |
205 |
} |
|
206 |
else |
|
207 |
{ |
|
208 |
// member of conference call which is on hold |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
209 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId ); |
37 | 210 |
} |
211 |
} |
|
212 |
||
213 |
// ----------------------------------------------------------- |
|
214 |
// CPhoneConferenceAndWaiting::MakeStateTransitionToConferenceAndSingleL |
|
215 |
// ----------------------------------------------------------- |
|
216 |
// |
|
217 |
void CPhoneConferenceAndWaiting::MakeStateTransitionToConferenceAndSingleL( TInt aCallId ) |
|
218 |
{ |
|
219 |
__LOGMETHODSTARTEND(EPhoneUIStates, "CPhoneConferenceAndWaiting::MakeStateTransitionToConferenceAndSingleL()"); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
220 |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
221 |
BeginUiUpdateLC(); |
37 | 222 |
UpdateRemoteInfoDataL ( aCallId ); |
223 |
||
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
224 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId ); |
37 | 225 |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
226 |
iNumberEntryManager->SetVisibilityIfNumberEntryUsedL( ETrue ); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
227 |
UpdateUiCommands(); |
37 | 228 |
EndUiUpdate(); |
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
229 |
iStateMachine->ChangeState( EPhoneStateConferenceAndSingle ); |
37 | 230 |
} |
231 |
||
232 |
// ----------------------------------------------------------- |
|
233 |
// CPhoneConferenceAndWaiting::HandleIdleL |
|
234 |
// ----------------------------------------------------------- |
|
235 |
// |
|
236 |
void CPhoneConferenceAndWaiting::HandleIdleL( TInt aCallId ) |
|
237 |
{ |
|
238 |
__LOGMETHODSTARTEND(EPhoneUIStates, "CPhoneConferenceAndWaiting::HandleIdleL()"); |
|
239 |
if ( iRingingCallId == KErrNotFound ) |
|
240 |
{ |
|
241 |
TPhoneCmdParamCallStateData callStateData; |
|
242 |
callStateData.SetCallState( EPEStateRinging ); |
|
243 |
iViewCommandHandle->HandleCommandL( |
|
244 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
245 |
iRingingCallId = callStateData.CallId(); |
|
246 |
} |
|
247 |
||
248 |
if( iRingingCallId == aCallId ) |
|
249 |
{ |
|
250 |
||
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
251 |
BeginUiUpdateLC(); |
37 | 252 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
253 |
iNumberEntryManager->SetVisibilityIfNumberEntryUsedL(ETrue); |
37 | 254 |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
255 |
UpdateUiCommands(); |
37 | 256 |
EndUiUpdate(); |
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
257 |
iStateMachine->ChangeState( EPhoneStateConference ); |
37 | 258 |
} |
259 |
else |
|
260 |
{ |
|
261 |
// Idle message came for conference member |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
262 |
CPhoneConference::HandleIdleL( aCallId ); |
37 | 263 |
|
264 |
TPhoneCmdParamBoolean conferenceBubbleExists; |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
265 |
iViewCommandHandle->ExecuteCommandL( |
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
266 |
EPhoneViewGetIsConference, |
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
267 |
&conferenceBubbleExists ); |
37 | 268 |
if( !conferenceBubbleExists.Boolean() ) |
269 |
{ |
|
270 |
HandleConferenceIdleL(); |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
271 |
} |
37 | 272 |
} |
273 |
} |
|
274 |
||
275 |
// ----------------------------------------------------------- |
|
276 |
// CPhoneConferenceAndWaiting::HandleConferenceIdleL |
|
277 |
// ----------------------------------------------------------- |
|
278 |
// |
|
279 |
void CPhoneConferenceAndWaiting::HandleConferenceIdleL() |
|
280 |
{ |
|
281 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneConferenceAndWaiting::HandleConferenceIdleL()"); |
|
282 |
BeginUiUpdateLC(); |
|
283 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveConferenceBubble ); |
|
284 |
||
285 |
TPhoneCmdParamInteger activeCallCount; |
|
286 |
iViewCommandHandle->ExecuteCommandL( |
|
287 |
EPhoneViewGetCountOfActiveCalls, &activeCallCount ); |
|
288 |
switch( activeCallCount.Integer() ) |
|
289 |
{ |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
290 |
case ENoActiveCalls: // Go to incoming state |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
291 |
{ |
37 | 292 |
BringIncomingToForegroundL(); |
293 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
294 |
iRingingCallId ); |
37 | 295 |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
296 |
if ( iNumberEntryManager->IsNumberEntryVisibleL() ) |
37 | 297 |
{ |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
298 |
iNumberEntryManager->SetNumberEntryVisibilityL(EFalse); |
37 | 299 |
} |
300 |
||
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
301 |
SetRingingTonePlaybackL( iRingingCallId ); |
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
302 |
UpdateUiCommands(); |
37 | 303 |
SetBackButtonActive(EFalse); |
304 |
iStateMachine->ChangeState( EPhoneStateIncoming ); |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
305 |
} |
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
306 |
break; |
37 | 307 |
|
308 |
case EOneActiveCall: |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
309 |
iNumberEntryManager->SetVisibilityIfNumberEntryUsedL( ETrue ); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
310 |
UpdateUiCommands(); |
37 | 311 |
iStateMachine->ChangeState( EPhoneStateWaitingInSingle ); |
312 |
break; |
|
313 |
||
314 |
case ETwoActiveCalls: |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
315 |
iNumberEntryManager->SetVisibilityIfNumberEntryUsedL( ETrue ); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
316 |
|
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
317 |
UpdateUiCommands(); |
37 | 318 |
iStateMachine->ChangeState( EPhoneStateTwoSinglesAndWaiting ); |
319 |
break; |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
320 |
|
37 | 321 |
default: |
322 |
// Too many active calls to handle reliable state change now. |
|
323 |
// Waiting for all conference member idles |
|
324 |
// This case may happen when 'End all calls' because conferenceIdle may |
|
325 |
// come earlier than idle for conference member |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
326 |
break; |
37 | 327 |
} |
328 |
EndUiUpdate(); |
|
329 |
} |
|
330 |
||
331 |
// ----------------------------------------------------------- |
|
332 |
// CPhoneConferenceAndWaiting::HandleDiallingL |
|
333 |
// ----------------------------------------------------------- |
|
334 |
// |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
335 |
void CPhoneConferenceAndWaiting::HandleDialingL( TInt aCallId ) |
37 | 336 |
{ |
337 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
338 |
"CPhoneConferenceAndWaiting::HandleDialingL()"); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
339 |
DisplayCallHeaderL( aCallId, ESetNEVisibilityFalse ); |
37 | 340 |
iStateMachine->ChangeState( EPhoneStateConferenceAndWaitingAndCallSetup ); |
341 |
} |
|
342 |
||
343 |
// ----------------------------------------------------------- |
|
344 |
// CPhoneConferenceAndWaiting::HandleWentOneToOneL |
|
345 |
// ----------------------------------------------------------- |
|
346 |
// |
|
347 |
void CPhoneConferenceAndWaiting::HandleWentOneToOneL( TInt aCallId ) |
|
348 |
{ |
|
349 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
350 |
"CPhoneConferenceAndWaiting::HandleWentOneToOneL()"); |
|
351 |
BeginUiUpdateLC(); |
|
352 |
iViewCommandHandle->ExecuteCommandL( |
|
353 |
EPhoneViewPrivateFromConference, aCallId ); |
|
354 |
||
355 |
if ( iRingingCallId == KErrNotFound ) |
|
356 |
{ |
|
357 |
TPhoneCmdParamCallStateData callStateData; |
|
358 |
callStateData.SetCallState( EPEStateRinging ); |
|
359 |
iViewCommandHandle->HandleCommandL( |
|
360 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
361 |
iRingingCallId = callStateData.CallId(); |
37 | 362 |
} |
363 |
||
364 |
TPhoneCmdParamBoolean conferenceBubbleExists; |
|
365 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewGetIsConference, |
|
72
c76a0b1755b9
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
366 |
&conferenceBubbleExists ); |
37 | 367 |
if( conferenceBubbleExists.Boolean() && |
368 |
( iRingingCallId != KErrNotFound ) ) |
|
369 |
{ |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
370 |
UpdateUiCommands(); |
37 | 371 |
iStateMachine->ChangeState( EPhoneStateConferenceAndSingleAndWaiting ); |
372 |
} |
|
373 |
EndUiUpdate(); |
|
374 |
} |
|
375 |
||
376 |
// ----------------------------------------------------------- |
|
377 |
// CPhoneConferenceAndWaiting::HandleCommandL |
|
378 |
// ----------------------------------------------------------- |
|
379 |
// |
|
380 |
TBool CPhoneConferenceAndWaiting::HandleCommandL( TInt aCommand ) |
|
381 |
{ |
|
382 |
__LOGMETHODSTARTEND( EPhoneUIStates, |
|
383 |
"CPhoneConferenceAndWaiting::HandleCommandL() "); |
|
384 |
TBool commandStatus = ETrue; |
|
385 |
switch( aCommand ) |
|
386 |
{ |
|
387 |
case EPhoneCmdUpdateUiControls: |
|
388 |
UpdateUiControlsL(); |
|
389 |
break; |
|
390 |
||
391 |
default: |
|
392 |
commandStatus = CPhoneConference::HandleCommandL( aCommand ); |
|
393 |
break; |
|
394 |
} |
|
395 |
return commandStatus; |
|
396 |
} |
|
397 |
||
398 |
// ----------------------------------------------------------- |
|
399 |
// CPhoneConferenceAndWaiting::UpdateUiControlsL |
|
400 |
// ----------------------------------------------------------- |
|
401 |
// |
|
402 |
void CPhoneConferenceAndWaiting::UpdateUiControlsL() |
|
403 |
{ |
|
404 |
__LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneConferenceAndWaiting::UpdateUiControlsL( ) "); |
|
405 |
iViewCommandHandle->ExecuteCommand(EPhoneSetConferenceExpanded); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
406 |
UpdateUiCommands(); |
37 | 407 |
} |
408 |
||
409 |
// End of File |