author | fimarlaht2 <> |
Mon, 18 Oct 2010 15:01:14 +0300 | |
branch | RCL_3 |
changeset 85 | 32f887d619a0 |
parent 82 | 4610cd70c542 |
permissions | -rw-r--r-- |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
82
4610cd70c542
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
70
diff
changeset
|
2 |
* Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies). |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
* |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
11 |
* |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
13 |
* |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
14 |
* Description: AppUi class of the application. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
* |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
16 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
18 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
// SYSTEM INCLUDES |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
20 |
#include <StringLoader.h> |
63 | 21 |
#include <AknGlobalNote.h> //used for Selftest failed note |
22 |
#include <aknPopup.h> |
|
23 |
#include <aknlists.h> |
|
24 |
#include <aknSDData.h> |
|
25 |
#include <badesca.h> |
|
26 |
#include <tzlocalizationdatatypes.h> |
|
27 |
#include <tzlocalizer.h> |
|
28 |
#include <tz.h> |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
29 |
#include <featmgr.h> // Feature Manager |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
30 |
#include <centralrepository.h> |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
31 |
#include <startup.rsg> |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
32 |
#include <starterdomaincrkeys.h> |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
33 |
#include "startupappprivatepskeys.h" |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
34 |
#include <startupdomainpskeys.h> |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
35 |
#include <startupdomaincrkeys.h> |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
36 |
#include <CoreApplicationUIsSDKCRKeys.h> |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
37 |
#include <starterclient.h> |
63 | 38 |
#include "StartupWelcomeCrKeys.h" |
39 |
||
40 |
#ifdef RD_UI_TRANSITION_EFFECTS_PHASE2 |
|
41 |
// Transition effects |
|
42 |
#include <gfxtranseffect/gfxtranseffect.h> |
|
43 |
#include <akntranseffect.h> |
|
44 |
#endif |
|
45 |
||
46 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
47 |
#include "sanimstartupctrl.h" |
|
48 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
49 |
#include <akndef.h> // For layout change event definitions |
|
50 |
#include <AknSoundSystem.h> |
|
51 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
52 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
53 |
// USER INCLUDES |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
54 |
#include "StartupAppUi.h" |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
55 |
#include "StartupApplication.h" |
63 | 56 |
#include "StartupUserWelcomeNote.h" |
57 |
#include "StartupQueryDialog.h" //used for Startup own Time and Date queries |
|
58 |
#include "StartupPopupList.h" //used for Startup own City and Country queries |
|
59 |
#include "StartupMediatorObserver.h" |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
60 |
#include "StartupPubSubObserver.h" |
63 | 61 |
|
62 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
63 |
#include "startupanimationwrapper.h" |
|
64 |
#include "startupview.h" |
|
65 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
66 |
#include "StartupDocument.h" |
|
67 |
#include "StartupOperatorAnimation.h" |
|
68 |
#include "StartupTone.h" |
|
69 |
#include "StartupWelcomeAnimation.h" |
|
70 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
71 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
72 |
|
63 | 73 |
// CONSTANTS |
74 |
const TInt KUserWelcomeNoteShowPeriodTime = 3000000; // 3 sec |
|
75 |
||
76 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
77 |
const TInt KOneMilliSecondInMicroSeconds = 1000; |
|
78 |
const TInt KMaxToneInitWait = 200; // 200 ms |
|
79 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
80 |
||
81 |
static const TInt KMaxCityLength(120); |
|
82 |
static const TInt KMaxCountryLength(120); |
|
83 |
||
84 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
85 |
static const CSAnimStartupCtrl::TAnimationParams KStartupAnimationParams = |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
86 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
87 |
KCRUidStartupConf, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
88 |
KStartupAnimationPath, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
89 |
KStartupAnimationFrameDelay, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
90 |
KStartupAnimationScaling, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
91 |
KStartupTonePath, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
92 |
KStartupToneVolume |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
93 |
}; |
63 | 94 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
95 |
|
63 | 96 |
_LIT(KEmpty, " "); |
97 |
||
98 |
// Default date and time value is used if cenrep string is not valid |
|
99 |
// Default date is 01.01.2007 and default time is 09:00 AM |
|
100 |
_LIT( KDefaultDateTimeValue, "20070000:090000" ); // YYYYMMDD:HHMMSS |
|
101 |
||
102 |
static const TInt KTimeFormatLength(16); // "20070000:090000." |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
103 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
104 |
_LIT_SECURITY_POLICY_C1(KReadDeviceDataPolicy, ECapabilityReadDeviceData); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
105 |
_LIT_SECURITY_POLICY_C1(KWriteDeviceDataPolicy, ECapabilityWriteDeviceData); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
106 |
_LIT_SECURITY_POLICY_PASS(KAlwaysPassPolicy); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
107 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
108 |
// ======== LOCAL FUNCTIONS ================================================== |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
109 |
|
63 | 110 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
111 |
namespace |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
112 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
113 |
TInt AnimationFinishedFunc( TAny* aPtr ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
114 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
115 |
static_cast<CStartupAppUi*>( aPtr )->AnimationFinished(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
116 |
return KErrNone; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
117 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
118 |
} |
63 | 119 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
120 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
121 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
122 |
// ================= MEMBER FUNCTIONS ======================================== |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
123 |
// |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
124 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
125 |
// CStartupAppUi::CStartupAppUi() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
126 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
127 |
CStartupAppUi::CStartupAppUi() : |
63 | 128 |
iUserWelcomeNote( NULL ), |
129 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
130 |
iStartupTone( NULL ), |
|
131 |
iOpStartupTone( NULL ), |
|
132 |
iToneInitWaitTime( 0 ), |
|
133 |
iAnimation( EFalse ), |
|
134 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
135 |
iInternalState( EStartupStartingUp ), |
|
136 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
137 |
iSplashScreenShouldBeRemoved( EFalse ), |
|
138 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
139 |
iStartupFirstBootAndRTCCheckAlreadyCalled( EFalse ), |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
140 |
iChargingOrAlarmBoot( EFalse ), |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
141 |
iFirstBoot( ETrue ), |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
142 |
iCleanBoot( EStartupNormalBoot ), |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
143 |
iOfflineModeSupported( EFalse ), |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
144 |
iOfflineModeQueryShown( EFalse ), |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
145 |
iCriticalBlockEnded( EFalse ), |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
146 |
iSwStateFatalStartupError( EFalse ), |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
147 |
iStartupWaitingShowStartupAnimation( EFalse ), |
63 | 148 |
iSimSupported( ETrue ), |
149 |
iStartupMediatorObserver( NULL ), |
|
150 |
iCoverUISupported( EFalse ), |
|
151 |
iCounryListIndex( 0 ) |
|
152 |
, iTime( 0 ) |
|
153 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
154 |
, iTouchScreenCalibSupport( EFalse ) |
|
155 |
, iTouchScreenCalibrationDone( EFalse ) |
|
156 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
157 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
158 |
TRACES("CStartupAppUi::CStartupAppUi"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
159 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
160 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
161 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
162 |
// CStartupAppUi::ConstructL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
163 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
164 |
void CStartupAppUi::ConstructL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
165 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
166 |
TRACES("CStartupAppUi::ConstructL()"); |
63 | 167 |
TInt flags = EStandardApp|EAknEnableSkin|EAknEnableMSK ; |
168 |
||
169 |
BaseConstructL(flags); |
|
170 |
||
171 |
iAvkonAppUi->SetKeyEventFlags( CAknAppUiBase::EDisableSendKeyShort | |
|
172 |
CAknAppUiBase::EDisableSendKeyLong ); |
|
173 |
||
174 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
62
924385140d98
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
58
diff
changeset
|
175 |
iMainView = CStartupView::NewL( ApplicationRect() ); |
924385140d98
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
58
diff
changeset
|
176 |
iAnimation = CStartupAnimationWrapper::NewL( *iMainView ); |
63 | 177 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
178 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
179 |
TInt err = RProperty::Define( KPSUidStartupApp, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
180 |
KPSStartupAppState, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
181 |
RProperty::EInt, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
182 |
KReadDeviceDataPolicy, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
183 |
KWriteDeviceDataPolicy ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
184 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
185 |
if( KErrNone != err && |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
186 |
KErrAlreadyExists != err ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
187 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
188 |
TRACES1("CStartupAppUi::ConstructL(): KPSStartupAppState define err %d", err); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
189 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
190 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
191 |
err = RProperty::Set( KPSUidStartupApp, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
192 |
KPSStartupAppState, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
193 |
EStartupAppStateWait ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
194 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
195 |
if( KErrNone != err ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
196 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
197 |
TRACES1("CStartupAppUi::ConstructL(): KPSStartupAppState set err %d", err); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
198 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
199 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
200 |
iStartupPubSubObserver = CStartupPubSubObserver::NewL( this ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
201 |
|
63 | 202 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
203 |
err = RProperty::Define( KPSUidStartup, |
|
204 |
KStartupBootIntoOffline, |
|
205 |
RProperty::EInt, |
|
206 |
KReadDeviceDataPolicy, |
|
207 |
KWriteDeviceDataPolicy ); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
208 |
|
63 | 209 |
if( KErrNone != err && |
210 |
KErrAlreadyExists != err ) |
|
211 |
{ |
|
212 |
TRACES1("CStartupAppUi::ConstructL(): KStartupBootIntoOffline define err %d", err); |
|
213 |
} |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
214 |
|
63 | 215 |
err = RProperty::Define( KPSUidStartup, |
216 |
KStartupSecurityCodeQueryStatus, |
|
217 |
RProperty::EInt, |
|
218 |
KReadDeviceDataPolicy, |
|
219 |
KWriteDeviceDataPolicy ); |
|
220 |
if( KErrNone != err && |
|
221 |
KErrAlreadyExists != err ) |
|
222 |
{ |
|
223 |
TRACES1("CStartupAppUi::ConstructL(): KStartupSecurityCodeQueryStatus define err %d", err); |
|
224 |
} |
|
225 |
err = RProperty::Define( KPSUidStartup, |
|
226 |
KStartupCleanBoot, |
|
227 |
RProperty::EInt, |
|
228 |
KReadDeviceDataPolicy, |
|
229 |
KWriteDeviceDataPolicy ); |
|
230 |
if( KErrNone != err && |
|
231 |
KErrAlreadyExists != err ) |
|
232 |
{ |
|
233 |
TRACES1("CStartupAppUi::ConstructL(): KStartupCleanBoot define err %d", err); |
|
234 |
} |
|
235 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
236 |
|
63 | 237 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
238 |
err = RProperty::Define( KPSUidStartup, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
239 |
KPSStartupUiPhase, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
240 |
RProperty::EInt, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
241 |
KAlwaysPassPolicy, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
242 |
KWriteDeviceDataPolicy ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
243 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
244 |
if( KErrNone != err && |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
245 |
KErrAlreadyExists != err ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
246 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
247 |
TRACES1("CStartupAppUi::ConstructL(): KPSStartupUiPhase define err %d", err); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
248 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
249 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
250 |
UpdateStartupUiPhase( EStartupUiPhaseUninitialized ); |
63 | 251 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
252 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
253 |
FeatureManager::InitializeLibL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
254 |
if ( FeatureManager::FeatureSupported( KFeatureIdOfflineMode ) ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
255 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
256 |
iOfflineModeSupported = ETrue; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
257 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
258 |
if ( !FeatureManager::FeatureSupported( KFeatureIdSimCard ) ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
259 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
260 |
iSimSupported = EFalse; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
261 |
} |
63 | 262 |
if ( FeatureManager::FeatureSupported( KFeatureIdCoverDisplay ) ) |
263 |
{ |
|
264 |
iCoverUISupported = ETrue; |
|
265 |
} |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
266 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
267 |
TRACES1("CStartupAppUi::ConstructL(): Offline mode supported: %d", iOfflineModeSupported ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
268 |
TRACES1("CStartupAppUi::ConstructL(): SIM card supported: %d", iSimSupported ); |
63 | 269 |
TRACES1("CStartupAppUi::ConstructL(): CoverUI supported: %d", iCoverUISupported ); |
270 |
||
271 |
#if defined (RD_SCALABLE_UI_V2) && !defined(RD_STARTUP_ANIMATION_CUSTOMIZATION) |
|
272 |
if ( FeatureManager::FeatureSupported(KFeatureIdPenSupport) && |
|
273 |
FeatureManager::FeatureSupported(KFeatureIdPenSupportCalibration) ) |
|
274 |
{ |
|
275 |
iTouchScreenCalibSupport = ETrue; |
|
276 |
} |
|
277 |
#endif // RD_SCALABLE_UI_V2 && !RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
278 |
||
279 |
if (iCoverUISupported) |
|
280 |
{ |
|
281 |
iStartupMediatorObserver = CStartupMediatorObserver::NewL( this ); |
|
282 |
} |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
283 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
284 |
iFirstBoot = FirstBoot(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
285 |
TRACES1("CStartupAppUi::ConstructL(): First boot: %d", iFirstBoot ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
286 |
|
63 | 287 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
288 |
iWelcomeAnimation = CStartupWelcomeAnimation::NewL( this, ClientRect()); |
|
289 |
AddToStackL( iWelcomeAnimation ); |
|
290 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
291 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
292 |
// Set Startup application to be system application |
63 | 293 |
iEikonEnv->SetSystem( ETrue ); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
294 |
|
63 | 295 |
iEikonEnv->RootWin().SetOrdinalPosition(0,0); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
296 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
297 |
// Disable priority changes of window server |
63 | 298 |
iEikonEnv->WsSession().ComputeMode( |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
299 |
RWsSession::EPriorityControlDisabled ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
300 |
|
63 | 301 |
iNoteTimer = CPeriodic::NewL( EPriorityNormal ); |
302 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
303 |
iAnimTimer = CPeriodic::NewL( EPriorityNormal ); |
|
304 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
305 |
iExitTimer = CPeriodic::NewL( EPriorityNormal ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
306 |
|
63 | 307 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
308 |
TRACES("CStartupAppUi::ConstructL(): StartupTone: Initialising"); |
|
309 |
iStartupTone = CStartupTone::NewL( this, EStartupTone ); |
|
310 |
TRACES("CStartupAppUi::ConstructL(): StartupTone: Initialised"); |
|
311 |
||
312 |
TRACES("CStartupAppUi::ConstructL(): Operator StartupTone: Initialising"); |
|
313 |
iOpStartupTone = CStartupTone::NewL( this, EStartupOpTone ); |
|
314 |
TRACES("CStartupAppUi::ConstructL(): Operator StartupTone: Initialised"); |
|
315 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
316 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
317 |
if ( iSwStateFatalStartupError ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
318 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
319 |
TRACES("CStartupAppUi::ConstructL(): ESWStateFatalStartupError"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
320 |
DoNextStartupPhaseL( EStartupSystemFatalError ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
321 |
TRACES("CStartupAppUi::ConstructL(): End, Boot failed"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
322 |
return;//Execution stops here. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
323 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
324 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
325 |
DoStartupStartPartL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
326 |
TRACES("CStartupAppUi::ConstructL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
327 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
328 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
329 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
330 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
331 |
// CStartupAppUi::~CStartupAppUi() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
332 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
333 |
CStartupAppUi::~CStartupAppUi() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
334 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
335 |
TRACES("CStartupAppUi::~CStartupAppUi()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
336 |
|
63 | 337 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
338 |
if (iWelcomeAnimation) |
|
339 |
{ |
|
340 |
RemoveFromStack( iWelcomeAnimation ); |
|
341 |
delete iWelcomeAnimation; |
|
342 |
} |
|
343 |
||
344 |
if (iOperatorAnimation) |
|
345 |
{ |
|
346 |
RemoveFromStack( iOperatorAnimation); |
|
347 |
delete iOperatorAnimation; |
|
348 |
} |
|
349 |
||
350 |
if (iUserWelcomeNote) |
|
351 |
{ |
|
352 |
RemoveFromStack( iUserWelcomeNote ); |
|
353 |
delete iUserWelcomeNote; |
|
354 |
iUserWelcomeNote = NULL; |
|
355 |
} |
|
356 |
||
357 |
if (iStartupPubSubObserver) |
|
358 |
{ |
|
359 |
delete iStartupPubSubObserver; |
|
360 |
} |
|
361 |
if (iStartupMediatorObserver) |
|
362 |
{ |
|
363 |
delete iStartupMediatorObserver; |
|
364 |
} |
|
365 |
if (iStartupTone) |
|
366 |
{ |
|
367 |
delete iStartupTone; |
|
368 |
} |
|
369 |
if (iOpStartupTone) |
|
370 |
{ |
|
371 |
delete iOpStartupTone; |
|
372 |
} |
|
373 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
374 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
375 |
if( iExitTimer ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
376 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
377 |
iExitTimer->Cancel(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
378 |
delete iExitTimer; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
379 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
380 |
|
63 | 381 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
382 |
if( iAnimTimer ) |
|
383 |
{ |
|
384 |
iAnimTimer->Cancel(); |
|
385 |
delete iAnimTimer; |
|
386 |
} |
|
387 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
388 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
389 |
if( iNoteTimer ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
390 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
391 |
iNoteTimer->Cancel(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
392 |
delete iNoteTimer; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
393 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
394 |
|
63 | 395 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
396 |
delete iUserWelcomeNote; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
397 |
delete iAnimation; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
398 |
delete iStartupPubSubObserver; |
63 | 399 |
delete iStartupMediatorObserver; |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
400 |
delete iMainView; |
63 | 401 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
402 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
403 |
FeatureManager::UnInitializeLib(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
404 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
405 |
TRACES("CStartupAppUi::~CStartupAppUi(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
406 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
407 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
408 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
409 |
// CStartupAppUi::PrepareToExit() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
410 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
411 |
void CStartupAppUi::PrepareToExit() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
412 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
413 |
TRACES("CStartupAppUi::PrepareToExit()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
414 |
|
63 | 415 |
#ifdef RD_UI_TRANSITION_EFFECTS_PHASE2 |
416 |
// Start the custom exit effect at boot time. |
|
417 |
// Note: Not allowed to call GfxTransEffect::EndFullScreen() as AVKON takes care of that when |
|
418 |
// EApplicationExit context is used! |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
419 |
|
63 | 420 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
421 |
if ( !( iAnimation->WasCancelled() ) ) |
|
422 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
423 |
if( !iWelcomeAnimation->IsAnimationCancelled() ) |
|
424 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
425 |
{ |
|
426 |
TRACES("CStartupAppUi::PrepareToExit(): Starting transition effect"); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
427 |
|
63 | 428 |
GfxTransEffect::BeginFullScreen( AknTransEffect::EApplicationExit, TRect(), |
429 |
AknTransEffect::EParameterType, |
|
430 |
AknTransEffect::GfxTransParam( KUidStartUp, AknTransEffect::TParameter::EAllowAtBoot ) ); |
|
431 |
} |
|
432 |
#endif |
|
433 |
||
434 |
CEikAppUi::PrepareToExit(); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
435 |
#ifndef RD_BOOT_CUSTOMIZABLE_AI |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
436 |
if( !iChargingOrAlarmBoot ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
437 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
438 |
TRACES("CStartupAppUi::PrepareToExit(): NOT Charger/alarm boot"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
439 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
440 |
TRACES("CStartupAppUi::PrepareToExit(): Activate Idle app"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
441 |
TVwsViewId viewId = TVwsViewId(TUid::Uid(0x101FD64C), TUid::Uid(0x101FD64C)); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
442 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
443 |
TUid customMessageUid = KNullUid; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
444 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
445 |
TRAPD(ignore, CreateActivateViewEventL(viewId, customMessageUid, KNullDesC8())); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
446 |
if (ignore != KErrNone) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
447 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
448 |
TRACES1("CStartupAppUi::PrepareToExit(): CreateActivateViewEventL() leaves, err = %d", ignore ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
449 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
450 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
451 |
#endif //RD_BOOT_CUSTOMIZABLE_AI |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
452 |
TRACES("CStartupAppUi::PrepareToExit(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
453 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
454 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
455 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
456 |
// CStartupAppUi::DoStopTimingL(TAny* aObject) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
457 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
458 |
TInt CStartupAppUi::DoStopTimingL(TAny* aObject) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
459 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
460 |
TRACES("CStartupAppUi::DoStopTimingL() +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ "); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
461 |
TRACES1("CStartupAppUi::DoStopTimingL(): Object: %d", aObject); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
462 |
STATIC_CAST( CStartupAppUi*, aObject )->StopTimingL(); // cast, and call non-static function |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
463 |
TRACES("CStartupAppUi::DoStopTimingL(): End ------------------------------------------------------ "); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
464 |
return KErrNone; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
465 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
466 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
467 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
468 |
// CStartupAppUi::DoExitApplication(TAny* aObject) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
469 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
470 |
TInt CStartupAppUi::DoExitApplication(TAny* aObject) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
471 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
472 |
TRACES("CStartupAppUi::DoExitApplication()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
473 |
STATIC_CAST( CStartupAppUi*, aObject )->ExitApplication(); // cast, and call non-static function |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
474 |
TRACES("CStartupAppUi::DoExitApplication(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
475 |
return KErrNone; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
476 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
477 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
478 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
479 |
// CStartupAppUi::HandleKeyEventL |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
480 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
481 |
TKeyResponse CStartupAppUi::HandleKeyEventL( |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
482 |
const TKeyEvent& aKeyEvent, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
483 |
TEventCode aType ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
484 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
485 |
TRACES3("CStartupAppUi::HandleKeyEventL(): code = %d, type = %d, repeats = %d", |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
486 |
aKeyEvent.iCode, aType, aKeyEvent.iRepeats); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
487 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
488 |
TKeyResponse response( EKeyWasNotConsumed ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
489 |
if ( aType != EEventNull && |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
490 |
aKeyEvent.iCode == EKeyApplication0 && // Apps key |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
491 |
( iInternalState == EStartupShowingWelcomeAnimation || |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
492 |
iInternalState == EStartupShowingOperatorAnimation || |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
493 |
iInternalState == EStartupShowingUserWelcomeNote ) ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
494 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
495 |
if ( aKeyEvent.iRepeats && iCleanBoot != EStartupCleanBoot) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
496 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
497 |
// Long apps key press detected. Set clean boot. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
498 |
SetCleanBoot(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
499 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
500 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
501 |
response = EKeyWasConsumed; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
502 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
503 |
else if ( aType != EEventNull && |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
504 |
aKeyEvent.iCode != EStdKeyNull && |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
505 |
aType == EEventKeyDown ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
506 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
507 |
TRACES("CStartupAppUi::HandleKeyEventL(): Event code is EEventKeyDown"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
508 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
509 |
if ( iOfflineModeQueryShown ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
510 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
511 |
TRACES("CStartupAppUi::HandleKeyEventL(): First key event comes from Offline Mode Query"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
512 |
// first key event comes from Offline Mode Query |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
513 |
iOfflineModeQueryShown = EFalse; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
514 |
response = EKeyWasConsumed; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
515 |
} |
63 | 516 |
else if ( iUserWelcomeNote ) |
517 |
{ |
|
518 |
TRACES("CStartupAppUi::HandleKeyEventL(): This key event is used to stop UserWelcomeAnimation"); |
|
519 |
//this is used to stop User Welcome note showing |
|
520 |
StopTimingL(); |
|
521 |
response = EKeyWasConsumed; |
|
522 |
} |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
523 |
else if ( ( iInternalState == EStartupShowingWelcomeAnimation || |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
524 |
iInternalState == EStartupShowingOperatorAnimation ) && |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
525 |
!( iAnimation->WasCancelled() ) ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
526 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
527 |
TRACES("CStartupAppUi::HandleKeyEventL(): This key event is used to cancel animations"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
528 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
529 |
CancelAnimation(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
530 |
response = EKeyWasConsumed; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
531 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
532 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
533 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
534 |
TRACES1("CStartupAppUi::HandleKeyEventL(): End, return %d", response); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
535 |
return response; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
536 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
537 |
|
63 | 538 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
539 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
540 |
// CStartupAppUi::HandleResourceChangeL |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
541 |
// |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
542 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
543 |
// |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
544 |
void CStartupAppUi::HandleResourceChangeL( TInt aType ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
545 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
546 |
TRACES("CStartupAppUi::HandleResourceChangeL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
547 |
TRACES1("CStartupAppUi::HandleResourceChangeL Type: %d", aType); |
63 | 548 |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
549 |
CAknAppUi::HandleResourceChangeL( aType ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
550 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
551 |
if ( aType == KEikDynamicLayoutVariantSwitch ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
552 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
553 |
iMainView->SetRect( ApplicationRect() ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
554 |
} |
63 | 555 |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
556 |
TRACES("CStartupAppUi::HandleResourceChangeL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
557 |
} |
63 | 558 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
559 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
560 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
561 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
562 |
// CStartupAppUi::HandleCommandL(TInt aCommand) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
563 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
564 |
void CStartupAppUi::HandleCommandL(TInt aCommand) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
565 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
566 |
TRACES("CStartupAppUi::HandleCommandL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
567 |
switch (aCommand) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
568 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
569 |
case EEikCmdExit: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
570 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
571 |
TRACES("CStartupAppUi::HandleCommandL(): EEikCmdExit"); |
63 | 572 |
Exit(); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
573 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
574 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
575 |
default: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
576 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
577 |
}//End of switch-clause |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
578 |
TRACES("CStartupAppUi::HandleCommandL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
579 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
580 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
581 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
582 |
// CStartupAppUi::DoStartupStartPartL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
583 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
584 |
void CStartupAppUi::DoStartupStartPartL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
585 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
586 |
TRACES("CStartupAppUi::DoStartupStartPartL()"); |
63 | 587 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
588 |
TryPreLoadAnimation(); |
63 | 589 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
590 |
DoNextStartupPhaseL( EStartupWaitingCriticalBlock ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
591 |
TRACES("CStartupAppUi::DoStartupStartPartL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
592 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
593 |
|
63 | 594 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
595 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
596 |
// CStartupAppUi::TryPreLoadAnimation() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
597 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
598 |
void CStartupAppUi::TryPreLoadAnimation() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
599 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
600 |
TRACES("CStartupAppUi::TryPreLoadAnimation()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
601 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
602 |
TInt state( ESwStateStartingCriticalApps ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
603 |
TInt err; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
604 |
err = RProperty::Get( KPSUidStartup, KPSGlobalSystemState, state ); // Use default if this fails |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
605 |
if( KErrNone != err ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
606 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
607 |
TRACES1("CStartupAppUi::TryPreLoadAnimation(): KPSGlobalSystemState get err %d", err); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
608 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
609 |
TInt mode( EStartupModeNormal ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
610 |
err = RProperty::Get( KPSUidStartup, KPSGlobalStartupMode, mode ); // Use default if this fails |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
611 |
if( KErrNone != err ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
612 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
613 |
TRACES1("CStartupAppUi::TryPreLoadAnimation(): KPSGlobalStartupMode get err %d", err); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
614 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
615 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
616 |
TRACES2("CStartupAppUi::TryPreLoadAnimation(): State: %d, mode %d", state, mode); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
617 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
618 |
if ( ( !HiddenReset() || iFirstBoot ) && // First boot or not-a-reset |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
619 |
( ( ( state == ESwStateStartingCriticalApps || state == ESwStateSelfTestOK ) && |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
620 |
mode == EStartupModeNormal ) || // Not going to charging or alarm mode |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
621 |
state == ESwStateSecurityCheck ) ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
622 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
623 |
iAnimation->PreLoad( |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
624 |
ClientRect(), |
63 | 625 |
*iMainView, |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
626 |
KStartupAnimationParams, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
627 |
ETrue, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
628 |
SecondaryDisplay::EStartWelcomeAnimation ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
629 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
630 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
631 |
TRACES("CStartupAppUi::TryPreLoadAnimation(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
632 |
} |
63 | 633 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
634 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
635 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
636 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
637 |
// CStartupAppUi::DoStartupShowWelcomeAnimationL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
638 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
639 |
void CStartupAppUi::DoStartupShowWelcomeAnimationL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
640 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
641 |
TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
642 |
if ( HiddenReset() ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
643 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
644 |
//skip the welcome animation and user welcome note and continue with |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
645 |
//the same way like in the end of ShowUserWelcomeNoteL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
646 |
TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): Skip the animation and UWN because it's hidden reset"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
647 |
TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): and change internal state directly to EStartupFirstBootAndRTCCheck"); |
63 | 648 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
649 |
iWelcomeAnimation->RemoveSplashScreen(); |
|
650 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
651 |
DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); |
63 | 652 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
653 |
return; |
|
654 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
655 |
} |
63 | 656 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
657 |
else |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
658 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
659 |
TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): Show animation"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
660 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
661 |
iAnimation->Play( |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
662 |
ClientRect(), |
63 | 663 |
*iMainView, |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
664 |
KStartupAnimationParams, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
665 |
ETrue, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
666 |
SecondaryDisplay::EStartWelcomeAnimation, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
667 |
TCallBack( AnimationFinishedFunc, this ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
668 |
} |
63 | 669 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
670 |
|
63 | 671 |
TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): Play startup tone."); |
672 |
||
673 |
// Play startup tone |
|
674 |
if (iStartupTone->Play() != KErrNone) |
|
675 |
{ |
|
676 |
// Play startup beep. |
|
677 |
TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): Play startup beep"); |
|
678 |
static_cast<CAknAppUi*>(iEikonEnv-> |
|
679 |
EikAppUi())-> |
|
680 |
KeySounds()-> |
|
681 |
PlaySound( EAvkonSIDPowerOnTone ); |
|
682 |
} |
|
683 |
iWelcomeAnimation->SetAnimationShowing(ETrue); |
|
684 |
ShowWelcomeAnimationL(); |
|
685 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
686 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
687 |
TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
688 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
689 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
690 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
691 |
// CStartupAppUi::DoStartupShowOperatorAnimationL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
692 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
693 |
void CStartupAppUi::DoStartupShowOperatorAnimationL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
694 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
695 |
TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
696 |
if ( HiddenReset() ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
697 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
698 |
//skip the operator animation and user welcome note and continue with |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
699 |
//the same way like in the end of ShowUserWelcomeNoteL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
700 |
TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): Skip the animation and UWN because it's hidden reset"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
701 |
TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): and change internal state directly to EStartupFirstBootAndRTCCheck"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
702 |
DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); |
63 | 703 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
704 |
return; |
|
705 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
706 |
} |
63 | 707 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
708 |
else |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
709 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
710 |
TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): Show animation"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
711 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
712 |
CSAnimStartupCtrl::TAnimationParams params; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
713 |
params.iRepositoryUid = KCRUidStartupConf; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
714 |
params.iAnimationPathKey = KStartupOperatorAnimationPath; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
715 |
params.iFrameDelayKey = KStartupOperatorAnimationFrameDelay; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
716 |
params.iEnableScalingKey = KStartupOperatorAnimationScaling; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
717 |
params.iTonePathKey = KStartupOperatorTonePath; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
718 |
params.iVolumeKey = KStartupOperatorToneVolume; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
719 |
iAnimation->Play( |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
720 |
ClientRect(), |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
721 |
*iMainView, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
722 |
params, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
723 |
EFalse, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
724 |
SecondaryDisplay::EStartOperatorAnimation, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
725 |
TCallBack( AnimationFinishedFunc, this ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
726 |
} |
63 | 727 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
728 |
if ( iOperatorAnimation->ShowingTime() ) |
|
729 |
{ |
|
730 |
TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): Operator animation time defined properly"); |
|
731 |
iOperatorAnimation->SetAnimationShowing(ETrue); |
|
732 |
iOpStartupTone->Play(); |
|
733 |
ShowOperatorAnimationL(); |
|
734 |
} |
|
735 |
else |
|
736 |
{ |
|
737 |
TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): Operator animation not defined. Skip it."); |
|
738 |
iOperatorAnimation->SetAnimationShowing(EFalse); |
|
739 |
DoNextStartupPhaseL( EStartupShowingUserWelcomeNote ); |
|
740 |
} |
|
741 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
742 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
743 |
TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
744 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
745 |
|
63 | 746 |
// --------------------------------------------------------------------------- |
747 |
// CStartupAppUi::DoStartupShowUserWelcomeNoteL() |
|
748 |
// --------------------------------------------------------------------------- |
|
749 |
void CStartupAppUi::DoStartupShowUserWelcomeNoteL() |
|
750 |
{ |
|
751 |
TRACES("CStartupAppUi::DoStartupShowUserWelcomeNoteL()"); |
|
752 |
ShowUserWelcomeNoteL(); |
|
753 |
TRACES("CStartupAppUi::DoStartupShowUserWelcomeNoteL(): End"); |
|
754 |
} |
|
755 |
||
756 |
// --------------------------------------------------------------------------- |
|
757 |
// CStartupAppUi::StartupQueriesEnabled() |
|
758 |
// --------------------------------------------------------------------------- |
|
759 |
TBool CStartupAppUi::StartupQueriesEnabled() |
|
760 |
{ |
|
761 |
TRACES("CStartupAppUi::StartupQueriesEnabled()"); |
|
762 |
||
763 |
TInt value( EStartupQueriesEnabled ); |
|
764 |
CRepository* repository(NULL); |
|
765 |
||
766 |
TRAPD( err, repository = CRepository::NewL( KCRUidStartupConf ) ); |
|
767 |
if ( err == KErrNone ) |
|
768 |
{ |
|
769 |
err = repository->Get( KStartupQueries, value ); |
|
770 |
} |
|
771 |
delete repository; |
|
772 |
||
773 |
TRACES1("CStartupAppUi::StartupQueriesEnabled(): returns %d", value); |
|
774 |
return value; |
|
775 |
} |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
776 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
777 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
778 |
// CStartupAppUi::PredictiveTimeEnabled() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
779 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
780 |
TBool CStartupAppUi::PredictiveTimeEnabled() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
781 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
782 |
TRACES("CStartupAppUi::PredictiveTimeEnabled()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
783 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
784 |
TInt value( EPredictiveTimeEnabled ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
785 |
CRepository* repository(NULL); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
786 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
787 |
TRAPD( err, repository = CRepository::NewL( KCRUidStartupConf ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
788 |
if ( err == KErrNone ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
789 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
790 |
err = repository->Get( KPredictiveTimeAndCountrySelection, value ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
791 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
792 |
delete repository; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
793 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
794 |
TRACES1("CStartupAppUi::PredictiveTimeEnabled(): returns %d", value); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
795 |
return value; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
796 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
797 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
798 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
799 |
// CStartupAppUi::DoStartupFirstBootAndRTCCheckL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
800 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
801 |
void CStartupAppUi::DoStartupFirstBootAndRTCCheckL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
802 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
803 |
TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
804 |
|
63 | 805 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
806 |
RProperty::Set( KPSUidStartup, KStartupCleanBoot, iCleanBoot ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
807 |
RProperty::Set( KPSUidStartup, KPSSplashShutdown, ESplashShutdown ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
808 |
|
63 | 809 |
delete iUserWelcomeNote; |
810 |
iUserWelcomeNote = NULL; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
811 |
iMainView->DrawDeferred(); |
63 | 812 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
813 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
814 |
// When Predictive Time and Country Selection is enabled, no queries are |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
815 |
// shown to user during first boot. Instead, Clock application gets the |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
816 |
// time and location from the network and marks the first boot as done. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
817 |
if( !PredictiveTimeEnabled() ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
818 |
{ |
63 | 819 |
if( iFirstBoot && !HiddenReset() && StartupQueriesEnabled() ) |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
820 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
821 |
TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): First boot. Show city, time and date queries."); |
63 | 822 |
|
823 |
||
824 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
825 |
iWelcomeAnimation->UpdateDrawInfo( EStartupDICityTimeDateQueries ); |
|
826 |
iWelcomeAnimation->DrawNow(); |
|
827 |
||
828 |
if (iOperatorAnimation) |
|
829 |
{ |
|
830 |
RemoveFromStack( iOperatorAnimation ); |
|
831 |
delete iOperatorAnimation; |
|
832 |
iOperatorAnimation = NULL; |
|
833 |
} |
|
834 |
if (iUserWelcomeNote) |
|
835 |
{ |
|
836 |
RemoveFromStack( iUserWelcomeNote ); |
|
837 |
delete iUserWelcomeNote; |
|
838 |
iUserWelcomeNote = NULL; |
|
839 |
} |
|
840 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
841 |
||
842 |
ShowStartupQueriesL(); |
|
843 |
TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): Mark first boot"); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
844 |
MarkFirstBoot(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
845 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
846 |
} |
63 | 847 |
else if( !RTCStatus() && !HiddenReset() && StartupQueriesEnabled()) |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
848 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
849 |
TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): No first boot but RTCStatus is corrupted. Ask time and date"); |
63 | 850 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
851 |
iWelcomeAnimation->UpdateDrawInfo( EStartupDICityTimeDateQueries ); |
|
852 |
if (iUserWelcomeNote) |
|
853 |
{ |
|
854 |
RemoveFromStack( iUserWelcomeNote ); |
|
855 |
delete iUserWelcomeNote; |
|
856 |
iUserWelcomeNote = NULL; |
|
857 |
} |
|
858 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
859 |
||
860 |
ShowStartupQueriesL(); // Not first boot, so skips Country/City query |
|
861 |
} |
|
862 |
if( iFirstBoot && !StartupQueriesEnabled() ) |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
863 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
864 |
TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): First boot ongoing and queries are disabled."); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
865 |
MarkFirstBoot(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
866 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
867 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
868 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
869 |
TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): Setting KPSStartupAppState = EStartupAppStateFinished"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
870 |
TInt err = RProperty::Set( KPSUidStartupApp, KPSStartupAppState, EStartupAppStateFinished ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
871 |
if( KErrNone != err ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
872 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
873 |
TRACES1("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): KPSStartupAppState set err %d" |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
874 |
, err); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
875 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
876 |
|
63 | 877 |
DoNextStartupPhaseL( EStartupWaitingCUIStartupReady ); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
878 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
879 |
|
63 | 880 |
// --------------------------------------------------------------------------- |
881 |
// CStartupAppUi::ShowStartupQueriesL() |
|
882 |
// --------------------------------------------------------------------------- |
|
883 |
void CStartupAppUi::ShowStartupQueriesL() |
|
884 |
{ |
|
885 |
TRACES("CStartupAppUi::ShowStartupQueriesL()"); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
886 |
|
63 | 887 |
TBool citysaved(EFalse); |
888 |
TBool timesaved(EFalse); |
|
889 |
TBool datesaved(EFalse); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
890 |
|
63 | 891 |
// Get default time ( to be used only in date query ) |
892 |
GetDefaultTimeAndDate( iTime ); |
|
893 |
||
894 |
// Show Country, Date and Time queries ( with possibility to go back ). |
|
895 |
// Country query is shown only in the first boot. |
|
896 |
||
897 |
while (!timesaved) |
|
898 |
{ |
|
899 |
while (!datesaved) |
|
900 |
{ |
|
901 |
while (!citysaved && iFirstBoot) |
|
902 |
{ |
|
903 |
// 1. Select time zone |
|
904 |
ShowCountryAndCityListsL(); |
|
905 |
citysaved = ETrue; |
|
906 |
TRACES1("CStartupAppUi::ShowStartupQueriesL(): citysaved = %d", citysaved ); |
|
907 |
} |
|
908 |
// 2. Set date |
|
909 |
datesaved = ShowDateQueryL(); |
|
910 |
TRACES1("CStartupAppUi::ShowStartupQueriesL(): datesaved = %d", datesaved ); |
|
911 |
if (!datesaved) |
|
912 |
{ |
|
913 |
citysaved = EFalse; |
|
914 |
} |
|
915 |
} |
|
916 |
// 3. Set time |
|
917 |
timesaved = ShowTimeQueryL(); |
|
918 |
TRACES1("CStartupAppUi::ShowStartupQueriesL(): timesaved = %d", timesaved ); |
|
919 |
if (!timesaved) |
|
920 |
{ |
|
921 |
datesaved = EFalse; |
|
922 |
} |
|
923 |
} |
|
924 |
||
925 |
// All the queries completed. |
|
926 |
||
927 |
TRACES("CStartupAppUi::ShowStartupQueriesL() - END"); |
|
928 |
} |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
929 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
930 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
931 |
// CStartupAppUi::DoStartupEndPart() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
932 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
933 |
void CStartupAppUi::DoStartupEndPart() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
934 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
935 |
TRACES("CStartupAppUi::DoStartupEndPart()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
936 |
TRACES("CStartupAppUi::DoStartupEndPart(): STARTUP OK"); |
63 | 937 |
|
938 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
939 |
RProperty::Set( KPSUidStartup, KStartupCleanBoot, iCleanBoot ); |
|
940 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
941 |
||
942 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
943 |
TBool fTUDone = ETrue; |
|
944 |
TRAP_IGNORE(IsFTUAvailableL(fTUDone)); |
|
58
0818dd463d41
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
945 |
|
63 | 946 |
if(fTUDone) |
947 |
{ |
|
948 |
UpdateStartupUiPhase( EStartupUiPhaseAllDone ); |
|
949 |
} |
|
82
4610cd70c542
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
70
diff
changeset
|
950 |
else |
58
0818dd463d41
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
951 |
{ |
63 | 952 |
UpdateStartupUiPhase(EStartupUiPhaseAllDone+1); |
58
0818dd463d41
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
953 |
} |
0818dd463d41
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
954 |
|
63 | 955 |
//UpdateStartupUiPhase( EStartupUiPhaseAllDone ); |
956 |
||
957 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
958 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
959 |
TRACES("CStartupAppUi::DoStartupEndPart(): Exit application."); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
960 |
iExitTimer->Start( 100000, 100000, TCallBack( DoExitApplication, this ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
961 |
TRACES("CStartupAppUi::DoStartupEndPart(): DoExitApplication-timer called."); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
962 |
TRACES("CStartupAppUi::DoStartupEndPart(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
963 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
964 |
|
63 | 965 |
void CStartupAppUi::IsFTUAvailableL(TBool& aFTUAvailable) |
966 |
{ |
|
967 |
//From Startupwelcomecrkeys.h |
|
968 |
CRepository* repo = CRepository::NewLC(KCRUidWelcome6); |
|
969 |
repo->Get(KPhoneActicationCompleted, aFTUAvailable); |
|
970 |
CleanupStack::PopAndDestroy(repo); |
|
971 |
} |
|
972 |
||
973 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
974 |
// --------------------------------------------------------------------------- |
|
975 |
// CStartupAppUi::ContinueStartupAfterToneL() |
|
976 |
// --------------------------------------------------------------------------- |
|
977 |
void CStartupAppUi::ContinueStartupAfterToneL(TToneType aToneType) |
|
978 |
{ |
|
979 |
TRACES("CStartupAppUi::ContinueStartupAfterToneL()"); |
|
980 |
||
981 |
if (aToneType == EStartupTone) |
|
982 |
{ |
|
983 |
TRACES("CStartupAppUi::ContinueStartupAfterToneL(): Tone type EStartupTone"); |
|
984 |
DoNextStartupPhaseL( EStartupWaitingCUIOperatorAnim ); |
|
985 |
} |
|
986 |
else if (aToneType == EStartupOpTone) |
|
987 |
{ |
|
988 |
TRACES("CStartupAppUi::ContinueStartupAfterToneL(): Tone type EStartupOpTone"); |
|
989 |
DoNextStartupPhaseL( EStartupShowingUserWelcomeNote ); |
|
990 |
} |
|
991 |
else |
|
992 |
{ |
|
993 |
TRACES("CStartupAppUi::ContinueStartupAfterToneL(): Tone interrupted"); |
|
994 |
DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); |
|
995 |
} |
|
996 |
TRACES("CStartupAppUi::ContinueStartupAfterToneL(): End"); |
|
997 |
} |
|
998 |
||
999 |
// --------------------------------------------------------------------------- |
|
1000 |
// CStartupAppUi::BringToForeground() |
|
1001 |
// --------------------------------------------------------------------------- |
|
1002 |
void CStartupAppUi::BringToForeground() |
|
1003 |
{ |
|
1004 |
TRACES("CStartupAppUi::BringToForeground()"); |
|
1005 |
if ((iInternalState != EStartupWaitingTouchScreenCalib) || |
|
1006 |
(iTouchScreenCalibrationDone)) |
|
1007 |
{ |
|
1008 |
TRACES("CStartupAppUi::BringToForeground(): Bring to foreground"); |
|
1009 |
TApaTask self(iCoeEnv->WsSession()); |
|
1010 |
self.SetWgId(iCoeEnv->RootWin().Identifier()); |
|
1011 |
self.BringToForeground(); |
|
1012 |
} |
|
1013 |
TRACES("CStartupAppUi::BringToForeground(): End"); |
|
1014 |
} |
|
1015 |
||
1016 |
// --------------------------------------------------------------------------- |
|
1017 |
// CStartupAppUi::SendToBackground() |
|
1018 |
// --------------------------------------------------------------------------- |
|
1019 |
void CStartupAppUi::SendToBackground() |
|
1020 |
{ |
|
1021 |
TRACES("CStartupAppUi::SendToBackground()"); |
|
1022 |
TApaTask self(iCoeEnv->WsSession()); |
|
1023 |
self.SetWgId(iCoeEnv->RootWin().Identifier()); |
|
1024 |
self.SendToBackground(); |
|
1025 |
TRACES("CStartupAppUi::SendToBackground(): End"); |
|
1026 |
} |
|
1027 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1028 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1029 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1030 |
// CStartupAppUi::StopTimingL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1031 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1032 |
void CStartupAppUi::StopTimingL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1033 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1034 |
TRACES("CStartupAppUi::StopTimingL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1035 |
if( !iStartupFirstBootAndRTCCheckAlreadyCalled ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1036 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1037 |
if (iInternalState == EStartupShowingUserWelcomeNote) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1038 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1039 |
//telling that timer has expired in appui so that |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1040 |
//key pressed are not handled any more... |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1041 |
TRACES("CStartupAppUi::StopTimingL(): Stopping UWN"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1042 |
iStartupFirstBootAndRTCCheckAlreadyCalled = ETrue; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1043 |
iNoteTimer->Cancel(); |
63 | 1044 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1045 |
UpdateStartupUiPhase( EStartupUiPhaseUserWelcomeDone ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1046 |
DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); |
63 | 1047 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
1048 |
iUserWelcomeNote->CancelNoteCancelTimer(); |
|
1049 |
iWelcomeAnimation->UpdateDrawInfo( EStartupDIWelcomeNoteEnd ); |
|
1050 |
iWelcomeAnimation->DrawNow(); |
|
1051 |
iUserWelcomeNote->SetUserWelcomeNoteShowing(EFalse); |
|
1052 |
TRACES("CStartupAppUi::StopTimingL(): UWN stopped"); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1053 |
|
63 | 1054 |
if (iStartupTone->Playing()) |
1055 |
{ |
|
1056 |
TRACES("CStartupAppUi::StopTimingL(): Startup tone playing. Cannot continue to next phase"); |
|
1057 |
iStartupTone->StartupWaiting(ETrue); |
|
1058 |
} |
|
1059 |
else |
|
1060 |
{ |
|
1061 |
DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); |
|
1062 |
} |
|
1063 |
} |
|
1064 |
else if (iInternalState == EStartupShowingOperatorAnimation) // EStartupShowingOperatorAnimation |
|
1065 |
{ |
|
1066 |
TRACES("CStartupAppUi::StopTimingL(): Stopping animation"); |
|
1067 |
iAnimTimer->Cancel(); |
|
1068 |
iWelcomeAnimation->CancelAnimCancelTimer(); |
|
1069 |
iOperatorAnimation->UpdateDrawInfo( EStartupDIOperatorAnimEnd ); |
|
1070 |
iOperatorAnimation->SetAnimationShowing(EFalse); |
|
1071 |
TRACES("CStartupAppUi::StopTimingL(): operator animation showing stopped"); |
|
1072 |
if ( iOperatorAnimation->IsAnimationCancelled()) |
|
1073 |
{ |
|
1074 |
TRACES("CStartupAppUi::StopTimingL(): Animation is cancelled by user and therefore UWN is not shown"); |
|
1075 |
StopOperatorTone(); |
|
1076 |
iStartupFirstBootAndRTCCheckAlreadyCalled = ETrue; |
|
1077 |
DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); |
|
1078 |
} |
|
1079 |
else |
|
1080 |
{ |
|
1081 |
// If tone is still playing wait until it completes. |
|
1082 |
if (iOpStartupTone->Playing()) |
|
1083 |
{ |
|
1084 |
TRACES("CStartupAppUi::StopTimingL(): Operator startup tone is still playing. Wait until it completes."); |
|
1085 |
iOpStartupTone->StartupWaiting(ETrue); |
|
1086 |
} |
|
1087 |
else |
|
1088 |
{ |
|
1089 |
TRACES("CStartupAppUi::StopTimingL(): Lets display UWN"); |
|
1090 |
DoNextStartupPhaseL( EStartupShowingUserWelcomeNote ); |
|
1091 |
} |
|
1092 |
} |
|
1093 |
TRACES("CStartupAppUi::StopTimingL(): Operator Animation stopped"); |
|
1094 |
} |
|
1095 |
else // EStartupShowingWelcomeAnimation |
|
1096 |
{ |
|
1097 |
TRACES("CStartupAppUi::StopTimingL(): Stopping animation"); |
|
1098 |
iAnimTimer->Cancel(); |
|
1099 |
iWelcomeAnimation->CancelAnimCancelTimer(); |
|
1100 |
iWelcomeAnimation->UpdateDrawInfo( EStartupDIWelcomeAnimEnd ); |
|
1101 |
iWelcomeAnimation->SetAnimationShowing(EFalse); |
|
1102 |
TRACES("CStartupAppUi::StopTimingL(): Welcome animation showing stopped"); |
|
1103 |
||
1104 |
if ( iWelcomeAnimation->IsAnimationCancelled()) |
|
1105 |
{ |
|
1106 |
TRACES("CStartupAppUi::StopTimingL(): Animation is cancelled by user and therefore operator animation and UWN is not shown"); |
|
1107 |
StopStartupTone(); |
|
1108 |
iStartupFirstBootAndRTCCheckAlreadyCalled = ETrue; |
|
1109 |
DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); |
|
1110 |
} |
|
1111 |
else |
|
1112 |
{ |
|
1113 |
if (iStartupTone->Playing()) |
|
1114 |
{ |
|
1115 |
// If tone is still playing wait until it completes. |
|
1116 |
iStartupTone->StartupWaiting(ETrue); |
|
1117 |
} |
|
1118 |
else |
|
1119 |
{ |
|
1120 |
DoNextStartupPhaseL( EStartupWaitingCUIOperatorAnim ); |
|
1121 |
} |
|
1122 |
} |
|
1123 |
TRACES("CStartupAppUi::StopTimingL(): Animation stopped"); |
|
1124 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1125 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1126 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1127 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1128 |
TRACES("CStartupAppUi::StopTimingL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1129 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1130 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1131 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1132 |
// CStartupAppUi::ExitApplication() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1133 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1134 |
void CStartupAppUi::ExitApplication() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1135 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1136 |
TRACES("CStartupAppUi::ExitApplication()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1137 |
iExitTimer->Cancel(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1138 |
Exit(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1139 |
TRACES("CStartupAppUi::ExitApplication(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1140 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1141 |
|
63 | 1142 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
1143 |
// --------------------------------------------------------------------------- |
|
1144 |
// CStartupAppUi::ShowWelcomeAnimationL() |
|
1145 |
// --------------------------------------------------------------------------- |
|
1146 |
void CStartupAppUi::ShowWelcomeAnimationL() |
|
1147 |
{ |
|
1148 |
TRACES("CStartupAppUi::ShowWelcomeAnimationL()"); |
|
1149 |
__ASSERT_DEBUG( iWelcomeAnimation , PANIC( EStartupPanicClassMemberVariableIsNull ) ); |
|
1150 |
TInt showtime = iWelcomeAnimation->ShowingTime(); |
|
1151 |
iAnimation = ETrue; |
|
1152 |
TRACES("CStartupAppUi::ShowWelcomeAnimationL(): Animation timer started"); |
|
1153 |
iAnimTimer->Start( |
|
1154 |
showtime*KOneMilliSecondInMicroSeconds, |
|
1155 |
showtime*KOneMilliSecondInMicroSeconds, |
|
1156 |
TCallBack( DoStopTimingL, this ) ); |
|
1157 |
iWelcomeAnimation->StartL(); |
|
1158 |
TRACES("CStartupAppUi::ShowWelcomeAnimationL(): End"); |
|
1159 |
} |
|
1160 |
||
1161 |
// --------------------------------------------------------------------------- |
|
1162 |
// CStartupAppUi::ShowOperatorAnimationL() |
|
1163 |
// --------------------------------------------------------------------------- |
|
1164 |
void CStartupAppUi::ShowOperatorAnimationL() |
|
1165 |
{ |
|
1166 |
TRACES("CStartupAppUi::ShowOperatorAnimationL()"); |
|
1167 |
__ASSERT_DEBUG( iOperatorAnimation , PANIC( EStartupPanicClassMemberVariableIsNull ) ); |
|
1168 |
TInt showtime = iOperatorAnimation->ShowingTime(); |
|
1169 |
iAnimation = ETrue; |
|
1170 |
TRACES("CStartupAppUi::ShowWelcomeAnimationL(): Operator Animation timer started"); |
|
1171 |
iAnimTimer->Start( |
|
1172 |
showtime*KOneMilliSecondInMicroSeconds, |
|
1173 |
showtime*KOneMilliSecondInMicroSeconds, |
|
1174 |
TCallBack( DoStopTimingL, this ) ); |
|
1175 |
iOperatorAnimation->StartL(); |
|
1176 |
TRACES("CStartupAppUi::ShowOperatorAnimationL(): End"); |
|
1177 |
} |
|
1178 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1179 |
||
1180 |
// --------------------------------------------------------------------------- |
|
1181 |
// CStartupAppUi::ShowUserWelcomeNoteL() |
|
1182 |
// --------------------------------------------------------------------------- |
|
1183 |
void CStartupAppUi::ShowUserWelcomeNoteL() |
|
1184 |
{ |
|
1185 |
TRACES("CStartupAppUi::ShowUserWelcomeNoteL()"); |
|
1186 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1187 |
iUserWelcomeNote = CStartupUserWelcomeNote::NewL( *this, ClientRect(), *iMainView ); |
|
1188 |
TStartupNoteTypeInformation type = iUserWelcomeNote->NoteTypeInformation(); |
|
1189 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1190 |
__ASSERT_DEBUG( iUserWelcomeNote , PANIC( EStartupPanicClassMemberVariableIsNull ) ); |
|
1191 |
TStartupNoteTypeInformation type; |
|
1192 |
type = iUserWelcomeNote->NoteTypeInformation(); |
|
1193 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1194 |
if( type == EStartupImage ) |
|
1195 |
{ |
|
1196 |
// UserWelcomeNote type is EStartupImage |
|
1197 |
// This type of note is shown fixed (KUserWelcomeNoteShowPeriodTime) time |
|
1198 |
TRACES("CStartupAppUi::ShowUserWelcomeNoteL(): UWNTimer started (graphic)"); |
|
1199 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1200 |
iAnimation = EFalse; |
|
1201 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1202 |
iNoteTimer->Start( |
|
1203 |
KUserWelcomeNoteShowPeriodTime, |
|
1204 |
KUserWelcomeNoteShowPeriodTime, |
|
1205 |
TCallBack( DoStopTimingL, this ) ); |
|
1206 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1207 |
iUserWelcomeNote->StartL(); |
|
1208 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1209 |
} |
|
1210 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1211 |
else if ( type == EStartupText ) |
|
1212 |
{ |
|
1213 |
TRACES("CStartupAppUi::ShowUserWelcomeNoteL(): Text UWN"); |
|
1214 |
||
1215 |
iUserWelcomeNote->StartL(); |
|
1216 |
||
1217 |
UpdateStartupUiPhase( EStartupUiPhaseUserWelcomeDone ); |
|
1218 |
||
1219 |
DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); |
|
1220 |
} |
|
1221 |
else |
|
1222 |
{ |
|
1223 |
TRACES("CStartupAppUi::ShowUserWelcomeNoteL(): No UWN"); |
|
1224 |
||
1225 |
DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); |
|
1226 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1227 |
else |
|
1228 |
{ |
|
1229 |
//if User Welcome Note type is ETextWelcomeNote nothing to do here, |
|
1230 |
//because it is implemented with Avkon globalnote |
|
1231 |
//or if type is EDefaultWelcomeNote no User Welcome Note is shown. |
|
1232 |
TRACES("CStartupAppUi::ShowUserWelcomeNoteL(): No UWN to show or UWN is text"); |
|
1233 |
} |
|
1234 |
//invoke welcome note container to show note |
|
1235 |
iUserWelcomeNote->StartL(); |
|
1236 |
||
1237 |
if( type == EStartupText || type == EStartupNoNote) |
|
1238 |
{ |
|
1239 |
//this is called already here because timer not activated in text uwn case |
|
1240 |
//and so DoStopTimingL() is never called and should be called here. |
|
1241 |
StopTimingL(); |
|
1242 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1243 |
} |
|
1244 |
||
1245 |
TRACES("CStartupAppUi::ShowUserWelcomeNoteL(): End"); |
|
1246 |
} |
|
1247 |
||
1248 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1249 |
// --------------------------------------------------------------------------- |
|
1250 |
// CStartupAppUi::WaitingTouchScreenCalibL() |
|
1251 |
// --------------------------------------------------------------------------- |
|
1252 |
void CStartupAppUi::WaitingTouchScreenCalibL() |
|
1253 |
{ |
|
1254 |
TRACES("CStartupAppUi::WaitingTouchScreenCalibL()"); |
|
1255 |
#ifdef RD_SCALABLE_UI_V2 |
|
1256 |
||
1257 |
if( iFirstBoot && iTouchScreenCalibSupport ) |
|
1258 |
{ |
|
1259 |
if (iTouchScreenCalibrationDone) |
|
1260 |
{ |
|
1261 |
TRACES("CStartupAppUi::WaitingTouchScreenCalibL(): Calibration already done. Continue boot up"); |
|
1262 |
DoNextStartupPhaseL( EStartupOfflineModeQuery ); |
|
1263 |
} |
|
1264 |
else |
|
1265 |
{ |
|
1266 |
SendToBackground(); |
|
1267 |
||
1268 |
iWelcomeAnimation->UpdateDrawInfo( EStartupDITouchScreenCalib ); |
|
1269 |
iWelcomeAnimation->DrawNow(); |
|
1270 |
TRACES("CStartupAppUi::WaitingTouchScreenCalibL(): Startup sequence halted until Touch Screen Calibration is done"); |
|
1271 |
} |
|
1272 |
} |
|
1273 |
else |
|
1274 |
{ |
|
1275 |
TRACES("CStartupAppUi::WaitingTouchScreenCalibL(): Not first boot or calibration not supported. Continue boot up"); |
|
1276 |
DoNextStartupPhaseL( EStartupOfflineModeQuery ); |
|
1277 |
} |
|
1278 |
||
1279 |
#else // !RD_SCALABLE_UI_V2 |
|
1280 |
TRACES("CStartupAppUi::WaitingTouchScreenCalibL(): Calibration not supported. Continue boot up"); |
|
1281 |
DoNextStartupPhaseL( EStartupOfflineModeQuery ); |
|
1282 |
||
1283 |
#endif // RD_SCALABLE_UI_V2 |
|
1284 |
TRACES("CStartupAppUi::WaitingTouchScreenCalibL(): End"); |
|
1285 |
} |
|
1286 |
||
1287 |
#ifdef RD_SCALABLE_UI_V2 |
|
1288 |
// --------------------------------------------------------------------------- |
|
1289 |
// CStartupAppUi::TouchScreenCalibrationDoneL() |
|
1290 |
// --------------------------------------------------------------------------- |
|
1291 |
void CStartupAppUi::TouchScreenCalibrationDoneL() |
|
1292 |
{ |
|
1293 |
TRACES("CStartupAppUi::TouchScreenCalibrationDoneL()"); |
|
1294 |
if (iInternalState == EStartupWaitingTouchScreenCalib) |
|
1295 |
{ |
|
1296 |
iTouchScreenCalibrationDone = ETrue; |
|
1297 |
BringToForeground(); |
|
1298 |
DoNextStartupPhaseL( EStartupOfflineModeQuery ); |
|
1299 |
} |
|
1300 |
else |
|
1301 |
{ |
|
1302 |
iTouchScreenCalibrationDone = ETrue; |
|
1303 |
} |
|
1304 |
TRACES("CStartupAppUi::TouchScreenCalibrationDoneL(): End"); |
|
1305 |
} |
|
1306 |
#endif // RD_SCALABLE_UI_V2 |
|
1307 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1308 |
||
1309 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1310 |
// --------------------------------------------------------------------------- |
|
1311 |
// CStartupAppUi::CoverUIWelcomeAnimationSyncOKL() |
|
1312 |
// --------------------------------------------------------------------------- |
|
1313 |
void CStartupAppUi::CoverUIWelcomeAnimationSyncOKL() |
|
1314 |
{ |
|
1315 |
TRACES("CStartupAppUi::CoverUIWelcomeAnimationSyncOKL()"); |
|
1316 |
DoNextStartupPhaseL( EStartupWaitingStartupTone ); |
|
1317 |
TRACES("CStartupAppUi::CoverUIWelcomeAnimationSyncOKL(): End"); |
|
1318 |
} |
|
1319 |
||
1320 |
// --------------------------------------------------------------------------- |
|
1321 |
// CStartupAppUi::WaitingCoverUIWelcomeAnimationSyncL() |
|
1322 |
// --------------------------------------------------------------------------- |
|
1323 |
void CStartupAppUi::WaitingCoverUIWelcomeAnimationSyncL() |
|
1324 |
{ |
|
1325 |
TRACES("CStartupAppUi::WaitingCoverUIWelcomeAnimationSyncL()"); |
|
1326 |
if (iCoverUISupported) |
|
1327 |
{ |
|
1328 |
iStartupMediatorObserver->IssueCommand(SecondaryDisplay::ECmdStartupSync, |
|
1329 |
SecondaryDisplay::EStartWelcomeAnimation); |
|
1330 |
} |
|
1331 |
else |
|
1332 |
{ |
|
1333 |
DoNextStartupPhaseL( EStartupWaitingStartupTone ); |
|
1334 |
} |
|
1335 |
TRACES("CStartupAppUi::WaitingCoverUIWelcomeAnimationSyncL(): End"); |
|
1336 |
} |
|
1337 |
||
1338 |
// --------------------------------------------------------------------------- |
|
1339 |
// CStartupAppUi::CoverUIOperatorAnimationSyncOKL() |
|
1340 |
// --------------------------------------------------------------------------- |
|
1341 |
void CStartupAppUi::CoverUIOperatorAnimationSyncOKL() |
|
1342 |
{ |
|
1343 |
TRACES("CStartupAppUi::CoverUIOperatorAnimationSyncOKL()"); |
|
1344 |
DoNextStartupPhaseL( EStartupShowingOperatorAnimation ); |
|
1345 |
TRACES("CStartupAppUi::CoverUIOperatorAnimationSyncOKL(): End"); |
|
1346 |
} |
|
1347 |
||
1348 |
// --------------------------------------------------------------------------- |
|
1349 |
// CStartupAppUi::WaitingCoverUIOperatorAnimationSyncL() |
|
1350 |
// --------------------------------------------------------------------------- |
|
1351 |
void CStartupAppUi::WaitingCoverUIOperatorAnimationSyncL() |
|
1352 |
{ |
|
1353 |
TRACES("CStartupAppUi::WaitingCoverUIOperatorAnimationSyncL()"); |
|
1354 |
if (iCoverUISupported) |
|
1355 |
{ |
|
1356 |
if (iOperatorAnimation->ShowingTime()) |
|
1357 |
{ |
|
1358 |
iStartupMediatorObserver->IssueCommand(SecondaryDisplay::ECmdStartupSync, |
|
1359 |
SecondaryDisplay::EStartOperatorAnimation ); |
|
1360 |
} |
|
1361 |
else |
|
1362 |
{ |
|
1363 |
DoNextStartupPhaseL( EStartupShowingOperatorAnimation ); |
|
1364 |
} |
|
1365 |
} |
|
1366 |
else |
|
1367 |
{ |
|
1368 |
DoNextStartupPhaseL( EStartupShowingOperatorAnimation ); |
|
1369 |
} |
|
1370 |
TRACES("CStartupAppUi::WaitingCoverUIOperatorAnimationSyncL(): End"); |
|
1371 |
} |
|
1372 |
||
1373 |
// --------------------------------------------------------------------------- |
|
1374 |
// CStartupAppUi::WaitingStartupToneL() |
|
1375 |
// --------------------------------------------------------------------------- |
|
1376 |
void CStartupAppUi::WaitingStartupToneL() |
|
1377 |
{ |
|
1378 |
if( iStartupTone->ToneFound() && !iStartupTone->AudioReady() ) |
|
1379 |
{ |
|
1380 |
TRACES("CStartupAppUi::WaitingStartupToneL(): Startup tone found but not ready. Waiting tone to init"); |
|
1381 |
iToneInitTimer = CPeriodic::NewL( EPriorityNormal ); |
|
1382 |
iToneInitTimer->Start( KOneMilliSecondInMicroSeconds, |
|
1383 |
KOneMilliSecondInMicroSeconds, |
|
1384 |
TCallBack( ToneInitTimerTimeoutL, this ) ); |
|
1385 |
} |
|
1386 |
else |
|
1387 |
{ |
|
1388 |
TRACES("CStartupAppUi::WaitingStartupToneL(): Audio ready"); |
|
1389 |
DoNextStartupPhaseL( EStartupShowingWelcomeAnimation ); |
|
1390 |
} |
|
1391 |
} |
|
1392 |
||
1393 |
// --------------------------------------------------------------------------- |
|
1394 |
// CStartupAppUi::ToneInitTimerTimeoutL() |
|
1395 |
// --------------------------------------------------------------------------- |
|
1396 |
TInt CStartupAppUi::ToneInitTimerTimeoutL(TAny* aObject) |
|
1397 |
{ |
|
1398 |
STATIC_CAST( CStartupAppUi*, aObject )->StartupToneWaitStatusL(); // cast, and call non-static function |
|
1399 |
return KErrNone; |
|
1400 |
} |
|
1401 |
||
1402 |
// --------------------------------------------------------------------------- |
|
1403 |
// CStartupAppUi::StartupToneWaitStatusL() |
|
1404 |
// --------------------------------------------------------------------------- |
|
1405 |
void CStartupAppUi::StartupToneWaitStatusL() |
|
1406 |
{ |
|
1407 |
iToneInitWaitTime++; |
|
1408 |
TRACES1("CStartupAppUi::StartupToneWaitStatusL(): Total tone init wait time = %d ms", iToneInitWaitTime ); |
|
1409 |
TBool audioReady = iStartupTone->AudioReady(); |
|
1410 |
if ( audioReady || (iToneInitWaitTime>=KMaxToneInitWait) ) |
|
1411 |
{ |
|
1412 |
iToneInitTimer->Cancel(); |
|
1413 |
delete iToneInitTimer; |
|
1414 |
iToneInitTimer = NULL; |
|
1415 |
||
1416 |
TRACES1("CStartupAppUi::StartupToneWaitStatusL(): AudioReady: %d, proceed", audioReady ); |
|
1417 |
DoNextStartupPhaseL( EStartupShowingWelcomeAnimation ); |
|
1418 |
} |
|
1419 |
} |
|
1420 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1421 |
||
1422 |
// --------------------------------------------------------------------------- |
|
1423 |
// CStartupAppUi::CoverUIStartupReadySyncOKL() |
|
1424 |
// --------------------------------------------------------------------------- |
|
1425 |
void CStartupAppUi::CoverUIStartupReadySyncOKL() |
|
1426 |
{ |
|
1427 |
TRACES("CStartupAppUi::CoverUIStartupReadySyncOKL()"); |
|
1428 |
DoNextStartupPhaseL( EStartupStartupOK ); |
|
1429 |
TRACES("CStartupAppUi::CoverUIStartupReadySyncOKL(): End"); |
|
1430 |
} |
|
1431 |
||
1432 |
// --------------------------------------------------------------------------- |
|
1433 |
// CStartupAppUi::WaitingCoverUIStartupReadySyncL() |
|
1434 |
// --------------------------------------------------------------------------- |
|
1435 |
void CStartupAppUi::WaitingCoverUIStartupReadySyncL() |
|
1436 |
{ |
|
1437 |
TRACES("CStartupAppUi::WaitingCoverUIStartupReadySyncL()"); |
|
1438 |
if (iCoverUISupported) |
|
1439 |
{ |
|
1440 |
iStartupMediatorObserver->IssueCommand(SecondaryDisplay::ECmdStartupSync, |
|
1441 |
SecondaryDisplay::EStartStartupReady); |
|
1442 |
} |
|
1443 |
else |
|
1444 |
{ |
|
1445 |
DoNextStartupPhaseL( EStartupStartupOK ); |
|
1446 |
} |
|
1447 |
TRACES("CStartupAppUi::WaitingCoverUIStartupReadySyncL(): End"); |
|
1448 |
} |
|
1449 |
||
1450 |
// --------------------------------------------------------------------------- |
|
1451 |
// CStartupAppUi::RaiseCoverUIEvent() |
|
1452 |
// --------------------------------------------------------------------------- |
|
1453 |
void CStartupAppUi::RaiseCoverUIEvent( TUid aCategory, |
|
1454 |
TInt aEventId, |
|
1455 |
const TDesC8& aData ) |
|
1456 |
{ |
|
1457 |
TRACES("CStartupAppUi::RaiseCoverUIEvent()"); |
|
1458 |
if (iCoverUISupported) |
|
1459 |
{ |
|
1460 |
iStartupMediatorObserver->RaiseEvent( aCategory, |
|
1461 |
aEventId, |
|
1462 |
aData ); |
|
1463 |
} |
|
1464 |
TRACES("CStartupAppUi::RaiseCoverUIEvent(): End"); |
|
1465 |
} |
|
1466 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1467 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1468 |
// CStartupAppUi::SetCriticalBlockEndedL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1469 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1470 |
void CStartupAppUi::SetCriticalBlockEndedL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1471 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1472 |
TRACES("CStartupAppUi::SetCriticalBlockEndedL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1473 |
iCriticalBlockEnded = ETrue; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1474 |
if ( iInternalState == EStartupWaitingCriticalBlock ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1475 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1476 |
WaitingCriticalBlockEndingL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1477 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1478 |
TRACES("CStartupAppUi::SetCriticalBlockEndedL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1479 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1480 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1481 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1482 |
// CStartupAppUi::WaitingCriticalBlockEndingL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1483 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1484 |
void CStartupAppUi::WaitingCriticalBlockEndingL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1485 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1486 |
TRACES("CStartupAppUi::WaitingCriticalBlockEndingL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1487 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1488 |
if( iCriticalBlockEnded ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1489 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1490 |
TRACES("CStartupAppUi::WaitingCriticalBlockEndingL(): CriticalBlock has ended. Continue."); |
63 | 1491 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1492 |
DoNextStartupPhaseL( EStartupOfflineModeQuery ); |
63 | 1493 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
1494 |
DoNextStartupPhaseL( EStartupWaitingTouchScreenCalib ); |
|
1495 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1496 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1497 |
TRACES("CStartupAppUi::WaitingCriticalBlockEndingL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1498 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1499 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1500 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1501 |
// CStartupAppUi::SetWaitingStartupAnimationStartL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1502 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1503 |
void CStartupAppUi::SetWaitingStartupAnimationStartL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1504 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1505 |
TRACES("CStartupAppUi::SetWaitingStartupAnimationStartL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1506 |
iStartupWaitingShowStartupAnimation = ETrue; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1507 |
if ( iInternalState == EStartupWaitingShowStartupAnimation ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1508 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1509 |
WaitingStartupAnimationStartL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1510 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1511 |
TRACES("CStartupAppUi::SetWaitingStartupAnimationStartL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1512 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1513 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1514 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1515 |
// CStartupAppUi::WaitingStartupAnimationStartL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1516 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1517 |
void CStartupAppUi::WaitingStartupAnimationStartL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1518 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1519 |
TRACES("CStartupAppUi::WaitingStartupAnimationStartL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1520 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1521 |
if( iStartupWaitingShowStartupAnimation ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1522 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1523 |
TRACES("CStartupAppUi::WaitingStartupAnimationStartL(): Continue."); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1524 |
DoNextStartupPhaseL( EStartupShowingWelcomeAnimation ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1525 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1526 |
TRACES("CStartupAppUi::WaitingStartupAnimationStartL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1527 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1528 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1529 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1530 |
// CStartupAppUi::SetEmergencyCallsOnlyL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1531 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1532 |
void CStartupAppUi::SetEmergencyCallsOnlyL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1533 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1534 |
TRACES("CStartupAppUi::SetEmergencyCallsOnlyL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1535 |
iCriticalBlockEnded = ETrue; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1536 |
if ( iInternalState == EStartupWaitingCriticalBlock ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1537 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1538 |
TRACES("CStartupAppUi::SetEmergencyCallsOnlyL(): Entered emergency calls only state."); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1539 |
|
63 | 1540 |
DoNextStartupPhaseL( EStartupWaitingCUIStartupReady ); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1541 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1542 |
TRACES("CStartupAppUi::SetEmergencyCallsOnlyL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1543 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1544 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1545 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1546 |
// CStartupAppUi::SwStateFatalStartupErrorL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1547 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1548 |
void CStartupAppUi::SwStateFatalStartupErrorL(TBool aPropertyChanged) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1549 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1550 |
TRACES("CStartupAppUi::SwStateFatalStartupErrorL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1551 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1552 |
iSwStateFatalStartupError = ETrue; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1553 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1554 |
if ( aPropertyChanged ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1555 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1556 |
TRACES("CStartupAppUi::SwStateFatalStartupErrorL(): property changed"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1557 |
DoNextStartupPhaseL( EStartupSystemFatalError ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1558 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1559 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1560 |
TRACES("CStartupAppUi::SwStateFatalStartupErrorL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1561 |
} |
63 | 1562 |
|
1563 |
||
1564 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1565 |
// --------------------------------------------------------------------------- |
|
1566 |
// CStartupAppUi::GetOfflineModeQueryShown() |
|
1567 |
// --------------------------------------------------------------------------- |
|
1568 |
TBool CStartupAppUi::GetOfflineModeQueryShown() |
|
1569 |
{ |
|
1570 |
TRACES1("CStartupAppUi::GetOfflineModeQueryShown(): iOfflineModeQueryShown == %d ", iOfflineModeQueryShown ); |
|
1571 |
return iOfflineModeQueryShown; |
|
1572 |
} |
|
1573 |
||
1574 |
// --------------------------------------------------------------------------- |
|
1575 |
// CStartupAppUi::SetOfflineModeQueryShown() |
|
1576 |
// --------------------------------------------------------------------------- |
|
1577 |
void CStartupAppUi::SetOfflineModeQueryShown(TBool aValue) |
|
1578 |
{ |
|
1579 |
TRACES1("CStartupAppUi::SetOfflineModeQueryShown(): iOfflineModeQueryShown == %d ", iOfflineModeQueryShown ); |
|
1580 |
iOfflineModeQueryShown = aValue; |
|
1581 |
} |
|
1582 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1583 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1584 |
// ---------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1585 |
// CStartAppUi::DosInOfflineModeL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1586 |
// ---------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1587 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1588 |
TBool CStartupAppUi::DosInOfflineModeL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1589 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1590 |
TRACES("CStartupAppUi::DosInOfflineModeL()"); |
82
4610cd70c542
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
70
diff
changeset
|
1591 |
if ( iOfflineModeSupported ) |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1592 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1593 |
TRACES1("CStartupAppUi::DosInOfflineModeL(): iOfflineModeSupported == %d", iOfflineModeSupported ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1594 |
return UiInOfflineMode(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1595 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1596 |
else |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1597 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1598 |
TRACES("CStartupAppUi::DosInOfflineModeL(): return EFalse"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1599 |
return EFalse; // device that does not support Off-line Mode can never be in Off-line Mode. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1600 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1601 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1602 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1603 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1604 |
// ---------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1605 |
// CStartupAppUi::UiInOfflineMode() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1606 |
// ---------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1607 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1608 |
TBool CStartupAppUi::UiInOfflineMode() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1609 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1610 |
TRACES("CStartupAppUi::UiInOfflineMode()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1611 |
if ( iOfflineModeSupported ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1612 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1613 |
TInt networkConnectionAllowed ( 0 ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1614 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1615 |
TRACES("CStartupAppUi::UiInOfflineMode(): Check Offline status from CenRep"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1616 |
CRepository* repository(NULL); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1617 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1618 |
TRAPD( err, repository = CRepository::NewL( KCRUidCoreApplicationUIs ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1619 |
if ( err == KErrNone ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1620 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1621 |
err = repository->Get( KCoreAppUIsNetworkConnectionAllowed, networkConnectionAllowed ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1622 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1623 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1624 |
#ifdef _DEBUG |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1625 |
if ( err != KErrNone ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1626 |
TRACES1("CStartupAppUi::UiInOfflineMode(): Central repository access failed, error code %d.", err ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1627 |
else |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1628 |
TRACES1("CStartupAppUi::UiInOfflineMode(): Offline: network connection allowed: %d", networkConnectionAllowed); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1629 |
#endif |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1630 |
delete repository; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1631 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1632 |
TRACES1("CStartupAppUi::UiInOfflineMode(): returns %d", !( TBool ) networkConnectionAllowed); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1633 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1634 |
return ( ! ( TBool ) networkConnectionAllowed ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1635 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1636 |
else |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1637 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1638 |
TRACES("CStartupAppUi::UiInOfflineMode(): DosInOfflineMode returns EFalse"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1639 |
return EFalse; // device that does not support Off-line Mode can never be in Off-line Mode. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1640 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1641 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1642 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1643 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1644 |
// CStartupAppUi::ShowOfflineModeQueryL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1645 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1646 |
void CStartupAppUi::ShowOfflineModeQueryL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1647 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1648 |
TRACES("CStartupAppUi::ShowOfflineModeQueryL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1649 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1650 |
TInt status( EStartupSimInitWait ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1651 |
RProperty::Get(KPSUidStartup, KPSSimStatus, status); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1652 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1653 |
TInt reply ( 0 ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1654 |
if (status == ESimUsable || status == ESimReadable || status == ESimNotReady || !iSimSupported) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1655 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1656 |
TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Show offline mode query if needed"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1657 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1658 |
if ( HiddenReset() && DosInOfflineModeL() && !SimStatusChangedReset() ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1659 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1660 |
TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Offline Mode: Hidden reset and DOS in offline mode -> Boot to Offline"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1661 |
reply = 1; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1662 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1663 |
else if ( iOfflineModeSupported && DosInOfflineModeL() ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1664 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1665 |
TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Offline mode query needed"); |
63 | 1666 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1667 |
RProperty::Set( KPSUidStartup, KPSSplashShutdown, ESplashShutdown ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1668 |
iAnimation->BringToForeground(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1669 |
iMainView->DrawDeferred(); |
63 | 1670 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
1671 |
iWelcomeAnimation->UpdateDrawInfo( EStartupDIQueriesOn ); |
|
1672 |
iWelcomeAnimation->DrawNow(); |
|
1673 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1674 |
iOfflineModeQueryShown = ETrue; |
63 | 1675 |
CAknQueryDialog* dlg = new (ELeave) CAknQueryDialog( CAknQueryDialog::ENoTone ); |
1676 |
TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Publish dialog for Secondary UI"); |
|
1677 |
dlg->PublishDialogL(SecondaryDisplay::ECmdShowOfflineQuery, |
|
1678 |
SecondaryDisplay::KCatStartup); |
|
1679 |
if ( dlg->ExecuteLD( R_STARTUP_OFFLINE_MODE_QUERY ) ) |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1680 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1681 |
TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Offline Mode query: YES -> Boot to Offline"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1682 |
reply = 1; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1683 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1684 |
else |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1685 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1686 |
TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Offline Mode query: NO -> Boot to Online"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1687 |
reply = 0; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1688 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1689 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1690 |
else |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1691 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1692 |
TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Offline Mode: DOS in online mode -> Boot to Online"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1693 |
reply = 0; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1694 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1695 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1696 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1697 |
#ifdef _DEBUG |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1698 |
else |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1699 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1700 |
TRACES("CStartupAppUi::ShowOfflineModeQueryL(): SIM card removed. No offline mode query."); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1701 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1702 |
#endif |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1703 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1704 |
TRACES1("CStartupAppUi::ShowOfflineModeQueryL(): BootIntoOffline=%d.", reply); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1705 |
TInt err = RProperty::Set( KPSUidStartup, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1706 |
KStartupBootIntoOffline, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1707 |
reply ? EBootIntoOfflineMode : EBootIntoOnlineMode ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1708 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1709 |
if( KErrNone != err ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1710 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1711 |
TRACES1("CStartupAppUi::ShowOfflineModeQueryL(): KStartupBootIntoOffline set err %d", err); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1712 |
} |
63 | 1713 |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1714 |
TRACES("CStartupAppUi::ShowOfflineModeQueryL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1715 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1716 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1717 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1718 |
// CStartupAppUi::CancelAnimation(...) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1719 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1720 |
void CStartupAppUi::CancelAnimation() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1721 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1722 |
TRACES("CStartupAppUi::CancelAnimation()"); |
63 | 1723 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1724 |
iAnimation->Cancel(); |
63 | 1725 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
1726 |
iWelcomeAnimation->CancelAnimation(); |
|
1727 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1728 |
TRACES("CStartupAppUi::CancelAnimation(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1729 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1730 |
|
63 | 1731 |
// --------------------------------------------------------------------------- |
1732 |
// CStartupAppUi::ShowCountryAndCityListsL() |
|
1733 |
// --------------------------------------------------------------------------- |
|
1734 |
void CStartupAppUi::ShowCountryAndCityListsL() |
|
1735 |
{ |
|
1736 |
TRACES("CStartupAppUi::ShowCountryAndCityListsL()"); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1737 |
|
63 | 1738 |
TInt cityselected( EFalse ); |
1739 |
while ( !cityselected ) |
|
1740 |
{ |
|
1741 |
TRACES1("CStartupAppUi::ShowCountryAndCityListsL(): City item to focus: %d", iCounryListIndex); |
|
1742 |
TInt cityGroupId = ShowCountryListL(); |
|
1743 |
TRACES1("CStartupAppUi::ShowCountryAndCityListsL(): City group id: %d", cityGroupId); |
|
1744 |
if ( cityGroupId != KErrCancel ) |
|
1745 |
{ |
|
1746 |
cityselected = ShowCityListL(cityGroupId); |
|
1747 |
} |
|
1748 |
else |
|
1749 |
{ |
|
1750 |
cityselected = ETrue; |
|
1751 |
} |
|
1752 |
} |
|
1753 |
TRACES("CStartupAppUi::ShowCountryAndCityListsL(): End"); |
|
1754 |
} |
|
1755 |
||
1756 |
// --------------------------------------------------------------------------- |
|
1757 |
// CStartupAppUi::ShowCountryListL() |
|
1758 |
// --------------------------------------------------------------------------- |
|
1759 |
TInt CStartupAppUi::ShowCountryListL() |
|
1760 |
{ |
|
1761 |
TRACES("CStartupAppUi::ShowCountryListL()"); |
|
1762 |
||
1763 |
CAknSinglePopupMenuStyleListBox* listBox = |
|
1764 |
new(ELeave) CAknSinglePopupMenuStyleListBox; |
|
1765 |
CleanupStack::PushL(listBox); |
|
1766 |
||
1767 |
CStartupPopupList* popupList = CStartupPopupList::NewL(listBox, R_AVKON_SOFTKEYS_SELECT_CANCEL__SELECT, |
|
1768 |
AknPopupLayouts::EMenuGraphicHeadingWindow ); |
|
1769 |
||
1770 |
CleanupStack::PushL(popupList); |
|
1771 |
||
1772 |
listBox->ConstructL(popupList, EAknListBoxSelectionList | EAknListBoxScrollBarSizeExcluded); |
|
1773 |
listBox->CreateScrollBarFrameL( ETrue ); |
|
1774 |
listBox->ScrollBarFrame()->SetScrollBarVisibilityL( CEikScrollBarFrame::EOff, |
|
1775 |
CEikScrollBarFrame::EAuto ); |
|
1776 |
||
1777 |
listBox->ItemDrawer()->FormattedCellData()->EnableMarqueeL( ETrue ); |
|
1778 |
||
1779 |
CDesCArrayFlat *items = new(ELeave)CDesCArrayFlat(1); |
|
1780 |
||
1781 |
CleanupStack::PushL(items); |
|
1782 |
||
1783 |
CTzLocalizer* tzLocalizer = CTzLocalizer::NewL(); |
|
1784 |
CleanupStack::PushL(tzLocalizer); |
|
1785 |
||
1786 |
CTzLocalizedCityGroupArray* countryList; |
|
1787 |
countryList = tzLocalizer->GetAllCityGroupsL(CTzLocalizer::ETzAlphaNameAscending); |
|
1788 |
CleanupStack::PushL(countryList); |
|
1789 |
||
1790 |
TRACES("CStartupAppUi::ShowCountryListL(): Create list of cities"); |
|
1791 |
for(TInt i = 0; i <countryList->Count(); i++) |
|
1792 |
{ |
|
1793 |
CTzLocalizedCityGroup& cityGroup = countryList->At(i); |
|
1794 |
||
1795 |
// Check if the country name is blank. |
|
1796 |
// If it is blank, ignore it. Empty name shouldn't be shown in the list. |
|
1797 |
if(cityGroup.Name().Compare(KEmpty) != 0) |
|
1798 |
{ |
|
1799 |
TBuf<KMaxCountryLength> countryitem; |
|
1800 |
countryitem.Insert(0,cityGroup.Name()); |
|
1801 |
TRACES1("CStartupAppUi::ShowCountryListL(): Create country to list: %S", &countryitem); |
|
1802 |
items->AppendL(countryitem); |
|
1803 |
} |
|
1804 |
} |
|
1805 |
||
1806 |
CleanupStack::PopAndDestroy( countryList ); |
|
1807 |
||
1808 |
CTextListBoxModel* model=listBox->Model(); |
|
1809 |
model->SetItemTextArray(items); |
|
1810 |
model->SetOwnershipType(ELbmOwnsItemArray); |
|
1811 |
||
1812 |
TRACES("CStartupAppUi::ShowCountryListL(): Set title"); |
|
1813 |
// Set title |
|
1814 |
HBufC* title = StringLoader::LoadLC( R_QTN_SU_SELECT_COUNTRY ); |
|
1815 |
popupList->SetTitleL(title->Des()); |
|
1816 |
CleanupStack::PopAndDestroy( title ); |
|
1817 |
||
1818 |
popupList->EnableAdaptiveFind(); |
|
1819 |
listBox->SetCurrentItemIndex(iCounryListIndex); |
|
1820 |
||
1821 |
TInt cityGroupId; |
|
1822 |
||
1823 |
if (iCoverUISupported) |
|
1824 |
{ |
|
1825 |
TRACES("CStartupAppUi::ShowCountryListL(): Publish country list for Secondary UI"); |
|
1826 |
TPckgBuf<TInt> data( SecondaryDisplay::EShowCountryQuery ); |
|
1827 |
iStartupMediatorObserver->RaiseEvent( SecondaryDisplay::KCatStartup, |
|
1828 |
SecondaryDisplay::EMsgStartupEvent, |
|
1829 |
data ); |
|
1830 |
} |
|
1831 |
||
1832 |
TRACES("CStartupAppUi::ShowCountryListL(): Show the list"); |
|
1833 |
if (popupList->ExecuteLD()) |
|
1834 |
{ |
|
1835 |
iCounryListIndex = listBox->CurrentItemIndex(); |
|
1836 |
TRACES1("CStartupAppUi::ShowCountryListL(): CurrentItemIndex: %d", iCounryListIndex); |
|
1837 |
TPtrC countryName = listBox->Model()->ItemText(iCounryListIndex); |
|
1838 |
||
1839 |
CTzLocalizedCityGroup* tzLocalizedCityGroup = tzLocalizer->FindCityGroupByNameL(countryName); |
|
1840 |
CleanupStack::PushL(tzLocalizedCityGroup); |
|
1841 |
||
1842 |
cityGroupId = tzLocalizedCityGroup->Id(); |
|
1843 |
CleanupStack::PopAndDestroy( tzLocalizedCityGroup ); |
|
1844 |
||
1845 |
TRACES1("CStartupAppUi::ShowCountryListL(): Selected country %S", &countryName); |
|
1846 |
} |
|
1847 |
else |
|
1848 |
{ |
|
1849 |
TRACES("CStartupAppUi::ShowCountryListL(): Country list cancelled"); |
|
1850 |
cityGroupId = KErrCancel; |
|
1851 |
} |
|
1852 |
||
1853 |
CleanupStack::PopAndDestroy( tzLocalizer ); |
|
1854 |
CleanupStack::Pop( items ); |
|
1855 |
CleanupStack::Pop( popupList ); |
|
1856 |
CleanupStack::PopAndDestroy( listBox ); |
|
1857 |
||
1858 |
TRACES1("CStartupAppUi::ShowCountryListL(): End. Return city group id: %d", cityGroupId); |
|
1859 |
return cityGroupId; |
|
1860 |
} |
|
1861 |
||
1862 |
// --------------------------------------------------------------------------- |
|
1863 |
// CStartupAppUi::ShowCityListL() |
|
1864 |
// --------------------------------------------------------------------------- |
|
1865 |
TBool CStartupAppUi::ShowCityListL(TUint8 cityGroupId) |
|
1866 |
{ |
|
1867 |
TRACES("CStartupAppUi::ShowCityListL()"); |
|
1868 |
||
1869 |
TBool retval( ETrue ); |
|
1870 |
||
1871 |
CTzLocalizer* tzLocalizer = CTzLocalizer::NewL(); |
|
1872 |
CleanupStack::PushL(tzLocalizer); |
|
1873 |
||
1874 |
CTzLocalizedCityArray* cityList; |
|
1875 |
||
1876 |
TRACES1("CStartupAppUi::ShowCityListL(): Create list of cities in group %d", cityGroupId); |
|
1877 |
||
1878 |
cityList = tzLocalizer->GetCitiesInGroupL(cityGroupId,//cityGroup.Id(), |
|
1879 |
CTzLocalizer::ETzAlphaNameAscending ); |
|
1880 |
CleanupStack::PushL(cityList); |
|
1881 |
||
1882 |
if ( cityList->Count() == 1 ) |
|
1883 |
{ |
|
1884 |
TRACES("CStartupAppUi::ShowCityListL(): Only one city in citygroup. This can be selected automatically."); |
|
1885 |
||
1886 |
CTzLocalizedCity& city = cityList->At(0); |
|
1887 |
||
1888 |
CTzLocalizedCity* tzLocalizedCity = tzLocalizer->FindCityByNameL(city.Name()); |
|
1889 |
CleanupStack::PushL(tzLocalizedCity); |
|
1890 |
||
1891 |
TInt timeZoneId = tzLocalizedCity->TimeZoneId(); |
|
1892 |
||
1893 |
tzLocalizer->SetTimeZoneL(timeZoneId); |
|
1894 |
tzLocalizer->SetFrequentlyUsedZoneL(*tzLocalizedCity, CTzLocalizedTimeZone::ECurrentZone); |
|
1895 |
||
1896 |
CleanupStack::PopAndDestroy( tzLocalizedCity ); |
|
1897 |
CleanupStack::PopAndDestroy( cityList ); |
|
1898 |
CleanupStack::PopAndDestroy( tzLocalizer ); |
|
1899 |
||
1900 |
TRACES1("CStartupAppUi::ShowCityListL(): End, returns %d", retval); |
|
1901 |
return retval; |
|
1902 |
} |
|
1903 |
||
1904 |
CAknSinglePopupMenuStyleListBox* listBox = |
|
1905 |
new(ELeave) CAknSinglePopupMenuStyleListBox; |
|
1906 |
CleanupStack::PushL(listBox); |
|
1907 |
||
1908 |
CStartupPopupList* popupList = CStartupPopupList::NewL(listBox, R_AVKON_SOFTKEYS_SELECT_CANCEL__SELECT, |
|
1909 |
AknPopupLayouts::EMenuGraphicHeadingWindow ); |
|
1910 |
||
1911 |
CleanupStack::PushL(popupList); |
|
1912 |
||
1913 |
CDesCArrayFlat *items = new(ELeave)CDesCArrayFlat(1); |
|
1914 |
||
1915 |
CleanupStack::PushL(items); |
|
1916 |
||
1917 |
for(TInt j = 0; j < cityList->Count(); j++) |
|
1918 |
{ |
|
1919 |
CTzLocalizedCity& city = cityList->At(j); |
|
1920 |
||
1921 |
// Check if the city name is blank. |
|
1922 |
// If it is blank, ignore it. Empty name shouldn't be shown in the list. |
|
1923 |
if(city.Name().Compare(KEmpty) != 0) |
|
1924 |
{ |
|
1925 |
TBuf<KMaxCityLength> homecityitem; |
|
1926 |
homecityitem.Insert(0,city.Name()); |
|
1927 |
TRACES1("CStartupAppUi::ShowCityListL(): Create to list: %S", &homecityitem); |
|
1928 |
items->AppendL(homecityitem); |
|
1929 |
} |
|
1930 |
} |
|
1931 |
||
1932 |
listBox->ConstructL(popupList, EAknListBoxSelectionList | EAknListBoxScrollBarSizeExcluded); |
|
1933 |
listBox->CreateScrollBarFrameL( ETrue ); |
|
1934 |
listBox->ScrollBarFrame()->SetScrollBarVisibilityL( CEikScrollBarFrame::EOff, |
|
1935 |
CEikScrollBarFrame::EAuto ); |
|
1936 |
||
1937 |
listBox->ItemDrawer()->FormattedCellData()->EnableMarqueeL( ETrue ); |
|
1938 |
||
1939 |
CTextListBoxModel* model=listBox->Model(); |
|
1940 |
model->SetItemTextArray(items); |
|
1941 |
model->SetOwnershipType(ELbmOwnsItemArray); |
|
1942 |
||
1943 |
TRACES("CStartupAppUi::ShowCityListL(): Set title"); |
|
1944 |
// Set title |
|
1945 |
HBufC* title = StringLoader::LoadLC( R_QTN_SU_SELECT_CITY ); |
|
1946 |
popupList->SetTitleL(title->Des()); |
|
1947 |
CleanupStack::PopAndDestroy(title); |
|
1948 |
||
1949 |
popupList->EnableAdaptiveFind(); |
|
1950 |
||
1951 |
if (iCoverUISupported) |
|
1952 |
{ |
|
1953 |
TRACES("CStartupAppUi::ShowCountryListL(): Publish city list for Secondary UI"); |
|
1954 |
TPckgBuf<TInt> data( SecondaryDisplay::EShowCityQuery ); |
|
1955 |
iStartupMediatorObserver->RaiseEvent( SecondaryDisplay::KCatStartup, |
|
1956 |
SecondaryDisplay::EMsgStartupEvent, |
|
1957 |
data ); |
|
1958 |
} |
|
1959 |
||
1960 |
TRACES("CStartupAppUi::ShowCityListL(): Show the list"); |
|
1961 |
if (popupList->ExecuteLD()) |
|
1962 |
{ |
|
1963 |
TInt index(listBox->CurrentItemIndex()); |
|
1964 |
TRACES1("CStartupAppUi::ShowCityListL(): CurrentItemIndex: %d", index); |
|
1965 |
TPtrC cityName = listBox->Model()->ItemText(index); |
|
1966 |
||
1967 |
CTzLocalizedCity* tzLocalizedCity = tzLocalizer->FindCityByNameL(cityName); |
|
1968 |
CleanupStack::PushL(tzLocalizedCity); |
|
1969 |
||
1970 |
TInt timeZoneId = tzLocalizedCity->TimeZoneId(); |
|
1971 |
||
1972 |
tzLocalizer->SetTimeZoneL(timeZoneId); |
|
1973 |
tzLocalizer->SetFrequentlyUsedZoneL(*tzLocalizedCity, CTzLocalizedTimeZone::ECurrentZone); |
|
1974 |
||
1975 |
CleanupStack::PopAndDestroy(tzLocalizedCity); |
|
1976 |
||
1977 |
TRACES1("CStartupAppUi::ShowCityListL(): Selected city %S", &cityName); |
|
1978 |
} |
|
1979 |
else |
|
1980 |
{ |
|
1981 |
TRACES("CStartupAppUi::ShowCityListL(): City list cancelled"); |
|
1982 |
retval = EFalse; |
|
1983 |
} |
|
1984 |
||
1985 |
CleanupStack::Pop(items); |
|
1986 |
CleanupStack::Pop(popupList); |
|
1987 |
CleanupStack::PopAndDestroy(listBox); |
|
1988 |
CleanupStack::PopAndDestroy(cityList); |
|
1989 |
CleanupStack::PopAndDestroy(tzLocalizer); |
|
1990 |
||
1991 |
||
1992 |
TRACES("CStartupAppUi::ShowCityListL(): Home city selected"); |
|
1993 |
TRACES1("CStartupAppUi::ShowCityListL(): End, return %d", retval); |
|
1994 |
return retval; |
|
1995 |
} |
|
1996 |
||
1997 |
// --------------------------------------------------------------------------- |
|
1998 |
// CStartupAppUi::ShowTimeQueryL() |
|
1999 |
// --------------------------------------------------------------------------- |
|
2000 |
TBool CStartupAppUi::ShowTimeQueryL() |
|
2001 |
{ |
|
2002 |
TRACES("CStartupAppUi::ShowTimeQueryL()"); |
|
2003 |
||
2004 |
TTime time; |
|
2005 |
GetDefaultTimeAndDate( time ); |
|
2006 |
||
2007 |
CStartupQueryDialog* dlg = new (ELeave) CStartupQueryDialog(time, CAknQueryDialog::ENoTone); |
|
2008 |
TRACES("CStartupAppUi::ShowTimeQueryL(): Publish dialog for Secondary UI"); |
|
2009 |
dlg->PublishDialogL(SecondaryDisplay::ECmdShowTimeQuery, SecondaryDisplay::KCatStartup); |
|
2010 |
if( dlg->ExecuteLD( R_STARTUP_TIME_SETTING_QUERY ) ) |
|
2011 |
{ |
|
2012 |
TTime current; |
|
2013 |
current.HomeTime(); |
|
2014 |
TDateTime cTime = current.DateTime(); |
|
2015 |
TDateTime atime = time.DateTime(); |
|
2016 |
atime.SetYear(cTime.Year()); |
|
2017 |
atime.SetMonth(cTime.Month()); |
|
2018 |
atime.SetDay(cTime.Day()); |
|
2019 |
time = atime; |
|
2020 |
||
2021 |
RTz rtz; |
|
2022 |
User::LeaveIfError(rtz.Connect()); |
|
2023 |
User::LeaveIfError(rtz.SetHomeTime(time)); |
|
2024 |
rtz.Close(); |
|
2025 |
||
2026 |
TRACES("CStartupAppUi::ShowTimeQueryL(): End, return ETrue"); |
|
2027 |
return ETrue; |
|
2028 |
} |
|
2029 |
else |
|
2030 |
{ |
|
2031 |
//in case of poweroff key was pressed and shutdown is occuring |
|
2032 |
TRACES("CStartupAppUi::ShowTimeQueryL(): End, return EFalse"); |
|
2033 |
return EFalse; |
|
2034 |
} |
|
2035 |
} |
|
2036 |
||
2037 |
// --------------------------------------------------------------------------- |
|
2038 |
// CStartupAppUi::ShowDateQueryL() |
|
2039 |
// --------------------------------------------------------------------------- |
|
2040 |
TBool CStartupAppUi::ShowDateQueryL() |
|
2041 |
{ |
|
2042 |
TRACES("CStartupAppUi::ShowDateQueryL()"); |
|
2043 |
||
2044 |
||
2045 |
CStartupQueryDialog* dlg = new (ELeave) CStartupQueryDialog(iTime, CAknQueryDialog::ENoTone); |
|
2046 |
TRACES("CStartupAppUi::ShowDateQueryL(): Publish dialog for Secondary UI"); |
|
2047 |
dlg->PublishDialogL(SecondaryDisplay::ECmdShowDateQuery, SecondaryDisplay::KCatStartup); |
|
2048 |
||
2049 |
TInt query( R_STARTUP_DATE_SETTING_QUERY_NOBACK ); |
|
2050 |
if ( iFirstBoot ) |
|
2051 |
{ |
|
2052 |
query = R_STARTUP_DATE_SETTING_QUERY; |
|
2053 |
} |
|
2054 |
||
2055 |
if( dlg->ExecuteLD( query ) ) |
|
2056 |
{ |
|
2057 |
TTime current; |
|
2058 |
current.HomeTime(); |
|
2059 |
TDateTime cTime = current.DateTime(); |
|
2060 |
TDateTime atime = iTime.DateTime(); |
|
2061 |
atime.SetHour(cTime.Hour()); |
|
2062 |
atime.SetMinute(cTime.Minute()); |
|
2063 |
atime.SetSecond(cTime.Second()); |
|
2064 |
atime.SetMicroSecond(cTime.MicroSecond()); |
|
2065 |
iTime = atime; |
|
2066 |
||
2067 |
RTz rtz; |
|
2068 |
User::LeaveIfError(rtz.Connect()); |
|
2069 |
User::LeaveIfError(rtz.SetHomeTime(iTime)); |
|
2070 |
rtz.Close(); |
|
2071 |
||
2072 |
TRACES("CStartupAppUi::ShowDateQueryL(): End, return ETrue"); |
|
2073 |
return ETrue; |
|
2074 |
} |
|
2075 |
else |
|
2076 |
{ |
|
2077 |
// Back key pressed. ( Or poweroff key was pressed and shutdown is occuring ) |
|
2078 |
TRACES("CStartupAppUi::ShowDateQueryL(): End, return EFalse"); |
|
2079 |
return EFalse; |
|
2080 |
} |
|
2081 |
} |
|
2082 |
||
2083 |
// --------------------------------------------------------------------------- |
|
2084 |
// CStartupAppUi::GetDefaultTimeAndDate() |
|
2085 |
// --------------------------------------------------------------------------- |
|
2086 |
void CStartupAppUi::GetDefaultTimeAndDate( TTime& aTime ) |
|
2087 |
{ |
|
2088 |
TRACES("CStartupAppUi::GetDefaultTimeAndDate(): Get Time and Date from CenRep"); |
|
2089 |
||
2090 |
CRepository* repository(NULL); |
|
2091 |
||
2092 |
TRAPD( err, repository = CRepository::NewL( KCRUidStartupConf ) ); |
|
2093 |
if ( !err ) |
|
2094 |
{ |
|
2095 |
TBuf<KTimeFormatLength> buf; |
|
2096 |
err = repository->Get( KStartupDefaultTime, buf ); |
|
2097 |
if( !err ) |
|
2098 |
{ |
|
2099 |
err = aTime.Set(buf); // returns error if cenrep time format not valid |
|
2100 |
} |
|
2101 |
} |
|
2102 |
||
2103 |
if ( err ) |
|
2104 |
{ |
|
2105 |
TRACES("CStartupAppUi::GetDefaultTimeAndDate(): Failed to get valid data from CenRep. Using default"); |
|
2106 |
aTime.Set(KDefaultDateTimeValue); |
|
2107 |
} |
|
2108 |
||
2109 |
delete repository; |
|
2110 |
TRACES("CStartupAppUi::GetDefaultTimeAndDate(): End"); |
|
2111 |
} |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2112 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2113 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2114 |
// CStartupAppUi::FirstBoot() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2115 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2116 |
TBool CStartupAppUi::FirstBoot() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2117 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2118 |
TRACES("CStartupAppUi::FirstBoot()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2119 |
TInt value( 0 ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2120 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2121 |
TRACES("CStartupAppUi::FirstBoot(): Read first boot info from Central Repository "); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2122 |
CRepository* repository(NULL); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2123 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2124 |
TRAPD( err, repository = CRepository::NewL( KCRUidStartup ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2125 |
if ( err == KErrNone ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2126 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2127 |
err = repository->Get( KStartupFirstBoot, value ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2128 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2129 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2130 |
delete repository; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2131 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2132 |
if (value) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2133 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2134 |
TRACES("CStartupAppUi::FirstBoot(): End, return EFalse"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2135 |
return EFalse; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2136 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2137 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2138 |
else |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2139 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2140 |
TRACES("CStartupAppUi::FirstBoot(): End, return ETrue"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2141 |
return ETrue; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2142 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2143 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2144 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2145 |
// CStartupAppUi::HiddenReset() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2146 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2147 |
TBool CStartupAppUi::HiddenReset() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2148 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2149 |
TRACES("CStartupAppUi::HiddenReset()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2150 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2151 |
TBool ret_val ( EFalse ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2152 |
if( !iFirstBoot ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2153 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2154 |
TInt startupReason( ENormalStartup ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2155 |
TInt err = RProperty::Get( KPSUidStartup, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2156 |
KPSStartupReason, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2157 |
startupReason ); // Use default if this fails |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2158 |
if( KErrNone != err ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2159 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2160 |
TRACES1("CStartupAppUi::HiddenReset(): ENormalStartup get err %d", err); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2161 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2162 |
ret_val = ( startupReason != ENormalStartup ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2163 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2164 |
TRACES1("CStartupAppUi::HiddenReset(): End, return %d ",ret_val ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2165 |
return ret_val; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2166 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2167 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2168 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2169 |
// CStartupAppUi::RTCStatus() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2170 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2171 |
TBool CStartupAppUi::RTCStatus() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2172 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2173 |
TRACES("CStartupAppUi::RTCStatus()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2174 |
TBool ret_val ( EFalse ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2175 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2176 |
RStarterSession startersession; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2177 |
if( startersession.Connect() == KErrNone ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2178 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2179 |
TRACES("CStartupAppUi::RTCStatus(): Connected to Starter "); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2180 |
ret_val = startersession.IsRTCTimeValid(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2181 |
startersession.Close(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2182 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2183 |
else |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2184 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2185 |
TRACES("CStartupAppUi::RTCStatus(): Unable to connect to Starter "); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2186 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2187 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2188 |
TRACES1("CStartupAppUi::RTCStatus(): End, return %d ",ret_val ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2189 |
return ret_val; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2190 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2191 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2192 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2193 |
// CStartupAppUi::MarkFirstBoot() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2194 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2195 |
void CStartupAppUi::MarkFirstBoot() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2196 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2197 |
TRACES("CStartupAppUi::MarkFirstBoot()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2198 |
TRACES("CStartupAppUi::MarkFirstBoot(): Write first boot info to Central Repository "); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2199 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2200 |
CRepository* repository(NULL); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2201 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2202 |
TRAPD( err, repository = CRepository::NewL( KCRUidStartup ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2203 |
if ( err == KErrNone ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2204 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2205 |
err = repository->Set( KStartupFirstBoot, 1 ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2206 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2207 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2208 |
delete repository; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2209 |
TRACES("CStartupAppUi::MarkFirstBoot(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2210 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2211 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2212 |
|
63 | 2213 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2214 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2215 |
// CStartupAppUi::AnimationFinished() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2216 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2217 |
void CStartupAppUi::AnimationFinished() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2218 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2219 |
TRACES1("CStartupAppUi::AnimationFinished(): iInternalState=%d", iInternalState ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2220 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2221 |
// first notify animation completion, it doesn't matter if it was canceled |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2222 |
if ( iAnimation->HasContent() ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2223 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2224 |
switch ( iInternalState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2225 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2226 |
case EStartupShowingWelcomeAnimation: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2227 |
UpdateStartupUiPhase( EStartupUiPhaseSystemWelcomeDone ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2228 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2229 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2230 |
case EStartupShowingOperatorAnimation: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2231 |
UpdateStartupUiPhase( EStartupUiPhaseOperatorWelcomeDone ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2232 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2233 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2234 |
default: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2235 |
TRACES("CStartupAppUi::AnimationFinished(): unknown state"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2236 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2237 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2238 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2239 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2240 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2241 |
TInt err = KErrNone; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2242 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2243 |
if ( iAnimation->WasCancelled() ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2244 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2245 |
TRACES("Animations cancelled"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2246 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2247 |
TRAP(err, DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck )); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2248 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2249 |
else if ( iInternalState == EStartupShowingWelcomeAnimation ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2250 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2251 |
TRAP(err, DoNextStartupPhaseL( EStartupShowingOperatorAnimation )); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2252 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2253 |
else if ( iInternalState == EStartupShowingOperatorAnimation ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2254 |
{ |
63 | 2255 |
TRAP(err, DoNextStartupPhaseL( EStartupShowingUserWelcomeNote )); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2256 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2257 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2258 |
if ( err != KErrNone ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2259 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2260 |
TRAP_IGNORE( DoNextStartupPhaseL(EStartupSystemFatalError) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2261 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2262 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2263 |
TRACES("CStartupAppUi::AnimationFinished(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2264 |
} |
63 | 2265 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
2266 |
// --------------------------------------------------------------------------- |
|
2267 |
// CStartupAppUi::StopStartupTone() |
|
2268 |
// --------------------------------------------------------------------------- |
|
2269 |
void CStartupAppUi::StopStartupTone() |
|
2270 |
{ |
|
2271 |
TRACES("CStartupAppUi::StopStartupTone()"); |
|
2272 |
if ((iStartupTone) && (iStartupTone->Playing())) |
|
2273 |
{ |
|
2274 |
iStartupTone->Stop(); |
|
2275 |
} |
|
2276 |
TRACES("CStartupAppUi::StopStartupTone(): End"); |
|
2277 |
} |
|
2278 |
||
2279 |
// --------------------------------------------------------------------------- |
|
2280 |
// CStartupAppUi::StopOperatorTone() |
|
2281 |
// --------------------------------------------------------------------------- |
|
2282 |
void CStartupAppUi::StopOperatorTone() |
|
2283 |
{ |
|
2284 |
TRACES("CStartupAppUi::StopOperatorTone()"); |
|
2285 |
if ((iOpStartupTone) && (iOpStartupTone->Playing())) |
|
2286 |
{ |
|
2287 |
iOpStartupTone->Stop(); |
|
2288 |
} |
|
2289 |
TRACES("CStartupAppUi::StopOperatorTone(): End"); |
|
2290 |
} |
|
2291 |
||
2292 |
// --------------------------------------------------------------------------- |
|
2293 |
// CStartupAppUi::StartupTonePlaying() |
|
2294 |
// --------------------------------------------------------------------------- |
|
2295 |
TBool CStartupAppUi::StartupTonePlaying() |
|
2296 |
{ |
|
2297 |
TRACES("CStartupAppUi::StartupTonePlaying()"); |
|
2298 |
return iStartupTone->Playing(); |
|
2299 |
} |
|
2300 |
||
2301 |
// --------------------------------------------------------------------------- |
|
2302 |
// CStartupAppUi::OperatorTonePlaying() |
|
2303 |
// --------------------------------------------------------------------------- |
|
2304 |
TBool CStartupAppUi::OperatorTonePlaying() |
|
2305 |
{ |
|
2306 |
TRACES("CStartupAppUi::OperatorTonePlaying()"); |
|
2307 |
return iOpStartupTone->Playing(); |
|
2308 |
} |
|
2309 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2310 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2311 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2312 |
// CStartupAppUi::SetCleanBoot() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2313 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2314 |
void CStartupAppUi::SetCleanBoot() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2315 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2316 |
TRACES("CStartupAppUi::SetCleanBoot()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2317 |
iCleanBoot = EStartupCleanBoot; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2318 |
TRACES("CStartupAppUi::SetCleanBoot(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2319 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2320 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2321 |
// ---------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2322 |
// CStartupAppUi::SimSupported() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2323 |
// ---------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2324 |
TBool CStartupAppUi::SimSupported() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2325 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2326 |
TRACES("CStartupAppUi::SimSupported()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2327 |
return iSimSupported; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2328 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2329 |
|
63 | 2330 |
// ---------------------------------------------------------------------------- |
2331 |
// CStartupAppUi::CoverUISupported() |
|
2332 |
// ---------------------------------------------------------------------------- |
|
2333 |
TBool CStartupAppUi::CoverUISupported() |
|
2334 |
{ |
|
2335 |
TRACES("CStartupAppUi::CoverUISupported()"); |
|
2336 |
return iCoverUISupported; |
|
2337 |
} |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2338 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2339 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2340 |
// CStartupAppUi::DoNextStartupPhaseL( TStartupInternalState toState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2341 |
// State# Possible next states |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2342 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2343 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2344 |
// 0 EStartupStartingUp 1, 18 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2345 |
// 1 EStartupWaitingCriticalBlock 5, 18 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2346 |
// 5 EStartupWaitingTouchScreenCalib |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2347 |
// 6 EStartupWaitingPhoneLightIdle 8, 18 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2348 |
// 8 EStartupOfflineModeQuery 9, 18 |
63 | 2349 |
// 9 EStartupWaitingCUIWelcomeAnim 10, 18 |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2350 |
// 10 EStartupWaitingStartupTone 11, 18 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2351 |
// 11 EStartupShowingWelcomeAnimation 12, 14, 18 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2352 |
// 12 EStartupWaitingCUIOperatorAnim 13, 18 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2353 |
// 13 EStartupShowingOperatorAnimation 14, 14, 18 |
63 | 2354 |
// 14 EStartupShowingUserWelcomeNote 15, 18 |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2355 |
// 15 EStartupFirstBootAndRTCCheck 16, 18 |
63 | 2356 |
// 16 EStartupWaitingCUIStartupReady 17, 18 |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2357 |
// 17 EStartupStartupOK - |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2358 |
// 18 EStartupSystemFatalError - |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2359 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2360 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2361 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2362 |
void CStartupAppUi::DoNextStartupPhaseL( TStartupInternalState toState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2363 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2364 |
TRACES("CStartupAppUi::DoNextStartupPhaseL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2365 |
TRACES2("CStartupAppUi::DoNextStartupPhaseL(): Change internal state from %d to %d", iInternalState, toState ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2366 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2367 |
switch( iInternalState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2368 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2369 |
case EStartupStartingUp: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2370 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2371 |
switch( toState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2372 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2373 |
case EStartupWaitingCriticalBlock: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2374 |
iInternalState = EStartupWaitingCriticalBlock; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2375 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingCriticalBlock"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2376 |
WaitingCriticalBlockEndingL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2377 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2378 |
case EStartupSystemFatalError: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2379 |
SystemFatalErrorL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2380 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2381 |
default: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2382 |
__ASSERT_DEBUG( EFalse, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2383 |
PANIC( EStartupInvalidInternalStateChange ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2384 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2385 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2386 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2387 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2388 |
case EStartupWaitingCriticalBlock: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2389 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2390 |
switch( toState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2391 |
{ |
63 | 2392 |
case EStartupWaitingCUIStartupReady: |
2393 |
iInternalState = EStartupWaitingCUIStartupReady; |
|
2394 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingCUIStartupReady"); |
|
2395 |
WaitingCoverUIStartupReadySyncL(); |
|
2396 |
break; |
|
2397 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
2398 |
case EStartupWaitingTouchScreenCalib: |
|
2399 |
iInternalState = EStartupWaitingTouchScreenCalib; |
|
2400 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingTouchScreenCalib"); |
|
2401 |
WaitingTouchScreenCalibL(); |
|
2402 |
break; |
|
2403 |
case EStartupSystemFatalError: |
|
2404 |
SystemFatalErrorL(); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2405 |
break; |
63 | 2406 |
default: |
2407 |
__ASSERT_DEBUG( |
|
2408 |
EFalse, |
|
2409 |
PANIC( EStartupInvalidInternalStateChange ) ); |
|
2410 |
break; |
|
2411 |
} |
|
2412 |
} |
|
2413 |
break; |
|
2414 |
case EStartupWaitingTouchScreenCalib: |
|
2415 |
{ |
|
2416 |
switch( toState ) |
|
2417 |
{ |
|
2418 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2419 |
case EStartupOfflineModeQuery: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2420 |
iInternalState = EStartupOfflineModeQuery; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2421 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupOfflineModeQuery"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2422 |
ShowOfflineModeQueryL(); |
63 | 2423 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2424 |
DoNextStartupPhaseL( EStartupWaitingShowStartupAnimation ); |
63 | 2425 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
2426 |
DoNextStartupPhaseL( EStartupWaitingCUIWelcomeAnim ); |
|
2427 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2428 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2429 |
case EStartupSystemFatalError: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2430 |
SystemFatalErrorL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2431 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2432 |
default: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2433 |
__ASSERT_DEBUG( |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2434 |
EFalse, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2435 |
PANIC( EStartupInvalidInternalStateChange ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2436 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2437 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2438 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2439 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2440 |
case EStartupOfflineModeQuery: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2441 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2442 |
switch( toState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2443 |
{ |
63 | 2444 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2445 |
case EStartupWaitingShowStartupAnimation: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2446 |
iInternalState = EStartupWaitingShowStartupAnimation; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2447 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingShowStartupAnimation"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2448 |
WaitingStartupAnimationStartL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2449 |
break; |
63 | 2450 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
2451 |
case EStartupWaitingCUIWelcomeAnim: |
|
2452 |
iInternalState = EStartupWaitingCUIWelcomeAnim; |
|
2453 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingCUIWelcomeAnim"); |
|
2454 |
WaitingCoverUIWelcomeAnimationSyncL(); |
|
2455 |
break; |
|
2456 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
2457 |
case EStartupSystemFatalError: |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2458 |
SystemFatalErrorL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2459 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2460 |
default: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2461 |
__ASSERT_DEBUG( |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2462 |
EFalse, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2463 |
PANIC( EStartupInvalidInternalStateChange ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2464 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2465 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2466 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2467 |
break; |
63 | 2468 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
2469 |
case EStartupWaitingCUIWelcomeAnim: |
|
2470 |
{ |
|
2471 |
switch( toState ) |
|
2472 |
{ |
|
2473 |
case EStartupWaitingStartupTone: |
|
2474 |
iInternalState = EStartupWaitingStartupTone; |
|
2475 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingStartupTone"); |
|
2476 |
WaitingStartupToneL(); |
|
2477 |
break; |
|
2478 |
case EStartupSystemFatalError: |
|
2479 |
SystemFatalErrorL(); |
|
2480 |
break; |
|
2481 |
default: |
|
2482 |
__ASSERT_DEBUG( EFalse, |
|
2483 |
PANIC( EStartupInvalidInternalStateChange ) ); |
|
2484 |
break; |
|
2485 |
} |
|
2486 |
} |
|
2487 |
break; |
|
2488 |
case EStartupWaitingStartupTone: |
|
2489 |
{ |
|
2490 |
switch( toState ) |
|
2491 |
{ |
|
2492 |
case EStartupShowingWelcomeAnimation: |
|
2493 |
iInternalState = EStartupShowingWelcomeAnimation; |
|
2494 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupShowingWelcomeAnimation"); |
|
2495 |
iWelcomeAnimation->UpdateDrawInfo( EStartupDIWelcomeAnimStart ); |
|
2496 |
iWelcomeAnimation->DrawNow(); |
|
2497 |
DoStartupShowWelcomeAnimationL(); |
|
2498 |
iWelcomeAnimation->UpdateDrawInfo( EStartupDIWelcomeAnimEnd ); |
|
2499 |
iWelcomeAnimation->DrawNow(); |
|
2500 |
break; |
|
2501 |
case EStartupSystemFatalError: |
|
2502 |
SystemFatalErrorL(); |
|
2503 |
break; |
|
2504 |
default: |
|
2505 |
__ASSERT_DEBUG( EFalse, |
|
2506 |
PANIC( EStartupInvalidInternalStateChange ) ); |
|
2507 |
break; |
|
2508 |
} |
|
2509 |
} |
|
2510 |
break; |
|
2511 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2512 |
case EStartupWaitingShowStartupAnimation: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2513 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2514 |
switch( toState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2515 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2516 |
case EStartupShowingWelcomeAnimation: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2517 |
iInternalState = EStartupShowingWelcomeAnimation; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2518 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupShowingWelcomeAnimation"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2519 |
DoStartupShowWelcomeAnimationL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2520 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2521 |
case EStartupSystemFatalError: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2522 |
SystemFatalErrorL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2523 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2524 |
default: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2525 |
__ASSERT_DEBUG( |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2526 |
EFalse, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2527 |
PANIC( EStartupInvalidInternalStateChange ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2528 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2529 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2530 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2531 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2532 |
case EStartupShowingWelcomeAnimation: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2533 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2534 |
switch( toState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2535 |
{ |
63 | 2536 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2537 |
case EStartupShowingOperatorAnimation: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2538 |
iInternalState = EStartupShowingOperatorAnimation; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2539 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState: EStartupShowingOperatorAnimation"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2540 |
DoStartupShowOperatorAnimationL(); |
63 | 2541 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
2542 |
case EStartupWaitingCUIOperatorAnim: |
|
2543 |
iOperatorAnimation = CStartupOperatorAnimation::NewL( this, ClientRect()); |
|
2544 |
AddToStackL( iOperatorAnimation); |
|
2545 |
iInternalState = EStartupWaitingCUIOperatorAnim; |
|
2546 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState: EStartupWaitingCUIOperatorAnim"); |
|
2547 |
WaitingCoverUIOperatorAnimationSyncL(); |
|
2548 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2549 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2550 |
case EStartupFirstBootAndRTCCheck: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2551 |
iInternalState = EStartupFirstBootAndRTCCheck; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2552 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupFirstBootAndRTCCheck"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2553 |
DoStartupFirstBootAndRTCCheckL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2554 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2555 |
case EStartupSystemFatalError: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2556 |
SystemFatalErrorL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2557 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2558 |
default: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2559 |
__ASSERT_DEBUG( EFalse, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2560 |
PANIC( EStartupInvalidInternalStateChange ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2561 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2562 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2563 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2564 |
break; |
63 | 2565 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
2566 |
case EStartupWaitingCUIOperatorAnim: |
|
2567 |
{ |
|
2568 |
switch( toState ) |
|
2569 |
{ |
|
2570 |
case EStartupShowingOperatorAnimation: |
|
2571 |
iInternalState = EStartupShowingOperatorAnimation; |
|
2572 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState: EStartupShowingOperatorAnimation"); |
|
2573 |
iOperatorAnimation->UpdateDrawInfo( EStartupDIOperatorAnimStart ); |
|
2574 |
DoStartupShowOperatorAnimationL(); |
|
2575 |
break; |
|
2576 |
case EStartupSystemFatalError: |
|
2577 |
SystemFatalErrorL(); |
|
2578 |
break; |
|
2579 |
default: |
|
2580 |
__ASSERT_DEBUG( EFalse, |
|
2581 |
PANIC( EStartupInvalidInternalStateChange ) ); |
|
2582 |
break; |
|
2583 |
} |
|
2584 |
} |
|
2585 |
break; |
|
2586 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2587 |
case EStartupShowingOperatorAnimation: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2588 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2589 |
switch( toState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2590 |
{ |
63 | 2591 |
case EStartupShowingUserWelcomeNote: |
2592 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
2593 |
iUserWelcomeNote = CStartupUserWelcomeNote::NewL( *this, ClientRect()); |
|
2594 |
AddToStackL( iUserWelcomeNote ); |
|
2595 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
2596 |
iInternalState = EStartupShowingUserWelcomeNote; |
|
2597 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState: EStartupShowingUserWelcomeNote"); |
|
2598 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
2599 |
iWelcomeAnimation->UpdateDrawInfo( EStartupDIWelcomeNoteStart ); |
|
2600 |
iUserWelcomeNote->SetUserWelcomeNoteShowing(ETrue); |
|
2601 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
2602 |
DoStartupShowUserWelcomeNoteL(); |
|
2603 |
break; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2604 |
case EStartupFirstBootAndRTCCheck: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2605 |
iInternalState = EStartupFirstBootAndRTCCheck; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2606 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupFirstBootAndRTCCheck"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2607 |
DoStartupFirstBootAndRTCCheckL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2608 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2609 |
case EStartupSystemFatalError: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2610 |
SystemFatalErrorL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2611 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2612 |
default: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2613 |
__ASSERT_DEBUG( EFalse, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2614 |
PANIC( EStartupInvalidInternalStateChange ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2615 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2616 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2617 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2618 |
break; |
63 | 2619 |
case EStartupShowingUserWelcomeNote: |
2620 |
{ |
|
2621 |
switch( toState ) |
|
2622 |
{ |
|
2623 |
case EStartupFirstBootAndRTCCheck: |
|
2624 |
iInternalState = EStartupFirstBootAndRTCCheck; |
|
2625 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupFirstBootAndRTCCheck"); |
|
2626 |
DoStartupFirstBootAndRTCCheckL(); |
|
2627 |
break; |
|
2628 |
case EStartupSystemFatalError: |
|
2629 |
SystemFatalErrorL(); |
|
2630 |
break; |
|
2631 |
default: |
|
2632 |
__ASSERT_DEBUG( EFalse, |
|
2633 |
PANIC( EStartupInvalidInternalStateChange ) ); |
|
2634 |
break; |
|
2635 |
} |
|
2636 |
} |
|
2637 |
break; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2638 |
case EStartupFirstBootAndRTCCheck: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2639 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2640 |
switch( toState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2641 |
{ |
63 | 2642 |
case EStartupWaitingCUIStartupReady: |
2643 |
iInternalState = EStartupWaitingCUIStartupReady; |
|
2644 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingCUIStartupReady"); |
|
2645 |
WaitingCoverUIStartupReadySyncL(); |
|
2646 |
break; |
|
2647 |
case EStartupSystemFatalError: |
|
2648 |
SystemFatalErrorL(); |
|
2649 |
break; |
|
2650 |
default: |
|
2651 |
__ASSERT_DEBUG( EFalse, |
|
2652 |
PANIC( EStartupInvalidInternalStateChange ) ); |
|
2653 |
break; |
|
2654 |
} |
|
2655 |
} |
|
2656 |
break; |
|
2657 |
case EStartupWaitingCUIStartupReady: |
|
2658 |
{ |
|
2659 |
switch( toState ) |
|
2660 |
{ |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2661 |
case EStartupStartupOK: |
63 | 2662 |
iInternalState = EStartupStartupOK; |
2663 |
TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupStartupOK"); |
|
2664 |
DoStartupEndPart(); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2665 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2666 |
case EStartupSystemFatalError: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2667 |
SystemFatalErrorL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2668 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2669 |
default: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2670 |
__ASSERT_DEBUG( EFalse, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2671 |
PANIC( EStartupInvalidInternalStateChange ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2672 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2673 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2674 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2675 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2676 |
case EStartupSystemFatalError: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2677 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2678 |
switch( toState ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2679 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2680 |
case EStartupStartingUp: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2681 |
case EStartupOfflineModeQuery: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2682 |
case EStartupShowingWelcomeAnimation: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2683 |
case EStartupShowingOperatorAnimation: |
63 | 2684 |
case EStartupShowingUserWelcomeNote: |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2685 |
case EStartupFirstBootAndRTCCheck: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2686 |
case EStartupWaitingCUIStartupReady: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2687 |
case EStartupStartupOK: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2688 |
case EStartupSystemFatalError: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2689 |
//no need to continue, because state is |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2690 |
//already in EStartupSystemFatalError |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2691 |
//so stop the execution of the other branch of |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2692 |
//the startup application. The other |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2693 |
//is displayin the "Selftest failed. Contact service"-dialog. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2694 |
TRACES1("CStartupAppUi::DoNextStartupPhaseL(): InternalState : from EStartupSystemFatalError to %d -> so stop here.", toState ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2695 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2696 |
default: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2697 |
__ASSERT_DEBUG( EFalse, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2698 |
PANIC( EStartupInvalidInternalStateChange ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2699 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2700 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2701 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2702 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2703 |
default: |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2704 |
__ASSERT_DEBUG( EFalse, PANIC( EStartupInvalidInternalStateChange ) ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2705 |
break; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2706 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2707 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2708 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2709 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2710 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2711 |
// CStartupAppUi::SystemFatalErrorL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2712 |
// Call this only from DoNextStartupPhaseL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2713 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2714 |
void CStartupAppUi::SystemFatalErrorL() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2715 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2716 |
TRACES("CStartupAppUi::SystemFatalErrorL()"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2717 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2718 |
iInternalState = EStartupSystemFatalError; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2719 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2720 |
TRACES("CStartupAppUi::SystemFatalErrorL(): End"); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2721 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2722 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2723 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2724 |
// CStartupAppUi::SimStatusChangedReset() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2725 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2726 |
TBool CStartupAppUi::SimStatusChangedReset() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2727 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2728 |
TRACES( "CStartupAppUi::SimStatusChangedReset()" ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2729 |
TBool ret_val( EFalse ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2730 |
if( !iFirstBoot ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2731 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2732 |
TInt startupReason( 0 ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2733 |
RProperty::Get( KPSUidStartup, KPSStartupReason, startupReason ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2734 |
ret_val = ( startupReason == ESIMStatusChangeReset ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2735 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2736 |
TRACES1( "CStartupAppUi::SimStatusChangedReset(): End, return %d", ret_val ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2737 |
return ret_val; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2738 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2739 |
|
63 | 2740 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2741 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2742 |
// CStartupAppUi::UpdateStartupUiPhase() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2743 |
// --------------------------------------------------------------------------- |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2744 |
void CStartupAppUi::UpdateStartupUiPhase( TInt aValue ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2745 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2746 |
TRACES1("CStartupAppUi::UpdateStartupUiPhase(): aValue=%d", aValue); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2747 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2748 |
TInt err = RProperty::Set( KPSUidStartup, KPSStartupUiPhase, aValue ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2749 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2750 |
if( KErrNone != err ) |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2751 |
{ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2752 |
TRACES1("CStartupAppUi::UpdateStartupUiPhase(): KPSStartupUiPhase set err %d", err); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2753 |
} |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2754 |
} |
63 | 2755 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2756 |
// End of file |