28 #include <startupdomaincrkeys.h> |
28 #include <startupdomaincrkeys.h> |
29 #include <CoreApplicationUIsSDKCRKeys.h> |
29 #include <CoreApplicationUIsSDKCRKeys.h> |
30 #include <starterclient.h> |
30 #include <starterclient.h> |
31 #include <hbdevicemessageboxsymbian.h> |
31 #include <hbdevicemessageboxsymbian.h> |
32 #include "sanimstartupctrl.h" |
32 #include "sanimstartupctrl.h" |
|
33 #include <apgtask.h> |
33 |
34 |
34 // USER INCLUDES |
35 // USER INCLUDES |
35 #include "StartupAppUi.h" |
36 #include "StartupAppUi.h" |
36 #include "StartupApplication.h" |
37 #include "StartupApplication.h" |
37 |
38 |
96 // --------------------------------------------------------------------------- |
97 // --------------------------------------------------------------------------- |
97 // CStartupAppUi::ConstructL() |
98 // CStartupAppUi::ConstructL() |
98 // --------------------------------------------------------------------------- |
99 // --------------------------------------------------------------------------- |
99 void CStartupAppUi::ConstructL() |
100 void CStartupAppUi::ConstructL() |
100 { |
101 { |
|
102 RThread thread; //increase the thread priority to smooth the animation |
|
103 thread.SetPriority(EPriorityAbsoluteForeground); |
|
104 thread.Close(); |
101 TRACES("CStartupAppUi::ConstructL()"); |
105 TRACES("CStartupAppUi::ConstructL()"); |
102 TInt flags = EStandardApp; |
106 TInt flags = EStandardApp; |
103 BaseConstructL( flags ); |
107 BaseConstructL( flags ); |
104 |
108 |
105 iMainView = CStartupView::NewL( ApplicationRect() ); |
109 iMainView = CStartupView::NewL( ApplicationRect() ); |
607 // --------------------------------------------------------------------------- |
611 // --------------------------------------------------------------------------- |
608 void CStartupAppUi::DoStartupEndPart() |
612 void CStartupAppUi::DoStartupEndPart() |
609 { |
613 { |
610 TRACES("CStartupAppUi::DoStartupEndPart()"); |
614 TRACES("CStartupAppUi::DoStartupEndPart()"); |
611 TRACES("CStartupAppUi::DoStartupEndPart(): STARTUP OK"); |
615 TRACES("CStartupAppUi::DoStartupEndPart(): STARTUP OK"); |
612 |
616 |
613 |
617 TBool ftuenabled=EFalse; |
614 |
618 TInt err=KErrNone; |
615 |
619 #ifndef __WINSCW__ |
616 UpdateStartupUiPhase( EStartupUiPhaseAllDone ); |
620 TRAP(err, |
617 |
621 TInt enabled=0; |
|
622 //open cenrep; |
|
623 CRepository *cenrep=CRepository::NewLC(KCRUidStartupConf); |
|
624 //check if ftu is enabled or not |
|
625 User::LeaveIfError(cenrep->Get(KFtuStartupEnabled,enabled)); |
|
626 ftuenabled=!!enabled; //make sure we only have a boolean value here |
|
627 CleanupStack::PopAndDestroy(cenrep); |
|
628 ); |
|
629 #endif |
|
630 if(!ftuenabled) |
|
631 { |
|
632 UpdateStartupUiPhase( EStartupUiPhaseAllDone ); |
|
633 } |
618 |
634 |
619 TRACES("CStartupAppUi::DoStartupEndPart(): Exit application."); |
635 TRACES("CStartupAppUi::DoStartupEndPart(): Exit application."); |
620 iExitTimer->Start( 100000, 100000, TCallBack( DoExitApplication, this ) ); |
636 iExitTimer->Start( 100000, 100000, TCallBack( DoExitApplication, this ) ); |
621 TRACES("CStartupAppUi::DoStartupEndPart(): DoExitApplication-timer called."); |
637 TRACES("CStartupAppUi::DoStartupEndPart(): DoExitApplication-timer called."); |
622 TRACES("CStartupAppUi::DoStartupEndPart(): End"); |
638 TRACES("CStartupAppUi::DoStartupEndPart(): End"); |
1242 case EStartupFirstBootAndRTCCheck: |
1258 case EStartupFirstBootAndRTCCheck: |
1243 { |
1259 { |
1244 switch( toState ) |
1260 switch( toState ) |
1245 { |
1261 { |
1246 case EStartupStartupOK: |
1262 case EStartupStartupOK: |
1247 iInternalState = EStartupStartupOK; |
1263 iInternalState = EStartupStartupOK; |
1248 TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupStartupOK"); |
1264 TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupInvokeAndWaitForFtu"); |
1249 DoStartupEndPart(); |
1265 DoStartupEndPart(); |
1250 break; |
1266 break; |
1251 case EStartupSystemFatalError: |
1267 case EStartupSystemFatalError: |
1252 SystemFatalErrorL(); |
1268 SystemFatalErrorL(); |
1253 break; |
1269 break; |
1254 default: |
1270 default: |