16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 // INCLUDES |
19 // INCLUDES |
20 #include <featmgr.h> |
20 #include <featmgr.h> |
21 #include <telephonyvariant.hrh> |
|
22 #include "cphoneincoming.h" |
21 #include "cphoneincoming.h" |
23 #include "phonerssbase.h" |
22 #include "phonerssbase.h" |
24 #include "phonelogger.h" |
23 #include "phonelogger.h" |
25 #include "cphonegeneralgsmmessageshandler.h" |
24 #include "cphonegeneralgsmmessageshandler.h" |
26 #include "phonestatedefinitionsgsm.h" |
25 #include "phonestatedefinitionsgsm.h" |
27 #include "tphonecmdparaminteger.h" |
26 #include "tphonecmdparaminteger.h" |
28 #include "tphonecmdparamboolean.h" |
27 #include "tphonecmdparamboolean.h" |
29 #include "phoneui.hrh" |
28 #include "phoneui.hrh" |
30 #include "mphonestatemachine.h" |
29 #include "mphonestatemachine.h" |
31 #include "mphonestorage.h" |
|
32 #include "cphonecenrepproxy.h" |
|
33 #include "tphonecmdparamcallstatedata.h" |
30 #include "tphonecmdparamcallstatedata.h" |
34 |
31 |
35 // ================= MEMBER FUNCTIONS ======================= |
32 // ================= MEMBER FUNCTIONS ======================= |
36 |
33 |
37 // C++ default constructor can NOT contain any code, that |
34 // C++ default constructor can NOT contain any code, that |
226 |
223 |
227 SetToolbarDimming( EFalse ); |
224 SetToolbarDimming( EFalse ); |
228 // Display incoming call |
225 // Display incoming call |
229 DisplayIncomingCallL( aCallId, dialerParam ); |
226 DisplayIncomingCallL( aCallId, dialerParam ); |
230 |
227 |
231 if( FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ) |
|
232 && !CPhoneCenRepProxy::Instance()-> |
|
233 IsTelephonyFeatureSupported( KTelephonyLVFlagAllowUnlockOnIncoming ) |
|
234 && ( IsKeyLockOn() || IsAutoLockOn() ) ) |
|
235 { |
|
236 DisableCallUIL(); |
|
237 } |
|
238 else |
|
239 { |
|
240 // if keys have been locked, disable keylock without information note |
|
241 if ( IsKeyLockOn() ) |
|
242 { |
|
243 iViewCommandHandle->ExecuteCommandL( EPhoneViewDisableKeyLockWithoutNote ); |
|
244 } |
|
245 } |
|
246 |
|
247 if( CPhoneCenRepProxy::Instance()-> |
|
248 IsTelephonyFeatureSupported( KTelephonyLVFlagDisableCallControlHardKeysWhileLocked ) |
|
249 && ( IsKeyLockOn() || IsAutoLockOn() ) ) |
|
250 { |
|
251 DisableHWKeysL(); |
|
252 } |
|
253 |
|
254 EndUiUpdate(); |
228 EndUiUpdate(); |
255 |
229 |
256 if ( connectedCall > KErrNotFound ) |
230 if ( connectedCall > KErrNotFound ) |
257 { |
231 { |
258 // Go to incoming state |
232 // Go to incoming state |
275 // Close menu bar, if it is displayed |
249 // Close menu bar, if it is displayed |
276 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); |
250 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); |
277 |
251 |
278 // Remove any phone dialogs if they are displayed |
252 // Remove any phone dialogs if they are displayed |
279 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs ); |
253 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs ); |
|
254 |
|
255 // if keys have been locked, disable keylock without information note |
|
256 if ( IsKeyLockOn() ) |
|
257 { |
|
258 iViewCommandHandle->ExecuteCommandL( EPhoneViewDisableKeyLockWithoutNote ); |
|
259 } |
280 |
260 |
281 // Indicate that the Phone needs to be sent to the background if |
261 // Indicate that the Phone needs to be sent to the background if |
282 // an application other than the top application is in the foreground |
262 // an application other than the top application is in the foreground |
283 TPhoneCmdParamBoolean booleanParam; |
263 TPhoneCmdParamBoolean booleanParam; |
284 booleanParam.SetBoolean( !TopAppIsDisplayedL() ); |
264 booleanParam.SetBoolean( !TopAppIsDisplayedL() ); |