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 CPhoneConference 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 <mpeengineinfo.h>
|
|
25 |
#include <cpephonemodelif.h>
|
|
26 |
#include <featmgr.h>
|
|
27 |
#include "cphoneconference.h"
|
|
28 |
#include "mphonestatemachine.h"
|
|
29 |
#include "phoneviewcommanddefinitions.h"
|
|
30 |
#include "phoneui.hrh"
|
|
31 |
#include "cphonemainresourceresolver.h"
|
|
32 |
#include "phonerssbase.h"
|
|
33 |
#include "tphonecmdparaminteger.h"
|
|
34 |
#include "tphonecmdparamboolean.h"
|
|
35 |
#include "tphonecmdparamstring.h"
|
|
36 |
#include "tphonecmdparamcallheaderdata.h"
|
|
37 |
#include "tphonecmdparamkeyevent.h"
|
|
38 |
#include "phonestatedefinitions.h"
|
|
39 |
#include "tphonecmdparamglobalnote.h"
|
|
40 |
#include "phonestatedefinitionsgsm.h"
|
|
41 |
#include "tphonecmdparamcallstatedata.h"
|
|
42 |
#include "cphonekeys.h"
|
|
43 |
#include "phonelogger.h"
|
|
44 |
|
|
45 |
// ================= MEMBER FUNCTIONS =======================
|
|
46 |
|
|
47 |
// C++ default constructor can NOT contain any code, that
|
|
48 |
// might leave.
|
|
49 |
//
|
|
50 |
CPhoneConference::CPhoneConference(
|
|
51 |
MPhoneStateMachine* aStateMachine,
|
|
52 |
MPhoneViewCommandHandle* aViewCommandHandle,
|
|
53 |
MPhoneCustomization* aPhoneCustomization ) :
|
|
54 |
CPhoneGsmInCall( aStateMachine, aViewCommandHandle, aPhoneCustomization )
|
|
55 |
{
|
|
56 |
}
|
|
57 |
|
|
58 |
// -----------------------------------------------------------
|
|
59 |
// CPhoneConference::~CPhoneConference()
|
|
60 |
// Destructor
|
|
61 |
// (other items were commented in a header).
|
|
62 |
// -----------------------------------------------------------
|
|
63 |
//
|
|
64 |
CPhoneConference::~CPhoneConference()
|
|
65 |
{
|
|
66 |
}
|
|
67 |
|
|
68 |
// -----------------------------------------------------------
|
|
69 |
// CPhoneConference::ConstructL()
|
|
70 |
// Constructor
|
|
71 |
// (other items were commented in a header).
|
|
72 |
// -----------------------------------------------------------
|
|
73 |
//
|
|
74 |
void CPhoneConference::ConstructL()
|
|
75 |
{
|
|
76 |
CPhoneGsmInCall::ConstructL();
|
|
77 |
|
|
78 |
// Re-enable global notes
|
|
79 |
TPhoneCmdParamBoolean globalNotifierParam;
|
|
80 |
globalNotifierParam.SetBoolean( EFalse );
|
|
81 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled,
|
|
82 |
&globalNotifierParam );
|
|
83 |
|
|
84 |
}
|
|
85 |
|
|
86 |
// -----------------------------------------------------------
|
|
87 |
// CPhoneConference::NewL()
|
|
88 |
// Constructor
|
|
89 |
// (other items were commented in a header).
|
|
90 |
// -----------------------------------------------------------
|
|
91 |
//
|
|
92 |
CPhoneConference* CPhoneConference::NewL(
|
|
93 |
MPhoneStateMachine* aStateMachine,
|
|
94 |
MPhoneViewCommandHandle* aViewCommandHandle,
|
|
95 |
MPhoneCustomization* aPhoneCustomization )
|
|
96 |
{
|
|
97 |
CPhoneConference* self = new( ELeave ) CPhoneConference(
|
|
98 |
aStateMachine, aViewCommandHandle, aPhoneCustomization );
|
|
99 |
|
|
100 |
CleanupStack::PushL( self );
|
|
101 |
self->ConstructL();
|
|
102 |
CleanupStack::Pop( self );
|
|
103 |
|
|
104 |
return self;
|
|
105 |
}
|
|
106 |
|
|
107 |
// -----------------------------------------------------------
|
|
108 |
// CPhoneConference::HandlePhoneEngineMessageL
|
|
109 |
// -----------------------------------------------------------
|
|
110 |
//
|
|
111 |
void CPhoneConference::HandlePhoneEngineMessageL(
|
|
112 |
const TInt aMessage,
|
|
113 |
TInt aCallId )
|
|
114 |
{
|
|
115 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
116 |
"CPhoneConference::HandlePhoneEngineMessageL()");
|
|
117 |
switch ( aMessage )
|
|
118 |
{
|
|
119 |
case MEngineMonitor::EPEMessageIdle:
|
|
120 |
HandleIdleL( aCallId );
|
|
121 |
break;
|
|
122 |
|
|
123 |
case MEngineMonitor::EPEMessageConferenceIdle:
|
|
124 |
HandleConferenceIdleL();
|
|
125 |
break;
|
|
126 |
|
|
127 |
case MEngineMonitor::EPEMessageHeldConference:
|
|
128 |
HandleHeldConferenceL( aCallId );
|
|
129 |
break;
|
|
130 |
|
|
131 |
case MEngineMonitor::EPEMessageConnectedConference:
|
|
132 |
HandleConnectedConferenceL();
|
|
133 |
break;
|
|
134 |
|
|
135 |
case MEngineMonitor::EPEMessageAddedConferenceMember:
|
|
136 |
UpdateConferenceSecurityStatusL( aCallId );
|
|
137 |
break;
|
|
138 |
|
|
139 |
case MEngineMonitor::EPEMessageWentOneToOne:
|
|
140 |
HandleWentOneToOneL( aCallId );
|
|
141 |
break;
|
|
142 |
|
|
143 |
case MEngineMonitor::EPEMessageHeld:
|
|
144 |
case MEngineMonitor::EPEMessageConnected:
|
|
145 |
{
|
74
|
146 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId );
|
37
|
147 |
}
|
|
148 |
break;
|
|
149 |
|
|
150 |
case MEngineMonitor::EPEMessageDialing:
|
74
|
151 |
HandleDialingL( aCallId );
|
37
|
152 |
break;
|
|
153 |
|
|
154 |
case MEngineMonitor::EPEMessageIncoming:
|
|
155 |
HandleIncomingL( aCallId );
|
|
156 |
break;
|
|
157 |
|
|
158 |
default:
|
|
159 |
CPhoneGsmInCall::HandlePhoneEngineMessageL( aMessage, aCallId );
|
|
160 |
break;
|
|
161 |
}
|
|
162 |
}
|
|
163 |
|
|
164 |
// -----------------------------------------------------------
|
|
165 |
// CPhoneConference:HandleCommandL
|
|
166 |
// -----------------------------------------------------------
|
|
167 |
//
|
|
168 |
TBool CPhoneConference::HandleCommandL( TInt aCommand )
|
|
169 |
{
|
|
170 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
171 |
"CPhoneConference::HandleCommandL()");
|
|
172 |
TBool commandStatus = ETrue;
|
|
173 |
switch( aCommand )
|
|
174 |
{
|
|
175 |
case EAknSoftkeyCancel:
|
|
176 |
BeginUiUpdateLC();
|
74
|
177 |
UpdateUiCommands();
|
65
|
178 |
EndUiUpdate();
|
37
|
179 |
break;
|
|
180 |
|
|
181 |
case EPhoneInCallCmdHold:
|
|
182 |
case EPhoneInCallCmdConferenceHold:
|
|
183 |
iStateMachine->SendPhoneEngineMessage(
|
|
184 |
CPEPhoneModelIF::EPEMessageHoldConference );
|
|
185 |
break;
|
|
186 |
|
|
187 |
case EPhoneInCallCmdUnhold:
|
|
188 |
case EPhoneInCallCmdConferenceUnhold:
|
|
189 |
iStateMachine->SendPhoneEngineMessage(
|
|
190 |
CPEPhoneModelIF::EPEMessageResumeConference );
|
|
191 |
break;
|
|
192 |
|
|
193 |
case EPhoneInCallCmdDrop:
|
|
194 |
DropSelectedParticipantL();
|
|
195 |
break;
|
|
196 |
|
|
197 |
case EPhoneInCallCmdPrivate:
|
|
198 |
PrivateSelectedParticipantL();
|
|
199 |
break;
|
65
|
200 |
|
|
201 |
case EPhoneInCallCmdPrivateSelection:
|
|
202 |
case EPhoneInCallCmdDropSelection:
|
37
|
203 |
case EPhoneInCallCmdNewCall:
|
65
|
204 |
case EPhoneInCallCmdParticipants:
|
37
|
205 |
break;
|
|
206 |
|
|
207 |
default:
|
|
208 |
commandStatus = CPhoneGsmInCall::HandleCommandL( aCommand );
|
|
209 |
break;
|
|
210 |
}
|
|
211 |
return commandStatus;
|
|
212 |
}
|
|
213 |
|
|
214 |
// -----------------------------------------------------------
|
|
215 |
// CPhoneConference::HandleKeyEventL
|
|
216 |
// -----------------------------------------------------------
|
|
217 |
//
|
|
218 |
void CPhoneConference::HandleKeyEventL(
|
|
219 |
const TKeyEvent& aKeyEvent,
|
|
220 |
TEventCode aEventCode )
|
|
221 |
{
|
|
222 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
223 |
"CPhoneConference::HandleKeyEventL()");
|
65
|
224 |
if ( !CPhoneKeys::IsNumericKey( aKeyEvent, aEventCode ) )
|
37
|
225 |
{
|
65
|
226 |
// Handle other key events than numeric key events.
|
50
|
227 |
CPhoneState::HandleKeyEventL( aKeyEvent, aEventCode );
|
37
|
228 |
}
|
|
229 |
}
|
|
230 |
|
|
231 |
// --------------------------------------------------------------
|
|
232 |
// CPhoneConference::HandleKeyMessageL
|
|
233 |
// --------------------------------------------------------------
|
|
234 |
//
|
|
235 |
void CPhoneConference::HandleKeyMessageL(
|
|
236 |
TPhoneKeyEventMessages aMessage,
|
|
237 |
TKeyCode aCode )
|
|
238 |
{
|
|
239 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
240 |
"CPhoneConference::HandleKeyMessageL()");
|
|
241 |
switch ( aCode )
|
|
242 |
{
|
65
|
243 |
case EKeyYes: // send-key
|
74
|
244 |
if( iNumberEntryManager->IsNumberEntryVisibleL() )
|
37
|
245 |
{
|
74
|
246 |
iNumberEntryManager->CallFromNumberEntryL();
|
37
|
247 |
}
|
|
248 |
else
|
|
249 |
{
|
|
250 |
ToggleHoldL();
|
|
251 |
}
|
|
252 |
break;
|
|
253 |
|
|
254 |
default:
|
|
255 |
CPhoneGsmInCall::HandleKeyMessageL( aMessage, aCode );
|
|
256 |
break;
|
|
257 |
}
|
|
258 |
}
|
|
259 |
|
|
260 |
// -----------------------------------------------------------
|
|
261 |
// CPhoneConference::HandleNumberEntryClearedL
|
|
262 |
// -----------------------------------------------------------
|
|
263 |
//
|
|
264 |
void CPhoneConference::HandleNumberEntryClearedL()
|
|
265 |
{
|
|
266 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
267 |
"CPhoneConference::HandleNumberEntryClearedL()");
|
74
|
268 |
UpdateUiCommands();
|
37
|
269 |
}
|
|
270 |
|
|
271 |
// -----------------------------------------------------------
|
|
272 |
// CPhoneConference:HandleIdleL
|
|
273 |
// -----------------------------------------------------------
|
|
274 |
//
|
|
275 |
void CPhoneConference::HandleIdleL( TInt aCallId )
|
|
276 |
{
|
|
277 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
278 |
"CPhoneConference::HandleIdleL()");
|
|
279 |
TPhoneCmdParamBoolean globalNotifierParam;
|
|
280 |
globalNotifierParam.SetBoolean( EFalse );
|
|
281 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled,
|
|
282 |
&globalNotifierParam );
|
|
283 |
|
|
284 |
// If conference bubble still exists then we have conference and
|
|
285 |
// single call
|
|
286 |
TPhoneCmdParamBoolean conferenceBubbleExists;
|
|
287 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewGetIsConference,
|
|
288 |
&conferenceBubbleExists );
|
|
289 |
|
|
290 |
if( conferenceBubbleExists.Boolean() )
|
|
291 |
{
|
|
292 |
iViewCommandHandle->ExecuteCommandL(
|
|
293 |
EPhoneViewRemoveFromConference, aCallId );
|
|
294 |
}
|
|
295 |
else
|
|
296 |
{
|
|
297 |
iViewCommandHandle->ExecuteCommandL(
|
65
|
298 |
EPhoneViewRemoveCallHeader, aCallId );
|
37
|
299 |
}
|
|
300 |
}
|
|
301 |
|
|
302 |
// -----------------------------------------------------------
|
|
303 |
// CPhoneConference:HandleConferenceIdleL
|
|
304 |
// -----------------------------------------------------------
|
|
305 |
//
|
|
306 |
void CPhoneConference::HandleConferenceIdleL()
|
|
307 |
{
|
|
308 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
309 |
"CPhoneConference::HandleConferenceIdleL()");
|
|
310 |
BeginUiUpdateLC();
|
|
311 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveConferenceBubble );
|
|
312 |
|
|
313 |
TPhoneCmdParamInteger activeCallCount;
|
|
314 |
iViewCommandHandle->ExecuteCommandL(
|
|
315 |
EPhoneViewGetCountOfActiveCalls, &activeCallCount );
|
|
316 |
|
|
317 |
switch( activeCallCount.Integer() )
|
|
318 |
{
|
|
319 |
case ENoActiveCalls:
|
|
320 |
MakeStateTransitionToIdleL();
|
|
321 |
break;
|
|
322 |
|
|
323 |
case EOneActiveCall:
|
|
324 |
{
|
|
325 |
TPhoneCmdParamCallStateData callStateData;
|
|
326 |
callStateData.SetCallState( EPEStateRinging );
|
|
327 |
iViewCommandHandle->HandleCommandL(
|
|
328 |
EPhoneViewGetCallIdByState, &callStateData );
|
|
329 |
|
|
330 |
if( callStateData.CallId() > KErrNotFound )
|
|
331 |
{
|
74
|
332 |
UpdateUiCommands();
|
37
|
333 |
iStateMachine->ChangeState( EPhoneStateWaitingInSingle );
|
|
334 |
}
|
|
335 |
else
|
|
336 |
{
|
65
|
337 |
MakeStateTransitionToSingleL();
|
37
|
338 |
}
|
|
339 |
}
|
|
340 |
break;
|
|
341 |
|
|
342 |
case ETwoActiveCalls:
|
|
343 |
MakeStateTransitionToTwoSinglesL();
|
|
344 |
break;
|
|
345 |
|
|
346 |
default:
|
|
347 |
MakeStateTransitionToTwoSinglesL();
|
|
348 |
break;
|
|
349 |
}
|
50
|
350 |
EndUiUpdate();
|
37
|
351 |
}
|
|
352 |
|
|
353 |
// -----------------------------------------------------------
|
|
354 |
// CPhoneConference::HandleHeldConferenceL
|
|
355 |
// -----------------------------------------------------------
|
|
356 |
//
|
|
357 |
void CPhoneConference::HandleHeldConferenceL( TInt aCallId )
|
|
358 |
{
|
|
359 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
74
|
360 |
"CPhoneConference::HandleHeldConferenceL()");
|
37
|
361 |
iViewCommandHandle->ExecuteCommandL(
|
74
|
362 |
EPhoneViewUpdateBubble, aCallId );
|
|
363 |
UpdateUiCommands();
|
37
|
364 |
}
|
|
365 |
|
|
366 |
// -----------------------------------------------------------
|
|
367 |
// CPhoneConference::HandleConnectedConferenceL
|
|
368 |
// -----------------------------------------------------------
|
|
369 |
//
|
|
370 |
void CPhoneConference::HandleConnectedConferenceL()
|
|
371 |
{
|
|
372 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
373 |
"CPhoneConference::HandleConnectedConferenceL()");
|
|
374 |
iViewCommandHandle->ExecuteCommandL(
|
74
|
375 |
EPhoneViewUpdateBubble, KConferenceCallId );
|
|
376 |
UpdateUiCommands();
|
37
|
377 |
}
|
|
378 |
|
|
379 |
// -----------------------------------------------------------
|
|
380 |
// CPhoneConference::DropSelectedParticipantL
|
|
381 |
// -----------------------------------------------------------
|
|
382 |
//
|
|
383 |
void CPhoneConference::DropSelectedParticipantL()
|
|
384 |
{
|
|
385 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
386 |
"CPhoneConference::DropSelectedParticipantL()");
|
|
387 |
TPhoneViewResponseId response;
|
|
388 |
TPhoneCmdParamInteger callId;
|
|
389 |
response = iViewCommandHandle->HandleCommandL(
|
|
390 |
EPhoneViewSelectedConfMember, &callId );
|
|
391 |
|
|
392 |
if( response == EPhoneViewResponseSuccess )
|
|
393 |
{
|
|
394 |
iStateMachine->SetCallId( callId.Integer() );
|
|
395 |
iStateMachine->SendPhoneEngineMessage(
|
65
|
396 |
CPEPhoneModelIF::EPEMessageDropConferenceMember );
|
37
|
397 |
}
|
|
398 |
}
|
|
399 |
|
|
400 |
// -----------------------------------------------------------
|
|
401 |
// CPhoneConference::PrivateSelectedParticipantL
|
|
402 |
// -----------------------------------------------------------
|
|
403 |
//
|
|
404 |
void CPhoneConference::PrivateSelectedParticipantL()
|
|
405 |
{
|
|
406 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
407 |
"CPhoneConference::PrivateSelectedParticipantL()");
|
|
408 |
TPhoneViewResponseId response;
|
|
409 |
TPhoneCmdParamInteger callId;
|
|
410 |
response = iViewCommandHandle->HandleCommandL(
|
|
411 |
EPhoneViewSelectedConfMember, &callId );
|
|
412 |
|
|
413 |
if( response == EPhoneViewResponseSuccess )
|
|
414 |
{
|
|
415 |
iStateMachine->SetCallId( callId.Integer() );
|
|
416 |
iStateMachine->SendPhoneEngineMessage(
|
|
417 |
CPEPhoneModelIF::EPEMessageGoOneToOne );
|
|
418 |
BeginUiUpdateLC();
|
74
|
419 |
UpdateUiCommands();
|
65
|
420 |
EndUiUpdate();
|
37
|
421 |
}
|
|
422 |
}
|
|
423 |
|
|
424 |
// -----------------------------------------------------------
|
|
425 |
// CPhoneConference::MakeStateTransitionToIdleL
|
|
426 |
// -----------------------------------------------------------
|
|
427 |
//
|
|
428 |
void CPhoneConference::MakeStateTransitionToIdleL()
|
|
429 |
{
|
|
430 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
431 |
"CPhoneConference::MakeStateTransitionToIdleL()");
|
|
432 |
SetDefaultFlagsL();
|
|
433 |
|
74
|
434 |
if ( iNumberEntryManager->IsNumberEntryUsedL() )
|
37
|
435 |
{
|
74
|
436 |
iNumberEntryManager->SetNumberEntryVisibilityL(ETrue);
|
37
|
437 |
}
|
|
438 |
else
|
|
439 |
{
|
74
|
440 |
RemoveDialogsAndSendPhoneToBackgroundL();
|
37
|
441 |
}
|
|
442 |
DisplayCallTerminationNoteL();
|
74
|
443 |
UpdateUiCommands();
|
37
|
444 |
iStateMachine->ChangeState( EPhoneStateIdle );
|
|
445 |
}
|
|
446 |
|
|
447 |
// -----------------------------------------------------------
|
|
448 |
// CPhoneConference::MakeStateTransitionToSingleL
|
|
449 |
// -----------------------------------------------------------
|
|
450 |
//
|
|
451 |
void CPhoneConference::MakeStateTransitionToSingleL()
|
|
452 |
{
|
|
453 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
454 |
"CPhoneConference::MakeStateTransitionToSingleL()");
|
74
|
455 |
iNumberEntryManager->SetVisibilityIfNumberEntryUsedL(ETrue);
|
|
456 |
UpdateUiCommands();
|
65
|
457 |
iStateMachine->ChangeState( EPhoneStateSingle );
|
37
|
458 |
}
|
|
459 |
|
|
460 |
// -----------------------------------------------------------
|
|
461 |
// CPhoneConference::MakeTransitionToTwoSinglesL
|
|
462 |
// -----------------------------------------------------------
|
|
463 |
//
|
|
464 |
void CPhoneConference::MakeStateTransitionToTwoSinglesL()
|
|
465 |
{
|
|
466 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
467 |
"CPhoneConference::MakeStateTransitionToTwoSinglesL()");
|
74
|
468 |
iNumberEntryManager->SetVisibilityIfNumberEntryUsedL(ETrue);
|
|
469 |
UpdateUiCommands();
|
65
|
470 |
iStateMachine->ChangeState( EPhoneStateTwoSingles );
|
37
|
471 |
}
|
|
472 |
|
|
473 |
// -----------------------------------------------------------
|
|
474 |
// CPhoneConference::ToggleHold
|
|
475 |
// -----------------------------------------------------------
|
|
476 |
//
|
|
477 |
void CPhoneConference::ToggleHoldL()
|
|
478 |
{
|
|
479 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
480 |
"CPhoneConference::ToggleHoldL()");
|
74
|
481 |
iStateMachine->SetCallId( KConferenceCallId );
|
65
|
482 |
iStateMachine->SendPhoneEngineMessage(
|
|
483 |
CPEPhoneModelIF::EPEMessageSwapConference );
|
37
|
484 |
}
|
|
485 |
|
|
486 |
// -----------------------------------------------------------
|
74
|
487 |
// CPhoneConference::HandleDialingL
|
37
|
488 |
// -----------------------------------------------------------
|
|
489 |
//
|
74
|
490 |
void CPhoneConference::HandleDialingL( TInt aCallId )
|
37
|
491 |
{
|
|
492 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
74
|
493 |
"CPhoneConference::HandleDialingL()");
|
|
494 |
DisplayCallHeaderL( aCallId, ESetNEVisibilityFalse);
|
37
|
495 |
iStateMachine->ChangeState( EPhoneStateConferenceAndCallSetup );
|
|
496 |
}
|
|
497 |
|
|
498 |
// -----------------------------------------------------------
|
|
499 |
// CPhoneConference::HandleIncomingL
|
|
500 |
// -----------------------------------------------------------
|
|
501 |
//
|
|
502 |
void CPhoneConference::HandleIncomingL( TInt aCallId )
|
|
503 |
{
|
|
504 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
505 |
"CPhoneConference::HandleIncomingL()");
|
74
|
506 |
DisplayCallHeaderL( aCallId, ECheckIfNEUsedBeforeSettingVisibilityFalse );
|
65
|
507 |
iStateMachine->ChangeState( EPhoneStateConferenceAndWaiting );
|
37
|
508 |
}
|
|
509 |
|
|
510 |
// -----------------------------------------------------------
|
|
511 |
// CPhoneConference::HandleWentOneToOneL
|
|
512 |
// -----------------------------------------------------------
|
|
513 |
//
|
|
514 |
void CPhoneConference::HandleWentOneToOneL( TInt aCallId )
|
|
515 |
{
|
|
516 |
__LOGMETHODSTARTEND( EPhoneUIStates,
|
|
517 |
"CPhoneConference::HandleWentOneToOneL()");
|
|
518 |
BeginUiUpdateLC();
|
|
519 |
iViewCommandHandle->ExecuteCommandL(
|
|
520 |
EPhoneViewPrivateFromConference, aCallId );
|
|
521 |
|
|
522 |
// If conference bubble still exists then we have conference and
|
|
523 |
// single call
|
|
524 |
TPhoneCmdParamBoolean conferenceBubbleExists;
|
|
525 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewGetIsConference,
|
65
|
526 |
&conferenceBubbleExists );
|
37
|
527 |
if( conferenceBubbleExists.Boolean() )
|
|
528 |
{
|
65
|
529 |
iStateMachine->ChangeState( EPhoneStateConferenceAndSingle );
|
37
|
530 |
}
|
74
|
531 |
|
|
532 |
UpdateUiCommands();
|
37
|
533 |
EndUiUpdate();
|
|
534 |
}
|
|
535 |
|
|
536 |
// -----------------------------------------------------------
|
|
537 |
// CPhoneConference::UpdateConferenceSecurityStatusL
|
|
538 |
// -----------------------------------------------------------
|
|
539 |
//
|
|
540 |
void CPhoneConference::UpdateConferenceSecurityStatusL( TInt aCallId )
|
|
541 |
{
|
|
542 |
__PHONELOG1( EBasic, EPhoneUIStates,
|
|
543 |
"CPhoneConference::UpdateConferenceSecurityStatusL() - callId = %d", aCallId );
|
74
|
544 |
|
|
545 |
iViewCommandHandle->ExecuteCommandL(
|
|
546 |
EPhoneViewCipheringInfoChange,
|
|
547 |
KPEConferenceCallID);
|
37
|
548 |
}
|
|
549 |
|
|
550 |
// End of File
|