equal
deleted
inserted
replaced
292 // |
292 // |
293 void CAdtUpdaterContainer::InformAboutNwUpdateL() |
293 void CAdtUpdaterContainer::InformAboutNwUpdateL() |
294 { |
294 { |
295 __PRINTS( "CAdtUpdaterContainer::InformAboutNwUpdate - Entry" ); |
295 __PRINTS( "CAdtUpdaterContainer::InformAboutNwUpdate - Entry" ); |
296 |
296 |
297 if( IsFirstBoot() && IsSimPresent() && IsNitzPluginActive() ) |
297 if( IsFirstBoot() && IsSimPresent() && IsNitzPluginActive() && PredictiveTimeEnabled()) |
298 { |
298 { |
299 __PRINTS( "First boot, sim is present and auto time update is ON" ); |
299 __PRINTS( "First boot, sim is present and auto time update is ON" ); |
300 |
300 |
301 // First bring the application to the foreground. |
301 // First bring the application to the foreground. |
302 iAdtUpdaterAppUi->ToggleAppViewL( EFalse ); |
302 iAdtUpdaterAppUi->ToggleAppViewL( EFalse ); |
313 TCallBack timerCallBack( CallBackL, this ); |
313 TCallBack timerCallBack( CallBackL, this ); |
314 iPeriodic = CPeriodic::NewL( EPriorityAbsoluteHigh ); |
314 iPeriodic = CPeriodic::NewL( EPriorityAbsoluteHigh ); |
315 // Start the timer |
315 // Start the timer |
316 iPeriodic->Start( KTimeout, KInterval, timerCallBack ); |
316 iPeriodic->Start( KTimeout, KInterval, timerCallBack ); |
317 } |
317 } |
318 else if( IsFirstBoot() ) |
318 else if( IsFirstBoot()&& PredictiveTimeEnabled() ) |
319 { |
319 { |
320 __PRINTS( "First boot, normal boot sequence" ); |
320 __PRINTS( "First boot, normal boot sequence" ); |
321 |
321 |
322 // The normal bootup sequence. |
322 // The normal bootup sequence. |
323 ContinueWithNormalBootL(); |
323 ContinueWithNormalBootL(); |
325 __PRINTS( "CAdtUpdaterContainer::InformAboutNwUpdate : 2nd condition - Exit" ); |
325 __PRINTS( "CAdtUpdaterContainer::InformAboutNwUpdate : 2nd condition - Exit" ); |
326 |
326 |
327 // Exit the application. |
327 // Exit the application. |
328 iAdtUpdaterAppUi->Exit(); |
328 iAdtUpdaterAppUi->Exit(); |
329 } |
329 } |
330 else if( !RTCStatus() && !HiddenReset() ) |
330 else if( !RTCStatus() && !HiddenReset() && PredictiveTimeEnabled()) |
331 { |
331 { |
332 __PRINTS( "RTC invalid or Hidden Reset" ); |
332 __PRINTS( "RTC invalid or Hidden Reset" ); |
333 |
333 |
334 // Show in FSW. |
334 // Show in FSW. |
335 iAdtUpdaterAppUi->HideApplicationFromFSW( EFalse ); |
335 iAdtUpdaterAppUi->HideApplicationFromFSW( EFalse ); |
1533 |
1533 |
1534 __PRINTS( "CAdtUpdaterContainer::StartupQueriesEnabledL - Exit" ); |
1534 __PRINTS( "CAdtUpdaterContainer::StartupQueriesEnabledL - Exit" ); |
1535 |
1535 |
1536 return TBool( showQueries ); |
1536 return TBool( showQueries ); |
1537 } |
1537 } |
|
1538 |
|
1539 // --------------------------------------------------------------------------- |
|
1540 // CAdtUpdaterContainer::PredictiveTimeEnabled() |
|
1541 // Rest of the details are commented in headers. |
|
1542 // --------------------------------------------------------------------------- |
|
1543 TBool CAdtUpdaterContainer::PredictiveTimeEnabled() |
|
1544 { |
|
1545 TInt value( EPredictiveTimeEnabled ); |
|
1546 CRepository* repository(NULL); |
|
1547 |
|
1548 TRAPD( err, repository = CRepository::NewL( KCRUidStartupConf ) ); |
|
1549 |
|
1550 if ( err == KErrNone ) |
|
1551 { |
|
1552 err = repository->Get( KPredictiveTimeAndCountrySelection, value ); |
|
1553 } |
|
1554 delete repository; |
|
1555 |
|
1556 return value; |
|
1557 } |
|
1558 |
1538 // End of file |
1559 // End of file |