15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #include <StringLoader.h> |
19 #include <StringLoader.h> |
20 #include <activeidle2domainpskeys.h> |
20 // <-- QT PHONE START --> |
|
21 //#include <activeidle2domainpskeys.h> |
|
22 // <-- QT PHONE END --> |
21 #include <featmgr.h> |
23 #include <featmgr.h> |
22 #include <eikenv.h> |
24 #include <eikenv.h> |
23 |
25 |
24 #include "cphonenumberentrymanager.h" |
26 #include "cphonenumberentrymanager.h" |
25 #include "mpeengineinfo.h" |
27 #include "mpeengineinfo.h" |
222 // |
224 // |
223 void CPhoneNumberEntryManager::HandleCreateNumberEntryL() |
225 void CPhoneNumberEntryManager::HandleCreateNumberEntryL() |
224 { |
226 { |
225 __LOGMETHODSTARTEND( EPhoneControl, "CPhoneNumberEntryManager::HandleCreateNumberEntryL() "); |
227 __LOGMETHODSTARTEND( EPhoneControl, "CPhoneNumberEntryManager::HandleCreateNumberEntryL() "); |
226 |
228 |
227 const TBool autoLcokOn = iState->IsAutoLockOn(); |
229 const TBool autoLcokOn = iState->IsAutoLockOn(); |
228 const TBool idleVal = CPhonePubSubProxy::Instance()->Value( KPSUidAiInformation, KActiveIdleState ); |
230 // <-- QT PHONE START --> |
|
231 const TBool idleVal = false; |
|
232 //const TBool idleVal = CPhonePubSubProxy::Instance()->Value( KPSUidAiInformation, KActiveIdleState ); |
229 const TBool queryActive = iState->IsAnyQueryActiveL(); |
233 const TBool queryActive = iState->IsAnyQueryActiveL(); |
230 const TBool menuBarVisible = iState->IsMenuBarVisibleL(); |
234 const TBool menuBarVisible = iState->IsMenuBarVisibleL(); |
231 |
235 |
232 if( autoLcokOn || |
236 if( autoLcokOn || |
233 ( idleVal == EPSAiForeground ) || |
237 ( idleVal /*== EPSAiForeground*/ ) || |
234 ( menuBarVisible || queryActive ) ) |
238 ( menuBarVisible || queryActive ) ) |
235 { |
239 { |
|
240 // <-- QT PHONE END --> |
236 __PHONELOG( EBasic, EPhoneControl, |
241 __PHONELOG( EBasic, EPhoneControl, |
237 "CPhoneNumberEntryManager::HandleCreateNumberEntryL() NE NOT CREATED" ); |
242 "CPhoneNumberEntryManager::HandleCreateNumberEntryL() NE NOT CREATED" ); |
238 __PHONELOG2( EBasic, EPhoneControl, |
243 __PHONELOG2( EBasic, EPhoneControl, |
239 "CPhoneNumberEntryManager::HandleCreateNumberEntryL() autoLcokOn(%d) idleVal(%d)", |
244 "CPhoneNumberEntryManager::HandleCreateNumberEntryL() autoLcokOn(%d) idleVal(%d)", |
240 autoLcokOn, idleVal ); |
245 autoLcokOn, idleVal ); |