author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 06 Jul 2010 14:15:47 +0300 | |
changeset 46 | bc5a64e5bc3c |
parent 37 | ba76fc04e6c2 |
child 50 | 377c906a8701 |
child 51 | f39ed5e045e0 |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 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: Class takes care of CBA's. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#include "cphonecbamanager.h" |
|
19 |
||
20 |
#include "mpeengineinfo.h" |
|
21 |
#include "mphoneviewcommandhandle.h" |
|
22 |
#include "mphonestatemachine.h" |
|
23 |
||
24 |
#include <featmgr.h> |
|
25 |
||
26 |
#include "phonerssbase.h" |
|
27 |
#include "phoneui.pan" |
|
28 |
#include "phonelogger.h" |
|
29 |
||
30 |
#include "cphonestate.h" |
|
31 |
#include "cphonecenrepproxy.h" |
|
32 |
#include "cphonemainresourceresolver.h" |
|
33 |
||
34 |
#include "telephonyvariant.hrh" |
|
35 |
#include "phoneui.hrh" |
|
36 |
||
37 |
#include "tphonecmdparamboolean.h" |
|
38 |
#include "tphonecmdparaminteger.h" |
|
39 |
#include "tphonecmdparamcallstatedata.h" |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
40 |
#include "tphonecmdparamboolean.h" |
37 | 41 |
|
42 |
||
43 |
// ======== MEMBER FUNCTIONS ======== |
|
44 |
||
45 |
// --------------------------------------------------------------------------- |
|
46 |
// CPhoneCbaManager::CPhoneCbaManager |
|
47 |
// --------------------------------------------------------------------------- |
|
48 |
// |
|
49 |
CPhoneCbaManager::CPhoneCbaManager( |
|
50 |
CPhoneState* aState, |
|
51 |
MPhoneViewCommandHandle& aViewCommandHandle, |
|
52 |
MPhoneStateMachine& aStateMachine ) |
|
53 |
: iState ( aState ), |
|
54 |
iViewCommandHandle ( aViewCommandHandle ), |
|
55 |
iStateMachine ( aStateMachine ) |
|
56 |
{ |
|
57 |
__LOGMETHODSTARTEND( EPhoneControl, "CPhoneCbaManager::CPhoneCbaManager() "); |
|
58 |
} |
|
59 |
||
60 |
// --------------------------------------------------------------------------- |
|
61 |
// CPhoneCbaManager::NewL |
|
62 |
// --------------------------------------------------------------------------- |
|
63 |
// |
|
64 |
CPhoneCbaManager* CPhoneCbaManager::NewL( |
|
65 |
CPhoneState* aState, |
|
66 |
MPhoneViewCommandHandle& aViewCommandHandle, |
|
67 |
MPhoneStateMachine& aStateMachine ) |
|
68 |
{ |
|
69 |
__LOGMETHODSTARTEND( EPhoneControl, "CPhoneCbaManager::NewL() "); |
|
70 |
return new (ELeave) CPhoneCbaManager( aState, aViewCommandHandle, aStateMachine ); |
|
71 |
} |
|
72 |
||
73 |
// --------------------------------------------------------------------------- |
|
74 |
// CPhoneCbaManager::~CPhoneCbaManager |
|
75 |
// --------------------------------------------------------------------------- |
|
76 |
// |
|
77 |
CPhoneCbaManager::~CPhoneCbaManager() |
|
78 |
{ |
|
79 |
__LOGMETHODSTARTEND( EPhoneControl, "CPhoneCbaManager::~CPhoneCbaManager() "); |
|
80 |
} |
|
81 |
||
82 |
// ======== LOCAL FUNCTIONS ======== |
|
83 |
||
84 |
// ----------------------------------------------------------- |
|
85 |
// CPhoneCbaManager::UpdateInCallCbaL |
|
86 |
// ----------------------------------------------------------- |
|
87 |
// |
|
88 |
void CPhoneCbaManager::UpdateInCallCbaL() |
|
89 |
{ |
|
90 |
__LOGMETHODSTARTEND(EPhoneControl, "CPhoneCbaManager::UpdateInCallCbaL() "); |
|
91 |
UpdateCbaL( EPhoneCallHandlingInCallCBA ); |
|
92 |
} |
|
93 |
||
94 |
// ----------------------------------------------------------- |
|
95 |
// CPhoneCbaManager::UpdateCbaL |
|
96 |
// ----------------------------------------------------------- |
|
97 |
// |
|
98 |
EXPORT_C void CPhoneCbaManager::UpdateCbaL( TInt aResource ) |
|
99 |
{ |
|
100 |
__LOGMETHODSTARTEND(EPhoneControl, "CPhoneCbaManager::UpdateCbaL() "); |
|
101 |
__ASSERT_DEBUG( iStateMachine.PhoneEngineInfo(), |
|
102 |
Panic( EPhoneCtrlInvariant ) ); |
|
103 |
TInt resourceId = aResource; |
|
104 |
TPhoneCmdParamBoolean hold; |
|
105 |
iViewCommandHandle.ExecuteCommandL( EPhoneViewGetHoldFlag, &hold ); |
|
106 |
||
107 |
const TBool coverHideSendEndKey = |
|
108 |
CPhoneCenRepProxy::Instance()->IsTelephonyFeatureSupported( |
|
109 |
KTelephonyLVFlagCoverHideSendEndKey ); |
|
110 |
||
111 |
const TPEAudioOutput audioOutput = |
|
112 |
iStateMachine.PhoneEngineInfo()->AudioOutput(); |
|
113 |
||
114 |
TBool btAvailable = iStateMachine.PhoneEngineInfo()->AudioOutputAvailable( |
|
115 |
EPEBTAudioAccessory ); |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
116 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
117 |
TPhoneCmdParamBoolean btParam; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
118 |
btParam.SetBoolean( audioOutput == EPEBTAudioAccessory ); |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
119 |
iViewCommandHandle.ExecuteCommand(EPhoneViewSetBlueToothFlag,&btParam); |
37 | 120 |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
121 |
TPhoneCmdParamBoolean btAvailableParam; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
122 |
btAvailableParam.SetBoolean( btAvailable ); |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
123 |
iViewCommandHandle.ExecuteCommand( |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
124 |
EPhoneViewSetBluetoothAvailableFlag,&btAvailableParam); |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
125 |
|
37 | 126 |
// Call setup cases |
127 |
if ( EPhoneCallHandlingCallSetupCBA == aResource ) |
|
128 |
{ |
|
129 |
if ( !FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling) ) |
|
130 |
{ |
|
131 |
if ( audioOutput == EPELoudspeaker ) |
|
132 |
{ |
|
133 |
resourceId = EPhoneCallHandlingCallSetupToHandsetCBA; |
|
134 |
} |
|
135 |
else if ( audioOutput == EPEHandset ) |
|
136 |
{ |
|
137 |
resourceId = EPhoneCallHandlingCallSetupToIhfCBA; |
|
138 |
} |
|
139 |
} |
|
140 |
} |
|
141 |
||
142 |
// Is numberentry visible |
|
143 |
else if ( iState->IsNumberEntryUsedL() ) |
|
144 |
{ |
|
145 |
if ( iState->IsAutoLockOn() || !(iState->IsSimOk()) ) |
|
146 |
{ |
|
147 |
resourceId = EPhoneEmptyBackCBA; |
|
148 |
} |
|
149 |
else |
|
150 |
{ |
|
151 |
TBool dtmfEditorVisible = iViewCommandHandle.HandleCommandL( |
|
152 |
EPhoneViewIsDTMFEditorVisible ) == |
|
153 |
EPhoneViewResponseSuccess; |
|
154 |
TPhoneCmdParamInteger activeCallCount; |
|
155 |
iViewCommandHandle.ExecuteCommandL( |
|
156 |
EPhoneViewGetCountOfActiveCalls, &activeCallCount ); |
|
157 |
||
158 |
TPhoneCmdParamCallStateData callStateData; |
|
159 |
callStateData.SetCallState( EPEStateRinging ); |
|
160 |
iViewCommandHandle.HandleCommandL( |
|
161 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
162 |
||
163 |
TInt incomingCall = callStateData.CallId(); |
|
164 |
||
165 |
if( dtmfEditorVisible ) |
|
166 |
{ |
|
167 |
resourceId = EPhoneDtmfDialerCBA; |
|
168 |
} |
|
169 |
else if( activeCallCount.Integer() == ENoActiveCalls ) |
|
170 |
{ |
|
171 |
resourceId = EPhoneNumberAcqCBA; |
|
172 |
} |
|
173 |
else if ( activeCallCount.Integer() > ENoActiveCalls && |
|
174 |
incomingCall > KErrNotFound ) |
|
175 |
{ |
|
176 |
resourceId = EPhoneCallHandlingCallWaitingCBA; |
|
177 |
} |
|
178 |
else |
|
179 |
{ |
|
180 |
resourceId = EPhoneInCallNumberAcqCBA; |
|
181 |
} |
|
182 |
} |
|
183 |
} |
|
184 |
||
185 |
// Check is Audio muted |
|
186 |
else if ( iStateMachine.PhoneEngineInfo()->AudioMute() ) |
|
187 |
{ |
|
188 |
resourceId = EPhoneCallHandlingInCallUnmuteCBA; |
|
189 |
} |
|
190 |
||
191 |
// Multicall swap |
|
192 |
else if ( EPhoneCallHandlingNewCallSwapCBA == aResource ) |
|
193 |
{ |
|
194 |
resourceId = EPhoneCallHandlingNewCallSwapCBA; |
|
195 |
} |
|
196 |
||
197 |
// Call waiting cases |
|
198 |
else if ( EPhoneCallHandlingCallWaitingCBA == aResource ) |
|
199 |
{ |
|
200 |
resourceId = EPhoneCallHandlingCallWaitingCBA; |
|
201 |
if ( iState->IsSwivelClosed() ) |
|
202 |
{ |
|
203 |
TPhoneCmdParamInteger activeCallCount; |
|
204 |
iViewCommandHandle.ExecuteCommandL( |
|
205 |
EPhoneViewGetCountOfActiveCalls, &activeCallCount ); |
|
206 |
if( activeCallCount.Integer() == EOneActiveCall ) |
|
207 |
{ |
|
208 |
resourceId = EPhoneCallHandlingWaitingAnswerSwivelClosedCBA; |
|
209 |
} |
|
210 |
else if( activeCallCount.Integer() == ETwoActiveCalls ) |
|
211 |
{ |
|
212 |
resourceId = EPhoneCallHandlingWaitingReplaceSwivelClosedCBA; |
|
213 |
} |
|
214 |
} |
|
215 |
} |
|
216 |
||
217 |
// Check is call in hold |
|
218 |
else if ( hold.Boolean() ) |
|
219 |
{ |
|
220 |
resourceId = EPhoneCallHandlingInCallUnholdCBA; |
|
221 |
} |
|
222 |
||
223 |
// Is BT accessory connected |
|
224 |
else if ( audioOutput == EPEBTAudioAccessory && |
|
225 |
IsVoiceCallAlertingOrActiveL() && |
|
226 |
!coverHideSendEndKey ) |
|
227 |
{ |
|
228 |
resourceId = EPhoneCallHandlingInCallHandsetCBA; |
|
229 |
} |
|
230 |
||
231 |
else if ( audioOutput == EPEWiredAudioAccessory || |
|
232 |
coverHideSendEndKey || iState->IsSwivelClosed() ) |
|
233 |
{ |
|
234 |
resourceId = EPhoneCallHandlingInCallNoIhfCBA; |
|
235 |
} |
|
236 |
||
237 |
// Check BT availability |
|
238 |
else if ( audioOutput == EPELoudspeaker ) |
|
239 |
{ |
|
240 |
if ( btAvailable ) |
|
241 |
{ |
|
242 |
resourceId = EPhoneCallHandlingInCallBtaaCBA; |
|
243 |
} |
|
244 |
else |
|
245 |
{ |
|
246 |
resourceId = EPhoneCallHandlingInCallHandsetCBA; |
|
247 |
} |
|
248 |
} |
|
249 |
else if ( audioOutput == EPEHandset && btAvailable ) |
|
250 |
{ |
|
251 |
resourceId = EPhoneCallHandlingInCallBtaaCBA; |
|
252 |
} |
|
253 |
||
254 |
SetCbaL( resourceId ); |
|
255 |
} |
|
256 |
||
257 |
// ----------------------------------------------------------- |
|
258 |
// CPhoneCbaManager::UpdateIncomingCbaL |
|
259 |
// ----------------------------------------------------------- |
|
260 |
// |
|
261 |
EXPORT_C void CPhoneCbaManager::UpdateIncomingCbaL( TInt aCallId ) |
|
262 |
{ |
|
263 |
__LOGMETHODSTARTEND(EPhoneControl,"CPhoneCbaManager::UpdateIncomingCbaL()" ); |
|
264 |
||
265 |
const TBool coverHideSendEndKey = |
|
266 |
CPhoneCenRepProxy::Instance()->IsTelephonyFeatureSupported( |
|
267 |
KTelephonyLVFlagCoverHideSendEndKey ); |
|
268 |
||
269 |
const TProfileRingingType ringingType = |
|
270 |
iStateMachine.PhoneEngineInfo()->RingingType(); |
|
271 |
||
272 |
const TBool callIsAlerting = |
|
273 |
!(( ringingType == EProfileRingingTypeSilent ) || |
|
274 |
( ringingType == EProfileRingingTypeBeepOnce )); |
|
275 |
||
276 |
// Update soft reject flag |
|
277 |
TBool softRejectActivated( ETrue ); |
|
278 |
// VoIP calls do not support sms sending |
|
279 |
if ( iStateMachine.PhoneEngineInfo()->CallType( aCallId ) == EPECallTypeVoIP |
|
280 |
|| iStateMachine.PhoneEngineInfo()->RemotePhoneNumber( aCallId ).Length() == 0 ) |
|
281 |
{ |
|
282 |
softRejectActivated = EFalse; |
|
283 |
} |
|
284 |
TPhoneCmdParamBoolean softRejectParam; |
|
285 |
softRejectParam.SetBoolean( softRejectActivated ); |
|
286 |
iViewCommandHandle.ExecuteCommandL( EPhoneViewSetSoftRejectFlag, |
|
287 |
&softRejectParam ); |
|
288 |
||
289 |
TInt incomingCbaResourceId; |
|
290 |
||
291 |
if ( iState->IsSwivelClosed() ) |
|
292 |
{ |
|
293 |
if ( !callIsAlerting || iRingtoneSilenced ) |
|
294 |
{ |
|
295 |
incomingCbaResourceId = EPhoneCallHandlingIncomingSilentSwivelClosedCBA; |
|
296 |
} |
|
297 |
else |
|
298 |
{ |
|
299 |
incomingCbaResourceId = EPhoneCallHandlingIncomingSwivelClosedCBA; |
|
300 |
} |
|
301 |
} |
|
302 |
||
303 |
else if ( coverHideSendEndKey ) |
|
304 |
{ |
|
305 |
if ( callIsAlerting ) |
|
306 |
{ |
|
307 |
// Set CBA to Options..Silence |
|
308 |
incomingCbaResourceId = EPhoneCallHandlingIncomingSliderCBA; |
|
309 |
} |
|
310 |
else if ( softRejectActivated ) |
|
311 |
{ |
|
312 |
// Set CBA for soft reject |
|
313 |
incomingCbaResourceId = EPhoneCallHandlingIncomingSoftRejectSliderCBA; |
|
314 |
} |
|
315 |
else |
|
316 |
{ |
|
317 |
// Set CBA to Options..Reject |
|
318 |
incomingCbaResourceId = EPhoneCallHandlingIncomingSilentSliderCBA; |
|
319 |
} |
|
320 |
} |
|
321 |
||
322 |
else |
|
323 |
{ |
|
324 |
if ( callIsAlerting ) |
|
325 |
{ |
|
326 |
incomingCbaResourceId = GetIncomingCallSilenceCBA( softRejectActivated ); |
|
327 |
} |
|
328 |
else if ( softRejectActivated ) |
|
329 |
{ |
|
330 |
// Set CBA for soft reject |
|
331 |
incomingCbaResourceId = EPhoneCallHandlingIncomingSoftRejectCBA; |
|
332 |
} |
|
333 |
else |
|
334 |
{ |
|
335 |
incomingCbaResourceId = EPhoneCallHandlingIncomingRejectCBA; |
|
336 |
} |
|
337 |
} |
|
338 |
||
339 |
SetCbaL( incomingCbaResourceId ); |
|
340 |
} |
|
341 |
||
342 |
// ----------------------------------------------------------- |
|
343 |
// CPhoneCbaManager::SetCbaL |
|
344 |
// ----------------------------------------------------------- |
|
345 |
// |
|
346 |
EXPORT_C void CPhoneCbaManager::SetCbaL( TInt aResource ) |
|
347 |
{ |
|
348 |
__LOGMETHODSTARTEND(EPhoneControl,"CPhoneCbaManager::SetCbaL()" ); |
|
349 |
||
350 |
__PHONELOG1( EBasic, EPhoneControl, |
|
351 |
"CPhoneCbaManager::SetCbaL : %d",aResource ); |
|
352 |
||
353 |
TPhoneCmdParamInteger integerParam; |
|
354 |
integerParam.SetInteger( |
|
355 |
CPhoneMainResourceResolver::Instance()->ResolveResourceID( |
|
356 |
aResource ) ); |
|
357 |
iViewCommandHandle.ExecuteCommandL( EPhoneViewUpdateCba, |
|
358 |
&integerParam ); |
|
359 |
} |
|
360 |
||
361 |
// ----------------------------------------------------------- |
|
362 |
// CPhoneCbaManager::UpdateCbaSwivelStateChangedL |
|
363 |
// ----------------------------------------------------------- |
|
364 |
// |
|
365 |
void CPhoneCbaManager::UpdateCbaSwivelStateChangedL() |
|
366 |
{ |
|
367 |
__LOGMETHODSTARTEND(EPhoneControl,"CPhoneCbaManager::UpdateCbaSwivelStateChangedL()" ); |
|
368 |
||
369 |
TPhoneCmdParamCallStateData callStateData; |
|
370 |
callStateData.SetCallState( EPEStateRinging ); |
|
371 |
iViewCommandHandle.HandleCommandL( |
|
372 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
373 |
TInt incomingCall = callStateData.CallId(); |
|
374 |
||
375 |
TPhoneCmdParamInteger activeCallCount; |
|
376 |
iViewCommandHandle.ExecuteCommandL( |
|
377 |
EPhoneViewGetCountOfActiveCalls, &activeCallCount ); |
|
378 |
||
379 |
if ( incomingCall > KErrNotFound ) |
|
380 |
{ |
|
381 |
if( activeCallCount.Integer() == ENoActiveCalls ) |
|
382 |
{ |
|
383 |
UpdateIncomingCbaL( incomingCall ); |
|
384 |
} |
|
385 |
else |
|
386 |
{ |
|
387 |
UpdateCbaL( EPhoneCallHandlingCallWaitingCBA ); |
|
388 |
} |
|
389 |
} |
|
390 |
else if ( activeCallCount.Integer() != ENoActiveCalls ) |
|
391 |
{ |
|
392 |
UpdateInCallCbaL(); |
|
393 |
} |
|
394 |
} |
|
395 |
||
396 |
// ----------------------------------------------------------- |
|
397 |
// CPhoneCbaManager::IsVoiceCallAlertingOrActiveL |
|
398 |
// ----------------------------------------------------------- |
|
399 |
// |
|
400 |
TBool CPhoneCbaManager::IsVoiceCallAlertingOrActiveL() |
|
401 |
{ |
|
402 |
__LOGMETHODSTARTEND( EPhoneControl, |
|
403 |
"CPhoneCbaManager::IsVoiceCallAlertingOrActiveL()" ); |
|
404 |
TBool retVal = EFalse; |
|
405 |
||
406 |
// Fetch alerting call's id from view |
|
407 |
TPhoneCmdParamCallStateData callStateData; |
|
408 |
callStateData.SetCallState( EPEStateConnecting ); |
|
409 |
iViewCommandHandle.HandleCommandL( |
|
410 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
411 |
||
412 |
if ( callStateData.CallId() > KErrNotFound ) |
|
413 |
{ |
|
414 |
TPECallType type = iStateMachine.PhoneEngineInfo()->CallType( |
|
415 |
callStateData.CallId() ); |
|
416 |
||
417 |
if ( EPECallTypeCSVoice == type || EPECallTypeVoIP == type ) |
|
418 |
{ |
|
419 |
retVal = ETrue; |
|
420 |
} |
|
421 |
} |
|
422 |
else |
|
423 |
{ |
|
424 |
// Fetch active call's id from view |
|
425 |
TPhoneCmdParamCallStateData callStateData; |
|
426 |
callStateData.SetCallState( EPEStateConnected ); |
|
427 |
iViewCommandHandle.HandleCommandL( |
|
428 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
429 |
||
430 |
if ( callStateData.CallId() > KErrNotFound ) |
|
431 |
{ |
|
432 |
TPECallType type = iStateMachine.PhoneEngineInfo()->CallType( |
|
433 |
callStateData.CallId() ); |
|
434 |
||
435 |
if ( EPECallTypeCSVoice == type || EPECallTypeVoIP == type ) |
|
436 |
{ |
|
437 |
retVal = ETrue; |
|
438 |
} |
|
439 |
} |
|
440 |
} |
|
441 |
return retVal; |
|
442 |
} |
|
443 |
||
444 |
// ----------------------------------------------------------- |
|
445 |
// CPhoneCbaManager::SetRingtoneSilencedStatus |
|
446 |
// ----------------------------------------------------------- |
|
447 |
// |
|
448 |
void CPhoneCbaManager::SetRingtoneSilencedStatus( const TBool aSilencedStatus ) |
|
449 |
{ |
|
450 |
__LOGMETHODSTARTEND(EPhoneControl, "CPhoneCbaManager::SetRingtoneSilencedStatus ()" ); |
|
451 |
// Set the internal TBool variable |
|
452 |
iRingtoneSilenced = aSilencedStatus; |
|
453 |
__PHONELOG1( |
|
454 |
EBasic, |
|
455 |
EPhoneControl, |
|
456 |
"CPhoneCbaManager::SetRingtoneSilencedStatus - iRingtoneSilenced =%d", |
|
457 |
iRingtoneSilenced ); |
|
458 |
} |
|
459 |
||
460 |
// ----------------------------------------------------------- |
|
461 |
// CPhoneCbaManager::GetIncomingCallSilenceCBA |
|
462 |
// ----------------------------------------------------------- |
|
463 |
// |
|
464 |
TInt CPhoneCbaManager::GetIncomingCallSilenceCBA( |
|
465 |
const TBool /*aSoftRejectActivated*/ ) |
|
466 |
{ |
|
467 |
__LOGMETHODSTARTEND(EPhoneControl, "CPhoneCbaManager::GetIncomingCallSilenceCBA ()" ); |
|
468 |
TInt ret = EPhoneCallHandlingIncomingCBA; |
|
469 |
return ret; |
|
470 |
} |
|
471 |
||
472 |
// ======== LOCAL FUNCTIONS ======== |
|
473 |
||
474 |