equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
945 |
945 |
946 if(fTUDone) |
946 if(fTUDone) |
947 { |
947 { |
948 UpdateStartupUiPhase( EStartupUiPhaseAllDone ); |
948 UpdateStartupUiPhase( EStartupUiPhaseAllDone ); |
949 } |
949 } |
950 else |
950 else |
951 { |
951 { |
952 UpdateStartupUiPhase(EStartupUiPhaseAllDone+1); |
952 UpdateStartupUiPhase(EStartupUiPhaseAllDone+1); |
953 } |
953 } |
954 |
954 |
955 //UpdateStartupUiPhase( EStartupUiPhaseAllDone ); |
955 //UpdateStartupUiPhase( EStartupUiPhaseAllDone ); |
956 |
|
957 |
956 |
958 #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
957 #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
959 |
958 |
960 TRACES("CStartupAppUi::DoStartupEndPart(): Exit application."); |
959 TRACES("CStartupAppUi::DoStartupEndPart(): Exit application."); |
961 iExitTimer->Start( 100000, 100000, TCallBack( DoExitApplication, this ) ); |
960 iExitTimer->Start( 100000, 100000, TCallBack( DoExitApplication, this ) ); |
968 //From Startupwelcomecrkeys.h |
967 //From Startupwelcomecrkeys.h |
969 CRepository* repo = CRepository::NewLC(KCRUidWelcome6); |
968 CRepository* repo = CRepository::NewLC(KCRUidWelcome6); |
970 repo->Get(KPhoneActicationCompleted, aFTUAvailable); |
969 repo->Get(KPhoneActicationCompleted, aFTUAvailable); |
971 CleanupStack::PopAndDestroy(repo); |
970 CleanupStack::PopAndDestroy(repo); |
972 } |
971 } |
973 |
|
974 |
972 |
975 #ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
973 #ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
976 // --------------------------------------------------------------------------- |
974 // --------------------------------------------------------------------------- |
977 // CStartupAppUi::ContinueStartupAfterToneL() |
975 // CStartupAppUi::ContinueStartupAfterToneL() |
978 // --------------------------------------------------------------------------- |
976 // --------------------------------------------------------------------------- |
1588 // ---------------------------------------------------------------------------- |
1586 // ---------------------------------------------------------------------------- |
1589 |
1587 |
1590 TBool CStartupAppUi::DosInOfflineModeL() |
1588 TBool CStartupAppUi::DosInOfflineModeL() |
1591 { |
1589 { |
1592 TRACES("CStartupAppUi::DosInOfflineModeL()"); |
1590 TRACES("CStartupAppUi::DosInOfflineModeL()"); |
1593 |
1591 if ( iOfflineModeSupported ) |
1594 // Do not display the Offline mode query if the AT cmd cenrep key (KStartupATcmdCFUNProfileChange) value set to 1 or 2, iAtcmdCfunProfileChange member holds the key value |
|
1595 |
|
1596 if ( iOfflineModeSupported && (iAtcmdCfunProfileChange == 0) ) |
|
1597 { |
1592 { |
1598 TRACES1("CStartupAppUi::DosInOfflineModeL(): iOfflineModeSupported == %d", iOfflineModeSupported ); |
1593 TRACES1("CStartupAppUi::DosInOfflineModeL(): iOfflineModeSupported == %d", iOfflineModeSupported ); |
1599 return UiInOfflineMode(); |
1594 return UiInOfflineMode(); |
1600 } |
1595 } |
1601 else |
1596 else |
1654 |
1649 |
1655 TInt status( EStartupSimInitWait ); |
1650 TInt status( EStartupSimInitWait ); |
1656 RProperty::Get(KPSUidStartup, KPSSimStatus, status); |
1651 RProperty::Get(KPSUidStartup, KPSSimStatus, status); |
1657 |
1652 |
1658 TInt reply ( 0 ); |
1653 TInt reply ( 0 ); |
1659 // AT Command CFUN specifc code |
|
1660 CRepository* repository( NULL ); |
|
1661 TInt errVal; |
|
1662 TRAP( errVal, repository = CRepository::NewL(KCRUidStartupConf) ); |
|
1663 if(errVal == KErrNone) |
|
1664 { |
|
1665 errVal = repository->Get(KStartupATcmdCFUNProfileChange, iAtcmdCfunProfileChange); |
|
1666 if(!errVal && iAtcmdCfunProfileChange >0) |
|
1667 { |
|
1668 errVal = repository->Set(KStartupATcmdCFUNProfileChange, 0); |
|
1669 } |
|
1670 } |
|
1671 delete repository; |
|
1672 if (status == ESimUsable || status == ESimReadable || status == ESimNotReady || !iSimSupported) |
1654 if (status == ESimUsable || status == ESimReadable || status == ESimNotReady || !iSimSupported) |
1673 { |
1655 { |
1674 TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Show offline mode query if needed"); |
1656 TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Show offline mode query if needed"); |
1675 |
1657 |
1676 if ( HiddenReset() && DosInOfflineModeL() && !SimStatusChangedReset() ) |
1658 if ( HiddenReset() && DosInOfflineModeL() && !SimStatusChangedReset() ) |
1717 { |
1699 { |
1718 TRACES("CStartupAppUi::ShowOfflineModeQueryL(): SIM card removed. No offline mode query."); |
1700 TRACES("CStartupAppUi::ShowOfflineModeQueryL(): SIM card removed. No offline mode query."); |
1719 } |
1701 } |
1720 #endif |
1702 #endif |
1721 |
1703 |
1722 // AT Command CFUN specifc code |
|
1723 // AT command CFUN implementation plugin sets the key KStartupATcmdCFUNProfileChange to 1 in the case of Offline to Online profile change |
|
1724 // AT command CFUN implementation plugin sets the key KStartupATcmdCFUNProfileChange to 2 in the case of Online to Offline profile change |
|
1725 if(iAtcmdCfunProfileChange == 1) |
|
1726 { |
|
1727 reply = 0; |
|
1728 } |
|
1729 else if(iAtcmdCfunProfileChange == 2) |
|
1730 { |
|
1731 reply = 1; |
|
1732 } |
|
1733 // End AT Command CFUN specifc code |
|
1734 TRACES1("CStartupAppUi::ShowOfflineModeQueryL(): BootIntoOffline=%d.", reply); |
1704 TRACES1("CStartupAppUi::ShowOfflineModeQueryL(): BootIntoOffline=%d.", reply); |
1735 TInt err = RProperty::Set( KPSUidStartup, |
1705 TInt err = RProperty::Set( KPSUidStartup, |
1736 KStartupBootIntoOffline, |
1706 KStartupBootIntoOffline, |
1737 reply ? EBootIntoOfflineMode : EBootIntoOnlineMode ); |
1707 reply ? EBootIntoOfflineMode : EBootIntoOnlineMode ); |
1738 |
1708 |