author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:43:04 +0300 | |
branch | RCL_3 |
changeset 82 | 4610cd70c542 |
parent 63 | c2c61fdca848 |
permissions | -rw-r--r-- |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
63 | 2 |
* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: CSysApAppUi class definition. This class handles all user |
|
15 |
* actions and also System Agent events. |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
20 |
#ifndef SYSAPAPPUI_H |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
21 |
#define SYSAPAPPUI_H |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
22 |
|
63 | 23 |
// INCLUDES |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
24 |
#include <aknappui.h> |
63 | 25 |
#include <aknkeylock.h> |
26 |
#ifndef RD_MULTIPLE_DRIVE |
|
27 |
#include <aknmemorycarddialog.h> |
|
28 |
#endif // RD_MULTIPLE_DRIVE |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
29 |
#include <starterclient.h> |
63 | 30 |
#include <starter.hrh> |
31 |
#include <babackup.h> |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
32 |
#include <rmmcustomapi.h> |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
33 |
|
63 | 34 |
#include <DosSvrServices.h> |
35 |
#include "SysAp.hrh" |
|
36 |
#include "SysApMMCObserver.h" |
|
37 |
#include "MSysApPropertyResponder.h" |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
38 |
#include "SysApTimer.h" |
63 | 39 |
#include <e32property.h> |
40 |
#include "CoreApplicationUIsPrivateCRKeys.h" |
|
41 |
#include <sysapcallback.h> |
|
42 |
||
62
924385140d98
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
58
diff
changeset
|
43 |
#include "SysApAccessoryObserver.h" |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
44 |
#ifdef RD_MULTIPLE_DRIVE |
63 | 45 |
#include "sysapdrivelist.h" |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
46 |
#endif // RD_MULTIPLE_DRIVE |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
47 |
|
63 | 48 |
#include "sysapusbchargerdetector.h" |
49 |
#include "sysappsmcontroller.h" |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
50 |
|
63 | 51 |
// FORWARD DECLARATIONS |
52 |
class CAknSmallIndicator; |
|
53 |
class CAknSignalNotify; |
|
54 |
class CAknBatteryNotify; |
|
55 |
class CAknGlobalListQuery; |
|
56 |
class CAknGlobalNote; |
|
57 |
class CSystemLock; |
|
58 |
class CSysApLightsController; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
59 |
class CSysApPubSubObserver; |
63 | 60 |
class CSysApProfileObserver; |
61 |
class CSysApConnectionMonitorObserver; |
|
62 |
class CSysApCenRepLightSettingsObserver; |
|
63 |
class CSysApCenRepLogsObserver; |
|
64 |
class CSysApCenRepBtObserver; |
|
65 |
class CSysApCenRepFmTxObserver; |
|
66 |
class CSysApCenRepController; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
67 |
class CSysApStartupController; |
63 | 68 |
class CSysApPowerKeyMenuObserver; |
69 |
class CSysApWaitNote; |
|
70 |
class CSysApSsSettingsObserver; |
|
62
924385140d98
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
58
diff
changeset
|
71 |
class CSysApShutdownImage; |
63 | 72 |
class CSysApShutdownAnimation; |
73 |
class CSysApEtelConnector; |
|
74 |
class CSysApMsgSimMemLowQuery; |
|
75 |
class CSysApNspsHandler; |
|
76 |
class CSysApConfirmationQuery; |
|
77 |
class CSysApFeatureManager; |
|
78 |
class MSysApOfflineModeController; |
|
79 |
class MSysApBtController; |
|
80 |
class MSysApBtSapController; |
|
81 |
class MSysApUsbIndicator; |
|
82 |
class MSysApLocationPrivacyIndicator; |
|
83 |
class MProfileEngine; |
|
84 |
class MProfilesNamesArray; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
85 |
class CSysApKeySndHandler; |
63 | 86 |
class CSysApKeyManagement; // KEF |
87 |
class CSysApMediatorObserver; |
|
88 |
class CAknAppUiBase; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
89 |
class CSysApCenRepHacSettingObserver; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
90 |
class CSysApAudioRoutingObserver; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
91 |
class CSysApCenRepCallForwardingObserver; |
63 | 92 |
class CSysApCenRepMsgWaitingObserver; |
93 |
||
94 |
// POC launching |
|
95 |
class CAiwServiceHandler; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
96 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
97 |
class CSysApDefaultKeyHandler; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
98 |
class CSysApDriveUnlockHandler; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
99 |
class CSysApDriveEjectHandler; |
63 | 100 |
|
101 |
class CSysApBatteryInfoController; |
|
58
0818dd463d41
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
57
diff
changeset
|
102 |
|
63 | 103 |
//CONSTANTS |
104 |
const TInt KDummyReason( -1 ); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
105 |
const TInt KBluetoothModulePowerModeOn ( 1 ); |
63 | 106 |
const TInt KBluetoothModulePowerModeOff ( 0 ); |
107 |
const TInt KGeneralProfileId ( 0 ); |
|
108 |
const TInt KOfflineModeProfileId ( 5 ); |
|
109 |
const TInt KApplicationScanningInterval( 1 ); // 1 second |
|
110 |
_LIT( KFSName, "Fat" ); // MMC file system name |
|
111 |
const TDriveNumber KMMCDrive = EDriveE; // MMC drive number |
|
112 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
113 |
|
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 |
//CLASS DECLARATION |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
116 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
117 |
* CSysApAppUi class. This class serves as a link between the other |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
118 |
* SysAp classes and performs the most UI specific operations on SysAp's |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
119 |
* responsibility. |
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 |
* @lib sysap |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
122 |
* @since 1.0 |
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 |
|
63 | 125 |
class CSysApAppUi : |
126 |
public CAknAppUi, |
|
127 |
#ifndef RD_MULTIPLE_DRIVE |
|
128 |
public MAknMemoryCardDialogObserver, |
|
129 |
#endif // RD_MULTIPLE_DRIVE |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
130 |
public MSysApMemoryCardObserver, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
131 |
public MSysApTimerResponder, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
132 |
public MSysapCallback, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
133 |
public MSysApPsmControllerNotifyCallback |
63 | 134 |
{ |
135 |
public: |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
136 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
137 |
* C++ default constructor. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
138 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
139 |
* @return void |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
140 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
141 |
CSysApAppUi(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
142 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
143 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
144 |
* Destructor |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
145 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
146 |
* @return void |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
147 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
148 |
virtual ~CSysApAppUi(); |
63 | 149 |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
150 |
protected: // From MSysApTimerResponder |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
151 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
152 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
153 |
* Handle events from CSysApTimer |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
154 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
155 |
* @return void |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
156 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
157 |
void TimerExpiredL(); |
63 | 158 |
|
159 |
public: |
|
0
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 |
/** |
63 | 162 |
* Gets called when shutdown continues after shutdown animation |
163 |
* @param None |
|
164 |
* @return void |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
165 |
*/ |
63 | 166 |
void ContinueShutdown(); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
167 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
168 |
/** |
63 | 169 |
* Gets called when there is need to shutdown the device initiated by Symbian side |
170 |
* @param None |
|
171 |
* @return void |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
172 |
*/ |
63 | 173 |
void DoShutdownL( const TBool aReset, const TInt aResetReason ); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
174 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
175 |
/** |
63 | 176 |
* Gets called by CSysApSharedDataObserver if user has selected "No" in |
177 |
* "Do you want to use the phone in Off-line mode?" query in startup. |
|
178 |
* @param aDoProfileChange if ETrue, the last active profile is restored |
|
179 |
* @return void |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
180 |
*/ |
63 | 181 |
void GoOnlineL( TBool aDoProfileChange = ETrue ); |
182 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
183 |
/** |
63 | 184 |
* Gets called by CSysApSharedDataObserver in Simless Offline Mode startup. |
185 |
* @param None |
|
186 |
* @return void |
|
187 |
*/ |
|
188 |
void GoOfflineL(); |
|
189 |
||
190 |
/** |
|
191 |
* Calls CSysApOfflineModeController::SwitchFromOnlineToOfflineModeL() |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
192 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
193 |
* @return void |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
194 |
*/ |
63 | 195 |
void SwitchFromOnlineToOfflineModeL(); |
196 |
||
197 |
/** |
|
198 |
* Called when offline mode change has been finished. |
|
199 |
*/ |
|
200 |
void OfflineModeChangedL(); |
|
201 |
||
202 |
/** |
|
203 |
* Gets called after changing the SW state. |
|
204 |
* @param aSwState The new state |
|
205 |
* @return void |
|
206 |
*/ |
|
207 |
void DoStateChangedL( const RStarterSession::TGlobalState aSwState ); |
|
208 |
||
209 |
#ifdef SYSAP_USE_STARTUP_UI_PHASE |
|
210 |
/** |
|
211 |
* Called when UI is ready after boot. |
|
212 |
*/ |
|
213 |
void HandleUiReadyAfterBootL(); |
|
214 |
||
215 |
#endif // SYSAP_USE_STARTUP_UI_PHASE |
|
62
924385140d98
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
58
diff
changeset
|
216 |
|
63 | 217 |
/** |
218 |
* Returns whether UI is ready after boot. |
|
219 |
*/ |
|
220 |
TBool UiReady() const; |
|
221 |
||
222 |
/** |
|
223 |
* Gets called when any case selection on powerkey menu is done. |
|
224 |
* Does what is needed per selection. |
|
225 |
* @param TInt aSelection |
|
226 |
* @return void |
|
227 |
*/ |
|
228 |
void PowerKeyPopUpMenuSelectionDoneL( TInt aSelection ); |
|
229 |
||
230 |
/** |
|
231 |
* Gets called when Alarm is being shown to user and lights need to be blinked. |
|
232 |
* @param TBool aAlerting |
|
233 |
* @return void |
|
234 |
*/ |
|
235 |
void AlertUiAlertingL( const TBool aAlerting ); |
|
236 |
||
237 |
/** |
|
238 |
* Gets called when Alarm is being shown to user and keylock need to be turned off. |
|
239 |
* @param TBool aKeyLockOff |
|
240 |
* @return void |
|
241 |
*/ |
|
242 |
void AlertUiKeyLockOff( const TBool aKeyLockOff ); |
|
243 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
244 |
/** |
63 | 245 |
* Notifies changes in KPSUidCoreApplicationUIs::KLightControl to light controller. |
246 |
*/ |
|
247 |
void HandleLightsRequireL() const; |
|
248 |
||
249 |
/** |
|
250 |
* Notifies changes in KPSUidCoreApplicationUIs::KCoreAppUIsLightsRawKeyEvent to light controller. |
|
251 |
* |
|
252 |
* @since S60 3.2 |
|
253 |
*/ |
|
254 |
void HandleRawKeyEventLightsRequireL() const; |
|
255 |
||
256 |
/** |
|
257 |
* Gets called when Video Telephony requests to force/cancel lights on/ |
|
258 |
* @param const TInt aLightsParameter |
|
259 |
* @return void |
|
260 |
*/ |
|
261 |
void HandleForcedLightsVTRequireL( const TInt aLightsParameter ) const; |
|
262 |
||
263 |
/** |
|
264 |
* Gets called when Screen Saver requests to force lights on/off |
|
265 |
* @param const TInt aLightsParameter |
|
266 |
* @return void |
|
267 |
*/ |
|
268 |
void HandleForcedLightsSSRequireL( const TInt aLightsParameter ) const; |
|
269 |
||
270 |
/** |
|
271 |
* Gets called when AT Command requests to force lights on/off |
|
272 |
* @param const TInt aLightsParameter |
|
273 |
* @return void |
|
274 |
*/ |
|
275 |
void HandleForcedLightsATCRequireL( const TInt aLightsParameter ) const; |
|
276 |
/** |
|
277 |
* Calls SysApLightsController::SwitchLightsOnSoftRejectL |
|
62
924385140d98
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
58
diff
changeset
|
278 |
* |
924385140d98
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
58
diff
changeset
|
279 |
* @since S60 3.1 |
63 | 280 |
* @param None. |
62
924385140d98
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
58
diff
changeset
|
281 |
* @return None. |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
282 |
*/ |
63 | 283 |
void SwitchLightsOnSoftRejectL(); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
284 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
285 |
/** |
63 | 286 |
* Asks state of one property from PubSub |
287 |
* @param const TUid& |
|
288 |
* @param const TUint |
|
289 |
* @return const TInt ( value of property or error code ) |
|
290 |
*/ |
|
291 |
TInt StateOfProperty( const TUid& aCategory, const TUint aKey ) const; |
|
292 |
||
293 |
/** |
|
294 |
* Sets the indicator's aIndicator state to state aState. |
|
295 |
* @param TInt aIndicator |
|
296 |
* @param TInt aState |
|
297 |
* @return void |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
298 |
*/ |
63 | 299 |
void SetIndicatorStateL( const TInt aIndicator, const TInt aState ) const; |
300 |
||
301 |
/** |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
302 |
* Returns the state of keylock |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
303 |
* @param none |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
304 |
* @return TBool the state of keylock |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
305 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
306 |
TBool KeyLockState() const; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
307 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
308 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
309 |
* Returns the state of devicelock |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
310 |
* @param none |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
311 |
* @return TBool the state of devicelock |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
312 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
313 |
TBool DeviceLockState() const; |
63 | 314 |
|
315 |
/* |
|
316 |
* @param None |
|
317 |
* @return void |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
318 |
*/ |
63 | 319 |
void SetIhfIndicatorL(); |
320 |
||
321 |
/* |
|
322 |
* Handles actions needed when either SIM memory gets too full to receive any more SMS's. |
|
323 |
* @param aSimStoreFull If true, SIM memory is full. |
|
324 |
* @return void |
|
325 |
*/ |
|
326 |
void HandleSmsStorageNotificationL( TBool aSimStoreFull ); |
|
327 |
||
328 |
void HandleNspsRawKeyEventL(); |
|
329 |
||
330 |
void HandleNetworkNspsNotification( RMmCustomAPI::TNspsStatus aNspsStatus ); |
|
331 |
||
332 |
void HandleMessageTonePlayingQuitability( TInt aTonePlayingStatus ); |
|
333 |
||
334 |
/* |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
335 |
* Called by SysApLightsController when the lights are switced on/off |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
336 |
* @param aActivate If ETrue forwarding is activated, otherwise deactivated |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
337 |
* @return void |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
338 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
339 |
void ActivateKeyeventForwardingForLights(TBool aActivate); |
63 | 340 |
|
341 |
/** |
|
342 |
* Gets called when shutdown requested when sw state == ESWStateAlarm |
|
343 |
* context active. |
|
344 |
* @param None |
|
345 |
* @return void |
|
346 |
*/ |
|
347 |
void StartShutDownTimerOnAlarmAndChargingStates(); |
|
348 |
static TInt DoShutdownOnAlarmStateAfterCallBack( TAny* aObject ); |
|
349 |
||
350 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
351 |
/** |
|
352 |
* Starts shutdown animation timing after shutdown tone sync is done |
|
353 |
*/ |
|
354 |
void StartAnimTiming(); |
|
355 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
356 |
||
357 |
/** |
|
358 |
* Stops shutdown animation timing and continues shutdown. |
|
359 |
*/ |
|
360 |
static TInt DoStopAnimTiming( TAny* aObject ); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
361 |
|
63 | 362 |
/** |
363 |
* Gets called when GPRS is suspended because of a phone call established while |
|
364 |
* context active. Delay (KDelayBeforeShowingGprsSuspendedNote) required to ensure |
|
365 |
* that the phone call was really established. |
|
366 |
* @param None |
|
367 |
* @return void |
|
368 |
*/ |
|
369 |
void StartGprsSuspendedTimer(); |
|
370 |
static TInt ShowGprsSuspendedNoteAfterCallBack( TAny* aObject ); |
|
371 |
||
372 |
/** |
|
373 |
* Gets called when an accessory was connected to device. The indicator |
|
374 |
* is shown and profile gets changed if needed. |
|
375 |
* @param aAccessoryState Indicates the new accessory state |
|
376 |
* @return void |
|
377 |
*/ |
|
378 |
void HandleAccessoryConnectedL( TAccMode aAccessoryState ); |
|
379 |
||
380 |
/** |
|
381 |
* Gets called when headset/loopset was disconnected from device. The indicator |
|
382 |
* is hidden and the original profile gets restored if needed. |
|
383 |
* @param None |
|
384 |
* @return void |
|
385 |
*/ |
|
62
924385140d98
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
58
diff
changeset
|
386 |
void HandleAccessoryDisconnectedL(); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
387 |
|
63 | 388 |
/** |
389 |
* Gets called when SysAp receives KSysApSatRefreshStart. All |
|
390 |
* non-system UI applications are closed |
|
391 |
* and an information note is shown to the user. |
|
392 |
* @param None |
|
393 |
* @return void |
|
394 |
*/ |
|
395 |
void HandleSatRefreshL(); |
|
396 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
397 |
#ifndef RD_MULTIPLE_DRIVE |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
398 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
399 |
* Mounts MMC drive |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
400 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
401 |
* @return TInt : error value from RFs::MountFileSystem() |
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 |
TInt MountMMC(); |
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 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
406 |
* Dismounts MMC drive |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
407 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
408 |
* @return TInt : error value from RFs::MountFileSystem() |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
409 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
410 |
TInt DismountMMC(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
411 |
#endif // RD_MULTIPLE_DRIVE |
63 | 412 |
|
413 |
/** |
|
414 |
* MMC Hot Swap Ejection from powerkey menu |
|
415 |
* @param None |
|
416 |
* @return void |
|
417 |
*/ |
|
418 |
void EjectMMCL(); |
|
419 |
||
420 |
/** |
|
421 |
* Disconnect BtSap from powerkey meny |
|
422 |
* @param None |
|
423 |
* @return void |
|
424 |
*/ |
|
425 |
void DisconnectBtSap(); |
|
426 |
||
427 |
/** |
|
428 |
* Enable or disable FM transmission |
|
429 |
*/ |
|
430 |
void ChangeFmTxStateL( TBool aEnable ); |
|
431 |
||
432 |
#ifndef RD_MULTIPLE_DRIVE |
|
433 |
public: // from MAknMemoryCardDialogObserver |
|
434 |
||
435 |
/** |
|
436 |
* To be notified when unlock completed |
|
437 |
* @param TInt aResult |
|
438 |
* @return void |
|
439 |
*/ |
|
440 |
void UnlockComplete( TInt aResult ); |
|
441 |
#endif // RD_MULTIPLE_DRIVE |
|
442 |
||
443 |
public: |
|
444 |
||
445 |
/** |
|
446 |
* Plays the sound EAvkonSIDInformationTone |
|
447 |
* @param None |
|
448 |
* @return void |
|
449 |
*/ |
|
450 |
void Beep(); |
|
451 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
452 |
#ifndef RD_MULTIPLE_DRIVE |
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 |
* Unlocks MMC |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
455 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
456 |
* @return void |
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 |
void RunUnlockNotifierL( TSysApMemoryCardStatus aMemoryCardStatus = ESysApMemoryCardStatusNotKnown ); |
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 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
461 |
* From MSysApMemoryCardObserver. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
462 |
* Gets called by CSysApMMCObserver when an MMC is inserted/removed |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
463 |
* @return void |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
464 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
465 |
void MMCStatusChangedL(); |
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 |
* Shows "MMC removed..." dialogs |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
469 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
470 |
* @return void |
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 |
void ShowMMCDismountedDialogL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
473 |
#else // RD_MULTIPLE_DRIVE |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
474 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
475 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
476 |
* Updates PS key during boot |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
477 |
* @return void |
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 |
void MMCInsertedL(); |
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 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
482 |
* Unlocks MMC |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
483 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
484 |
* @return void |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
485 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
486 |
void RunUnlockNotifierL(); |
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 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
489 |
* From MSysApMemoryCardObserver. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
490 |
* Gets called by CSysApMMCObserver when an MMC is inserted/removed |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
491 |
* @param aDrive Changed drive |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
492 |
* @return void |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
493 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
494 |
void MMCStatusChangedL( TInt aDrive ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
495 |
|
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 |
* Shows "MMC removed..." dialogs |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
498 |
* @param aDrive Drive to dismount |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
499 |
* @param aEjectType Eject type used for the drive |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
500 |
* @return void |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
501 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
502 |
TBool ShowMMCDismountedDialogL( |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
503 |
TInt aDrive, CSysApDriveList::TDriveEjectType aEjectType ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
504 |
#endif // RD_MULTIPLE_DRIVE |
63 | 505 |
|
506 |
/** |
|
507 |
* Called after confirming dialog "MMC removed..." |
|
508 |
* @param None |
|
509 |
* @return void |
|
510 |
*/ |
|
511 |
void MMCDismountedDialogConfirmed(); |
|
512 |
||
513 |
/** |
|
514 |
* Gets called by CSysApSharedDataObserver when "Eject" is started |
|
515 |
* or finished in File Manager application. |
|
516 |
* @param None |
|
517 |
* @return void |
|
518 |
*/ |
|
519 |
void EjectStarted( TBool ejectStarted ); |
|
520 |
||
521 |
private: |
|
522 |
/** |
|
523 |
* EPOC default constructor. |
|
524 |
* @param None |
|
525 |
* @return void |
|
526 |
*/ |
|
527 |
void ConstructL(); |
|
528 |
||
529 |
/** |
|
530 |
* Deactivate PSM on reboot if battery level is above threshold value. |
|
531 |
* @param None |
|
532 |
* @return void |
|
533 |
*/ |
|
534 |
void DeactivatePSMifBatteryNotLowL(); |
|
535 |
||
536 |
private: |
|
537 |
||
538 |
#ifndef RD_MULTIPLE_DRIVE |
|
539 |
||
540 |
/** |
|
541 |
* Resolves process UID based on its thread id |
|
542 |
* |
|
543 |
* @since S60 3.1 |
|
544 |
* @param aThreadId id of the thread |
|
545 |
* @return TInt32 process UID |
|
546 |
*/ |
|
547 |
TInt32 ResolveUidFromThread( TUint aThreadId ) const; |
|
548 |
||
549 |
/** |
|
550 |
* Called recursively when shutting down apps in Hot Swap |
|
551 |
* @param None |
|
552 |
* @return void |
|
553 |
*/ |
|
554 |
void CloseUIAppsInHotSwapL(); |
|
555 |
||
556 |
/** |
|
557 |
* Called by CloseUIApplicationsHotSwapL when completing |
|
558 |
* shutting apps |
|
559 |
* @param None |
|
560 |
* @return void |
|
561 |
*/ |
|
562 |
void CompleteAppsShuttingInHotSwapL(); |
|
563 |
#endif // RD_MULTIPLE_DRIVE |
|
564 |
||
565 |
public: |
|
566 |
||
567 |
/** |
|
568 |
* Initializes parameters used in shutting down apps in BT SAP |
|
569 |
* @param None |
|
570 |
* @return void |
|
571 |
*/ |
|
572 |
void InitCloseSimApplicationsL(); |
|
573 |
||
574 |
private: |
|
575 |
||
576 |
/** |
|
577 |
* Called recursively when shutting down apps in BT SAP |
|
578 |
* @param None |
|
579 |
* @return void |
|
580 |
*/ |
|
581 |
void CloseSimApplicationsL(); |
|
582 |
||
583 |
/** |
|
584 |
* Called to re-envoke CloseSimApplicationsL() |
|
585 |
* @param None |
|
586 |
* @return void |
|
587 |
*/ |
|
588 |
static TInt DoCloseSimApplicationsAfterCallBack( TAny* aObject ); |
|
589 |
||
590 |
private: |
|
591 |
/** |
|
592 |
* Takes care of command handling. |
|
593 |
* @param aCommand command to be handled |
|
594 |
* @return void |
|
595 |
*/ |
|
596 |
void HandleCommandL( TInt aCommand); |
|
597 |
||
598 |
/** |
|
599 |
* handles key events |
|
600 |
* @param TKeyEvent& aKeyEvent |
|
601 |
* @param TEventCode aType |
|
602 |
* @return TKeyResponse |
|
603 |
*/ |
|
604 |
TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
605 |
||
606 |
private: |
|
607 |
// By default, prohibit copy constructor |
|
608 |
CSysApAppUi( const CSysApAppUi& ); |
|
609 |
||
610 |
// Prohibit assigment operator |
|
611 |
CSysApAppUi& operator= ( const CSysApAppUi& ); |
|
612 |
||
613 |
private: |
|
614 |
void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent); |
|
615 |
/** |
|
616 |
* Gets called by ConstructL function to set initial states to indicators etc |
|
617 |
* Needed state information is got from Shared Data and status pane's components |
|
618 |
* are set to the correct states. |
|
619 |
* @param None |
|
620 |
* @return void |
|
621 |
*/ |
|
622 |
void InitializeStatusPaneAreaL(); |
|
623 |
||
624 |
/** |
|
625 |
* Gets called by HandleKeyEventL after detecting a long press of powerkey. |
|
626 |
* According to current state of the device desides if it is time to either |
|
627 |
* shutdown or make startup (from charging state ) to normal state |
|
628 |
* @param None |
|
629 |
* @return void |
|
630 |
*/ |
|
631 |
void HandleLongPowerKeyPressedL(); |
|
632 |
||
633 |
/** |
|
634 |
* Gets called by HandleKeyEventL after a short press of powerkey. |
|
635 |
* According to current state of the device desides if it is time to |
|
636 |
* either switch lights on and show mode selection dialog(normal state) |
|
637 |
* or to shutdown the phone (in alarm state). |
|
638 |
* @param None |
|
639 |
* @return void |
|
640 |
*/ |
|
641 |
void HandleShortPowerKeyPressedL(); |
|
642 |
||
643 |
/** |
|
644 |
* Frees SysAp's reserved memory, closes connections to servers etc. |
|
645 |
* @param None |
|
646 |
* @return void |
|
647 |
*/ |
|
648 |
void FreeResources(); |
|
649 |
||
650 |
public: |
|
651 |
||
652 |
/** |
|
653 |
* Displays a UI query. |
|
654 |
* @param TSysApConfirmationQueryIds |
|
655 |
* @param aValue query related value |
|
656 |
* @return void |
|
657 |
*/ |
|
658 |
void ShowQueryL( const TSysApConfirmationQueryIds aQueryId, |
|
659 |
const TDesC& aValue = KNullDesC ); |
|
660 |
||
661 |
/** |
|
662 |
* Displays a UI note. |
|
663 |
* @param TSysApNoteIds aSysApNoteIds |
|
664 |
* @return void |
|
665 |
*/ |
|
666 |
void ShowUiNoteL( const TSysApNoteIds aNote ) const; |
|
667 |
||
668 |
/** |
|
669 |
* Displays a "Charger connected" note. |
|
670 |
* @param None |
|
671 |
* @return void |
|
672 |
*/ |
|
673 |
void ShowChargingNoteL(); |
|
674 |
||
675 |
/** |
|
676 |
* Handles charger related notes |
|
677 |
* @param TInt : KPSUidChargerCStatusValue |
|
678 |
* @return void |
|
679 |
*/ |
|
680 |
void HandleChargerNotesL( const TInt aValue ); |
|
681 |
||
682 |
/** |
|
683 |
* Displays a "Selected profile" note. |
|
684 |
* @param None |
|
685 |
* @return void |
|
686 |
*/ |
|
687 |
void ShowProfileNoteL(); |
|
688 |
||
689 |
/** |
|
690 |
* Cancels a UI wait note. |
|
691 |
* @param None |
|
692 |
* @return void |
|
693 |
*/ |
|
694 |
void CancelWaitNote(); |
|
695 |
||
696 |
/** |
|
697 |
* Cancels the global list query |
|
698 |
* @param None |
|
699 |
* @return void |
|
700 |
*/ |
|
701 |
void CancelGlobalListQuery(); |
|
702 |
||
703 |
/** |
|
704 |
* Updates signal bars to the value cached by Etel connector. |
|
705 |
* @return void |
|
706 |
*/ |
|
707 |
void UpdateSignalBarsL(); |
|
708 |
||
709 |
/** |
|
710 |
* Updates signal bars to specified state. |
|
711 |
* @param TInt aState Number of bars or KAknSignalOffLineMode |
|
712 |
* @return void |
|
713 |
*/ |
|
714 |
void UpdateSignalBarsL( const TInt aState ); |
|
715 |
||
716 |
/** |
|
717 |
* Gets called by HandleSystemAgentEventL to singal availability indicator |
|
718 |
* ie. Gprs state icon or common signal icon. |
|
719 |
* @param None |
|
720 |
* @return void |
|
721 |
*/ |
|
722 |
void SetSignalIndicatorL(); |
|
723 |
||
724 |
/** |
|
725 |
* Gets called by SetSignalIndicatorL() when in GSM network |
|
726 |
* @param None |
|
727 |
* @return void |
|
728 |
*/ |
|
729 |
void SetSignalIndicatorGsmL(); |
|
730 |
||
731 |
/** |
|
732 |
* Gets called by SetSignalIndicatorL() when in Wcdma network |
|
733 |
* @param None |
|
734 |
* @return void |
|
735 |
*/ |
|
736 |
void SetSignalIndicatorWcdmaL(); |
|
737 |
||
738 |
/** |
|
739 |
* Handles GPRS suspend/resume notes if feature supported. |
|
740 |
* ie. Gprs state icon or common signal icon. |
|
741 |
* @param None |
|
742 |
* @return void |
|
743 |
*/ |
|
744 |
void HandleGprsNotesL(); |
|
745 |
||
746 |
/** |
|
747 |
* Returns the current bluetooth power mode setting using CSysApSharedDataObserver |
|
748 |
* @param None |
|
749 |
* @return TInt |
|
750 |
*/ |
|
751 |
TInt BluetoothPowerMode() const; |
|
752 |
||
753 |
/** |
|
754 |
* Activates the profile given as a parameter |
|
755 |
* @param TInt aProfileId |
|
756 |
* @return void |
|
757 |
*/ |
|
758 |
void ActivateProfileL( const TInt aProfileId ) const; |
|
759 |
||
760 |
/** |
|
761 |
* Activates the profile saved in iProfileToBeActivated. |
|
762 |
* @param None |
|
763 |
* @return void |
|
764 |
*/ |
|
765 |
void ActivateOnlineProfileL() const; |
|
766 |
||
767 |
/** |
|
768 |
* Checks whether Offline Mode is activated |
|
769 |
* @param TBool |
|
770 |
* @return void |
|
771 |
*/ |
|
772 |
TBool OfflineModeActive(); |
|
773 |
||
774 |
/** |
|
775 |
* Tolds Offline Mode controller not to activate BT |
|
776 |
* when next going online. |
|
777 |
* @param None |
|
778 |
* @return void |
|
779 |
*/ |
|
780 |
void DoNotActivateBt(); |
|
781 |
||
782 |
/** |
|
783 |
* Switches BT module on/off using BT Engine |
|
784 |
* @param TBool: ETrue = on, EFalse = off |
|
785 |
* @return void |
|
786 |
*/ |
|
787 |
TInt SetBtPowerState( TBool aBtState ); |
|
788 |
||
789 |
/** |
|
790 |
* Sets iKeyLockOnBeforeCall = EFalse. |
|
791 |
* @param None |
|
792 |
* @return void |
|
793 |
*/ |
|
794 |
void DoNotEnableKeylock(); |
|
795 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
796 |
#ifdef RD_MULTIPLE_DRIVE |
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 |
* Starts wait note for eject |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
799 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
800 |
void ShowEjectWaitNoteL( TInt aDriveToEject ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
801 |
|
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 |
* Checks is eject query visible |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
804 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
805 |
TBool IsEjectQueryVisible(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
806 |
#endif // RD_MULTIPLE_DRIVE |
63 | 807 |
|
808 |
/** |
|
809 |
* Gets called by CSysApSharedDataObserver when "Eject" is selected |
|
810 |
* in File Manager application. |
|
811 |
* @param aDrive Drive to eject |
|
812 |
* @return void |
|
813 |
*/ |
|
814 |
void EjectUsed( TInt aDrive ); |
|
815 |
||
816 |
/** |
|
817 |
* MMC Hot Swap Ejection from powerkey menu was canceled |
|
818 |
* @param None |
|
819 |
* @return void |
|
820 |
*/ |
|
821 |
void EjectMMCCanceled(); |
|
822 |
||
823 |
private: |
|
824 |
||
825 |
/** |
|
826 |
* Gets currently active profile's name. |
|
827 |
* @param TPtr aProfileName |
|
828 |
* @return void |
|
829 |
*/ |
|
830 |
void ActiveProfileNameL( TPtr aProfileName ); |
|
831 |
||
832 |
public: |
|
833 |
||
834 |
/** |
|
835 |
* Gets called by HandleSystemAgentEventL to update battery bars. |
|
836 |
* @param TInt aState |
|
837 |
* @return void |
|
838 |
*/ |
|
839 |
void UpdateBatteryBarsL( const TInt aState ); |
|
840 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
841 |
/** |
63 | 842 |
* Gets called by HandleSystemAgentEventL when profile was changed. |
843 |
* Profile selected Global Note is shown. |
|
844 |
* @param TInt aValue |
|
845 |
* @return void |
|
846 |
*/ |
|
847 |
void HandleProfileChangedL( const TInt aValue ); |
|
848 |
||
849 |
/** |
|
850 |
* Checks if the active profile is silent and updates CSysApLightsController |
|
851 |
* if needed. |
|
852 |
* @param None |
|
853 |
* @return void |
|
854 |
*/ |
|
855 |
void CheckSilentModeL(); |
|
856 |
||
857 |
/** |
|
858 |
* Gets called by CSysApOfflineModeController when activation/deactivation |
|
859 |
* of Offline Mode fails |
|
860 |
* @param TBool aOffline |
|
861 |
* @return void |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
862 |
*/ |
63 | 863 |
void RestoreProfileL( const TBool aOffline ); |
864 |
||
865 |
/** |
|
866 |
* Returns the id of the active profile. |
|
867 |
* @param None |
|
868 |
* @return Int |
|
869 |
*/ |
|
870 |
TInt ActiveProfileId(); |
|
871 |
||
872 |
/** |
|
873 |
* Gets called when the value of the SD key KGSDisplayLightsTimeout |
|
874 |
* changes |
|
875 |
* @param TInt : lights timeout in seconds |
|
876 |
* @return void |
|
877 |
*/ |
|
878 |
void DoLightsTimeoutChangedL( const TInt aTimeout ); |
|
879 |
||
880 |
private: |
|
881 |
||
882 |
/** |
|
883 |
* Checks whether it is necessary to change profiles in case an accessory |
|
884 |
* was connected/disconnected while the device was powered down. |
|
885 |
* |
|
886 |
* @param TInt aValue |
|
887 |
* @return void |
|
888 |
*/ |
|
889 |
void HandleAccessoryProfileInStartupL( ); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
890 |
|
63 | 891 |
public: |
892 |
/** |
|
893 |
* Gets called by HandleSystemAgentEventL to Disable keylock when devicelock is activated. |
|
894 |
* This is done already when device lock is activated because this |
|
895 |
* @param None |
|
896 |
* @return void |
|
897 |
*/ |
|
898 |
void SetDeviceLockEnabledL( const TBool aLockEnabled ); |
|
899 |
||
900 |
private: |
|
901 |
||
902 |
/** |
|
903 |
* Gets called by HandleShortPowerKeyPressedL to display the power key popup menu |
|
904 |
* @param None |
|
905 |
* @return void |
|
906 |
*/ |
|
907 |
void ShowPowerKeyPopUpMenuL(); |
|
908 |
||
909 |
/** |
|
910 |
* Does what is needed to do inside SysAp before actually doing |
|
911 |
* other shutdown related things. This is used when shutdown image is enabled. |
|
912 |
* @param None |
|
913 |
* @return void |
|
914 |
*/ |
|
915 |
void PrepareForShutdownImage(); |
|
916 |
||
917 |
/** |
|
918 |
* Does what is needed to do inside SysAp before actually doing |
|
919 |
* other shutdown related things. This is used when shutdown animation is enabled. |
|
920 |
* @param None |
|
921 |
* @return void |
|
922 |
*/ |
|
923 |
void PrepareForShutdownAnimation(); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
924 |
|
63 | 925 |
/** |
926 |
* Show shutdown animation |
|
927 |
* |
|
928 |
* @param |
|
929 |
* @return ETrue if animation is enabled |
|
930 |
*/ |
|
931 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
932 |
void |
|
933 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
934 |
TBool |
|
935 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
936 |
ShowAnimationL(); |
|
937 |
||
938 |
/** |
|
939 |
* Makes Status pane visible/invisible when needed and changes it's layout between Charging/Alarm |
|
940 |
* @param None |
|
941 |
* @return void |
|
942 |
*/ |
|
943 |
void SetStatusPaneLayoutL( const TSysApPhoneState aState ); |
|
944 |
||
945 |
/** |
|
946 |
* Checks from current Symbian swstate if it is ok to initiate shutdown |
|
947 |
* @param None |
|
948 |
* @return const TBool |
|
949 |
*/ |
|
950 |
TBool OkToInitiateShutdown(); |
|
951 |
||
952 |
/** |
|
953 |
* Shows shutdown animation or shutdown image |
|
954 |
* @param None |
|
955 |
* @return void |
|
956 |
*/ |
|
957 |
void PrepareForCompleteShutdown(); |
|
958 |
||
959 |
/** |
|
960 |
* Makes the end part of shutdown sequence. |
|
961 |
* @param None |
|
962 |
* @return void |
|
963 |
*/ |
|
964 |
void CompleteShutdown( const TBool aReset = EFalse, const TInt aResetReason = KDummyReason ); |
|
965 |
||
966 |
/** |
|
967 |
* Sets calls forwarding indicators on/off accrding to aCallsForwardingState |
|
968 |
* @param TInt aCallsForwardingState |
|
969 |
* @return void |
|
970 |
*/ |
|
971 |
void DoSwStateNormalConstructionL(); |
|
972 |
||
973 |
public: |
|
974 |
||
975 |
/** |
|
976 |
* Starts an application or brings an already running application |
|
977 |
* to foreground. |
|
978 |
* @param TUid: UID of the application that is activated |
|
979 |
* @return void |
|
980 |
*/ |
|
981 |
void ActivateApplicationL( const TUid aUid ); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
982 |
|
63 | 983 |
void HandleCurrentCallStateChangeL( TInt aCurrentCallState ); |
984 |
||
985 |
void DoSimChangedFromPreviousBootL(); |
|
986 |
||
987 |
/** |
|
988 |
* Gets called in SysAp construction or when SysAp gets a SA/P&S notification |
|
989 |
* @param const TInt: indicator status |
|
990 |
* @return void |
|
991 |
*/ |
|
992 |
void HandleLocationPrivacyIndicatorL( const TInt aState ); |
|
993 |
||
994 |
/** |
|
995 |
* Return value of the__SIMCARD feature |
|
996 |
* @param None |
|
997 |
* @return TBool |
|
998 |
*/ |
|
999 |
TBool SimSupported(); |
|
1000 |
||
1001 |
/** |
|
1002 |
* Notify CSysApLightController of the empty battery. |
|
1003 |
* @param None |
|
1004 |
* @return void |
|
1005 |
*/ |
|
1006 |
void BatteryEmptyL(); |
|
1007 |
||
1008 |
/** |
|
1009 |
* Prompt starter to change mode |
|
1010 |
* @param aState The new state |
|
1011 |
* @return KErrArgument if the state change is illegal (from current state |
|
1012 |
* it is not possible to change to the requested state), KErrNone if the |
|
1013 |
* global state change has been successfully initiated. |
|
1014 |
*/ |
|
1015 |
TInt SetStarterState( const RStarterSession::TGlobalState aState ); |
|
1016 |
||
1017 |
/** |
|
1018 |
* Creates the device name string for BT Sap disconnect prompt. |
|
1019 |
* @return device name string. |
|
1020 |
*/ |
|
1021 |
HBufC* GetBtSapDeviceNameL(); |
|
1022 |
||
1023 |
/** |
|
1024 |
* Handle alarm indicator |
|
1025 |
* @param aShowIndicator If ETrue, indicator is show, otherwise it is hidden. |
|
1026 |
*/ |
|
1027 |
void ShowAlarmIndicatorL( TBool aShowIndicator ); |
|
1028 |
||
1029 |
/** |
|
1030 |
* Informs lights controller that flip has been opened/close |
|
1031 |
* @param aFlipOpen ETrue if flip is open, EFalse otherwise |
|
1032 |
*/ |
|
1033 |
void SetFlipOpenL( TBool aFlipOpen ); |
|
1034 |
||
1035 |
/** |
|
1036 |
* Creates a virtual flip key event that is passed to the key management |
|
1037 |
* of SysAp. |
|
1038 |
* |
|
1039 |
* @since S60 3.2 |
|
1040 |
* @param aFlipOpen ETrue if flip is open, EFalse otherwise |
|
1041 |
* @return None |
|
1042 |
*/ |
|
1043 |
void SimulateFlipKeyEventL( TBool aFlipOpen ); |
|
1044 |
||
1045 |
/** |
|
1046 |
* Informs lights controller that grip has been opened/close |
|
1047 |
* @param aGripOpen ETrue if grip is open, EFalse otherwise |
|
1048 |
*/ |
|
1049 |
void SetGripOpenL( TBool aGripOpen ); |
|
1050 |
||
1051 |
/** |
|
1052 |
* Sets the status of the Central Repository key |
|
1053 |
* KCRUidCoreApplicationUIs / KCoreAppUIsNetworkConnectionAllowed |
|
1054 |
* @param TInt |
|
1055 |
* @return void |
|
1056 |
*/ |
|
1057 |
void SetNetworkConnectionAllowed( TCoreAppUIsNetworkConnectionAllowed aNetworkConnectionAllowed ); |
|
1058 |
||
1059 |
/** |
|
1060 |
* Get pointer to RTelServer |
|
1061 |
* |
|
1062 |
* @return pointer to RTelServer if iSysApEtelConnector is initialized. Otherwise return NULL. |
|
1063 |
*/ |
|
1064 |
RTelServer* GetTelServer(); |
|
1065 |
||
1066 |
/** |
|
1067 |
* Show WLan indicator |
|
1068 |
* |
|
1069 |
* @param aValue The value of KPSWlanIndicator PS key. |
|
1070 |
*/ |
|
1071 |
void HandleWlanIndicatorL( TInt aValue ); |
|
1072 |
||
1073 |
/** |
|
1074 |
* Show TARM indicator |
|
1075 |
* |
|
1076 |
* @param aValue The value of KCoreAppUIsTarmIndicator PS key |
|
1077 |
*/ |
|
1078 |
void HandleTarmIndicatorL( TInt aValue ); |
|
1079 |
||
1080 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1081 |
/** |
|
1082 |
* Continue shutdown animation showing after sync request |
|
1083 |
*/ |
|
1084 |
void ShutdownAnimationSyncOK(); |
|
1085 |
#endif RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1086 |
||
1087 |
/** |
|
1088 |
* Skip shutdown animation (i.e. stop showing it). Initiated by CoverUI. |
|
1089 |
*/ |
|
1090 |
void SkipShutdownAnimation(); |
|
1091 |
||
1092 |
/** |
|
1093 |
* Notifies CoverUI about skipping shutdown animation. |
|
1094 |
*/ |
|
1095 |
void NotifyShutdownAnimationSkip(); |
|
1096 |
||
1097 |
/** |
|
1098 |
* Check cover display support |
|
1099 |
* |
|
1100 |
* @return ETrue if cover display is supported, EFalse otherwise |
|
1101 |
*/ |
|
1102 |
TBool CoverDisplaySupported(); |
|
1103 |
||
1104 |
/** |
|
1105 |
* Returns reference to RStarterSession |
|
1106 |
* RStarterSession is connected when this method is called |
|
1107 |
* for the first time. |
|
1108 |
* |
|
1109 |
* Always (except when freeing resources) access the starter session via this method, |
|
1110 |
* don't use the member variable directly. |
|
1111 |
* |
|
1112 |
* @return reference to RStarterSession |
|
1113 |
*/ |
|
1114 |
RStarterSession& StarterSession(); |
|
1115 |
||
1116 |
/** |
|
1117 |
* Returns reference to SysAp's CenRep controller |
|
1118 |
* |
|
1119 |
* @since S60 3.1 |
|
1120 |
* @param None |
|
1121 |
* @return reference to CSysApCenRepController |
|
1122 |
*/ |
|
1123 |
CSysApCenRepController& CenRepController(); |
|
1124 |
||
1125 |
/** |
|
1126 |
* Ignore zero network bars signal notifies. |
|
1127 |
* This is needed in BT SAP mode. |
|
1128 |
* |
|
1129 |
* @param aIgnore If ETrue, ignore any future zero network bars notifications. |
|
1130 |
*/ |
|
1131 |
void IgnoreZeroNetworkBarNotifications(TBool aIgnore); |
|
1132 |
||
1133 |
/** |
|
1134 |
* Check if BT SAP is enabled |
|
1135 |
* |
|
1136 |
* @return ETrue if BT SAP is enabled, EFalse otherwise |
|
1137 |
*/ |
|
1138 |
TBool BtSapEnabled(); |
|
1139 |
||
1140 |
/** |
|
1141 |
* Deactivate BT when changing to normal mode. |
|
1142 |
* Can only be used during startup, has no effect after that. |
|
1143 |
*/ |
|
1144 |
void DeactivateBT(); |
|
1145 |
||
1146 |
private: |
|
1147 |
/** |
|
1148 |
* Returns reference to SysAp's keylock session |
|
1149 |
* RAknKeylock2 session is connected when this method is called |
|
1150 |
* for the first time. |
|
1151 |
* |
|
1152 |
* Always (except when freeing resources) access the keylock session via this method, |
|
1153 |
* don't use the member variable directly. |
|
1154 |
* |
|
1155 |
* @since S60 3.1 |
|
1156 |
* @param None |
|
1157 |
* @return reference to RAknKeylock2 |
|
1158 |
*/ |
|
1159 |
RAknKeylock2& KeyLock(); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1160 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1161 |
|
63 | 1162 |
|
1163 |
#ifdef __SYSAP_MODULE_TEST |
|
1164 |
||
1165 |
/** |
|
1166 |
* Can be used for showing a CAknGlobalNote in module tests |
|
1167 |
* @param noteText : text to be shown in the note |
|
1168 |
* @return void |
|
1169 |
*/ |
|
1170 |
void ModuleTestShowUiNoteL( const TDesC& noteText ) const; |
|
1171 |
#endif |
|
1172 |
||
1173 |
/** |
|
1174 |
* shows power down note before displaying shutdown image |
|
1175 |
* @param: none |
|
1176 |
* @return void |
|
1177 |
*/ |
|
1178 |
void ShowShutdownNoteL(); |
|
1179 |
||
1180 |
/** Return ETrue if the global system state is one of the 'normal' |
|
1181 |
* states: ESwStateNormalRfOn, ESwStateNormalRfOff or |
|
1182 |
* ESwStateNormalBTSap. |
|
1183 |
*/ |
|
1184 |
TBool IsStateNormal() const; |
|
1185 |
||
1186 |
/** |
|
1187 |
* Returns max of three integers |
|
1188 |
* @param: TInt |
|
1189 |
* @return void |
|
1190 |
*/ |
|
1191 |
TInt Max( const TInt aA, const TInt aB, const TInt aC ); |
|
1192 |
||
1193 |
/** |
|
1194 |
* Displays shutdown image. |
|
1195 |
* This method is just a nonleaving implementation, |
|
1196 |
* calls ShowShutdownImageL for performing the task. |
|
1197 |
* |
|
1198 |
* @since S60 3.1 |
|
1199 |
* @param aBitmapId bitmap identifier |
|
1200 |
* @return TInt an error value |
|
1201 |
* @see CSysApAppUi::ShowShutdownImageL |
|
1202 |
*/ |
|
1203 |
TInt ShowShutdownImage( TInt aBitmapId ); |
|
1204 |
||
1205 |
/** |
|
1206 |
* Displays shutdown image. If a CSysApShutdownImage instance |
|
1207 |
* does not exist, it will be created. |
|
1208 |
* |
|
1209 |
* @since S60 3.1 |
|
1210 |
* @param aBitmapId bitmap identifier |
|
1211 |
* @return None |
|
1212 |
* @leave Symbian error code |
|
1213 |
*/ |
|
1214 |
void ShowShutdownImageL( TInt aBitmapId ); |
|
1215 |
||
1216 |
private: // from MSysapCallback |
|
1217 |
/** |
|
1218 |
* Executes a command in SysAp. |
|
1219 |
* |
|
1220 |
* @since S60 3.1 |
|
1221 |
* @param[in] aCommand command identifier |
|
1222 |
* @return None |
|
1223 |
* @leave an error code, system wide/command specific |
|
1224 |
* |
|
1225 |
* @see MSysapCallback::TSysapCommand |
|
1226 |
*/ |
|
1227 |
void ExecCommandL( TSysapCommand aCommand ); |
|
1228 |
||
1229 |
/** |
|
1230 |
* Executes a command in SysAp. |
|
1231 |
* |
|
1232 |
* @since S60 3.1 |
|
1233 |
* @param aCommand command identifier |
|
1234 |
* @param aParam command specific parameter data |
|
1235 |
* @return None |
|
1236 |
* @leave an error code, system wide/command specific |
|
1237 |
* |
|
1238 |
* @see MSysapCallback::TSysapCommand |
|
1239 |
*/ |
|
1240 |
void ExecCommandL( TSysapCommand aCommand, const TDesC8& aParam ); |
|
1241 |
||
1242 |
/** |
|
1243 |
* Queries information from SysAp. |
|
1244 |
* |
|
1245 |
* @since S60 3.1 |
|
1246 |
* @param[in] aQuery query identifier |
|
1247 |
* @param[out] aReturn query specific return data |
|
1248 |
* @return None |
|
1249 |
* @leave an error code, system wide/command specific |
|
1250 |
* |
|
1251 |
* @see MSysapCallback::TSysapQuery |
|
1252 |
*/ |
|
1253 |
void ExecQueryL( TSysapQuery aQuery, TDes8& aReturn ); |
|
1254 |
||
1255 |
/** |
|
1256 |
* Queries information from SysAp. |
|
1257 |
* |
|
1258 |
* @since S60 3.1 |
|
1259 |
* @param[in] aQuery query identifier |
|
1260 |
* @param[out] aReturn query specific return data |
|
1261 |
* @param[in] aParam query specific parameter data |
|
1262 |
* @return None |
|
1263 |
* @leave an error code, system wide/command specific |
|
1264 |
* |
|
1265 |
* @see MSysapCallback::TSysapQuery |
|
1266 |
*/ |
|
1267 |
void ExecQueryL( TSysapQuery aQuery, TDes8& aReturn, const TDesC8& aParam ); |
|
1268 |
||
1269 |
public: |
|
1270 |
/** |
|
1271 |
* Sets HAC (Hearing Aid Compatibility) indicator according to its CenRep-setting |
|
1272 |
* state. |
|
1273 |
* HAC indicator is not displayed if an accessory is connected. |
|
1274 |
* |
|
1275 |
* @param None |
|
1276 |
* @return None |
|
1277 |
*/ |
|
1278 |
void SetHacIndicatorL(); |
|
1279 |
||
1280 |
/** |
|
1281 |
* Returns reference to SysAp's internal feature manager. |
|
1282 |
* |
|
1283 |
* @since S60 3.1 |
|
1284 |
* @return CSysApFeatureManager& |
|
1285 |
*/ |
|
1286 |
CSysApFeatureManager& SysApFeatureManager(); |
|
1287 |
||
1288 |
/** |
|
1289 |
* Handles response to power save activation query. |
|
1290 |
* |
|
1291 |
* @param aEnable If ETrue, the user has accepted the query. |
|
1292 |
*/ |
|
1293 |
void HandleActivatePsmQueryResponse( TBool aEnable ); |
|
1294 |
||
1295 |
/** |
|
1296 |
* Handles response to power save deactivation query. |
|
1297 |
* |
|
1298 |
* @param aDisable If ETrue, the user has accepted the query. |
|
1299 |
*/ |
|
1300 |
void HandleDeactivatePsmQueryResponse( TBool aDisable ); |
|
1301 |
||
1302 |
private: // from CAknAppUi |
|
1303 |
/** |
|
1304 |
* Handles a change to the application's resources which are shared across the environment. |
|
1305 |
* |
|
1306 |
* @since S60 3.1 |
|
1307 |
* @param aType The type of resources that have changed. |
|
1308 |
* @return None. |
|
1309 |
*/ |
|
1310 |
void HandleResourceChangeL(TInt aType); |
|
1311 |
||
1312 |
private: |
|
1313 |
/** |
|
1314 |
* Shows and hides the memory card indicator depending on whether the memory card is inserted or not. |
|
1315 |
* |
|
1316 |
* @since S60 3.1 |
|
1317 |
* @param None. |
|
1318 |
* @return None. |
|
1319 |
*/ |
|
1320 |
void SetMemoryCardIndicatorL(); |
|
1321 |
||
1322 |
/** |
|
1323 |
* Returns whether IHF has been enabled. |
|
1324 |
* Creates audio routing observer if it does not exist.. |
|
1325 |
* |
|
1326 |
* @since S60 3.2 |
|
1327 |
* @return TBool ETrue if IHF is enabled |
|
1328 |
*/ |
|
1329 |
TBool IhfEnabledL(); |
|
1330 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1331 |
#ifdef RD_MULTIPLE_DRIVE |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1332 |
void UpdateInsertedMemoryCardsL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1333 |
#endif // RD_MULTIPLE_DRIVE |
63 | 1334 |
|
1335 |
/** |
|
1336 |
* Handles setup of USB charger from given charging status. |
|
1337 |
* |
|
1338 |
* @since S60 3.2 |
|
1339 |
* @param aValue Given charging status |
|
1340 |
*/ |
|
1341 |
void HandleUsbCharger( const TInt aValue ); |
|
1342 |
||
1343 |
public: |
|
1344 |
/** |
|
1345 |
* Sets USB connection attach status. |
|
1346 |
* This prevents double beep when USB file transfer gets activated. |
|
1347 |
* |
|
1348 |
* @since S60 3.2 |
|
1349 |
* @param aUsbConnected ETrue if USB cable has just been attached, otherwise EFalse |
|
1350 |
*/ |
|
1351 |
void SetUsbAttachStatus( const TBool aUsbAttached ); |
|
1352 |
||
1353 |
/** |
|
1354 |
* Returns whether the key event is considered to be a device mode key event, |
|
1355 |
* which usually causes a transition in the device mode (e.g. grip, flip or twist). |
|
1356 |
* |
|
1357 |
* @since S60 3.2 |
|
1358 |
* @param aKeyEvent key event |
|
1359 |
* @return TBool ETrue key event is considered to be a device mode key |
|
1360 |
* EFalse not a device moed key |
|
1361 |
*/ |
|
1362 |
TBool IsDeviceModeKey( const TKeyEvent& aKeyEvent ) const; |
|
1363 |
||
1364 |
/** |
|
1365 |
* Returns whether resources (objects, server connections) owned by this |
|
1366 |
* class has been freed. |
|
1367 |
* |
|
1368 |
* @since S60 3.2 |
|
1369 |
* @return TBool ETrue if resource deallocation has been performed. |
|
1370 |
*/ |
|
1371 |
TBool ResourcesFreed() const; |
|
1372 |
||
1373 |
/** |
|
1374 |
* Returns pointer to CSysApEtelConnector. |
|
1375 |
* |
|
1376 |
* @since S60 3.2 |
|
1377 |
* @return pointer to CSysApEtelConnector instance owned by this class. |
|
1378 |
* NULL if the object creation has failed. |
|
1379 |
*/ |
|
1380 |
CSysApEtelConnector* EtelConnector() const; |
|
1381 |
||
1382 |
/** |
|
1383 |
* Returns reference to USB charger detector, TSysApUsbChargerDetector. |
|
1384 |
* |
|
1385 |
* @since S60 3.2 |
|
1386 |
* @return Reference to USB charger detector. |
|
1387 |
*/ |
|
1388 |
TSysApUsbChargerDetector& UsbChargerDetector(); |
|
1389 |
||
1390 |
/** |
|
1391 |
* Sets envelope indicator according to current messaging status. |
|
1392 |
* |
|
1393 |
* @since S60 3.2 |
|
1394 |
*/ |
|
1395 |
void SetEnvelopeIndicatorL(); |
|
1396 |
||
1397 |
/** |
|
1398 |
* Handles value changes of the key KHWRMBatteryStatus. |
|
1399 |
* |
|
1400 |
* @since S60 3.2 |
|
1401 |
* @param aValue the updated key value |
|
1402 |
*/ |
|
1403 |
void HandleBatteryStatusL( const TInt aValue ); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1404 |
|
63 | 1405 |
/** |
1406 |
* Handles value changes of the key KHWRMChargingStatus. |
|
1407 |
* |
|
1408 |
* @since S60 3.2 |
|
1409 |
* @param aValue the updated key value |
|
1410 |
*/ |
|
1411 |
void HandleChargingStatusL( const TInt aValue ); |
|
1412 |
||
1413 |
/** |
|
1414 |
* Cancel the specified query if it is active. |
|
1415 |
* |
|
1416 |
* @param aQueryId ID of the query that must be cancelled. |
|
1417 |
* If ESysApNoQuery is given, the active query is cancelled. |
|
1418 |
* without checking its ID. |
|
1419 |
*/ |
|
1420 |
void CancelQuery( TSysApConfirmationQueryIds aQueryId ); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1421 |
|
63 | 1422 |
private: |
1423 |
// from MSysApPsmControllerNotifyCallback |
|
1424 |
void NotifyPowerSaveModeL( TSysApPsmStatus aStatus ); |
|
1425 |
||
1426 |
private: |
|
1427 |
/** |
|
1428 |
* Get the logs observer. Created if does not exist. |
|
1429 |
* |
|
1430 |
* @since S60 3.2 |
|
1431 |
* @return reference to CSysApCenRepLogsObserver object |
|
1432 |
*/ |
|
82
4610cd70c542
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
1433 |
CSysApCenRepLogsObserver& CSysApAppUi::LogsObserverL(); |
63 | 1434 |
|
1435 |
/** |
|
1436 |
* Adds MMC removal item(s) to power menu. |
|
1437 |
* |
|
1438 |
* @since S60 5.2 |
|
1439 |
* |
|
1440 |
* @param aProfileNameCDesCArray Array holding menu item labels |
|
1441 |
* @param aItemIdArray Item labels for cover ui |
|
1442 |
* @param aPowerMenuItemIndex last used index in power menue |
|
1443 |
*/ |
|
1444 |
void AddMmcMenuItemsL( CDesCArray*& aProfileNameCDesCArray, |
|
1445 |
RArray<TInt>& aItemIdArray, |
|
1446 |
TInt& aPowerMenuItemIndex ); |
|
1447 |
||
1448 |
public: |
|
1449 |
/** |
|
1450 |
* Starts the charging animation in the battery pane. |
|
1451 |
*/ |
|
1452 |
void StartChargingBatteryL(); |
|
1453 |
||
1454 |
/** |
|
1455 |
* Stops the charging animation in the battery pane. |
|
1456 |
*/ |
|
1457 |
void StopChargingBatteryL(); |
|
1458 |
||
1459 |
private: |
|
1460 |
//Data members |
|
1461 |
||
1462 |
/***************************************************** |
|
1463 |
* Series 60 Customer / DOS |
|
1464 |
* Series 60 Domestic OS API |
|
1465 |
*****************************************************/ |
|
1466 |
||
1467 |
CSysApLightsController* iSysApLightsController; |
|
1468 |
||
1469 |
CSysApPubSubObserver* iSysApPubSubObserver; |
|
1470 |
CSysApProfileObserver* iSysApProfileObserver; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1471 |
|
63 | 1472 |
CSysApCenRepLightSettingsObserver* iSysApCenRepLightSettingsObserver; |
1473 |
CSysApCenRepLogsObserver* iSysApCenRepLogsObserver; |
|
1474 |
CSysApCenRepBtObserver* iSysApCenRepBtObserver; |
|
1475 |
CSysApCenRepHacSettingObserver* iSysApCenRepHacSettingObserver; |
|
1476 |
CSysApCenRepFmTxObserver* iSysApCenRepFmTxObserver; |
|
1477 |
CSysApCenRepController* iSysApCenRepController; |
|
1478 |
CSysApStartupController* iSysApStartupController; |
|
1479 |
CSysApConnectionMonitorObserver* iSysApConnectionMonitorObserver; |
|
1480 |
CSysApPowerKeyMenuObserver* iSysApPowerKeyMenuObserver; |
|
1481 |
CSysApSsSettingsObserver* iSysApSsSettingsObserver; |
|
1482 |
CSysApShutdownImage* iSysApShutdownImage; |
|
1483 |
CSysApShutdownAnimation* iSysApShutdownAnimation; |
|
1484 |
CSysApEtelConnector* iSysApEtelConnector; |
|
1485 |
CSysApAccessoryObserver* iSysApAccessoryObserver; |
|
1486 |
CSysApMsgSimMemLowQuery* iSysApMsgSimMemLowQuery; |
|
1487 |
CSysApWaitNote* iSysApWaitNote; |
|
1488 |
CSysApConfirmationQuery* iSysApConfirmationQuery; |
|
1489 |
CSysApConfirmationQuery* iSysApConfirmationQueryForRestart; |
|
1490 |
CSysApFeatureManager* iSysApFeatureManager; |
|
1491 |
MSysApOfflineModeController* iSysApOfflineModeController; |
|
1492 |
CSysApMMCObserver* iSysApMMCObserver; |
|
1493 |
CSysApNspsHandler* iSysApNspsHandler; |
|
1494 |
MSysApUsbIndicator* iSysApUsbIndicatorController; |
|
1495 |
MSysApBtController* iSysApBtController; |
|
1496 |
MSysApBtSapController* iSysApBtSapController; |
|
1497 |
MSysApLocationPrivacyIndicator* iSysApLocationPrivacyIndicator; |
|
1498 |
CAknBatteryNotify* iBatteryNotify; |
|
1499 |
CAknSignalNotify* iSignalNotify; |
|
1500 |
CAknGlobalListQuery* iGlobalListQuery; |
|
1501 |
||
1502 |
CSystemLock* iSysApSystemLock; |
|
1503 |
MProfileEngine* iProfileEngine; |
|
1504 |
MProfilesNamesArray* iProfileNamesArray; |
|
1505 |
RStarterSession iStarterSession; |
|
1506 |
RAknKeylock2 iKeyLock; |
|
1507 |
#ifndef RD_MULTIPLE_DRIVE |
|
1508 |
CAknMemoryCardDialog* iMemoryCardDialog; |
|
1509 |
#endif // RD_MULTIPLE_DRIVE |
|
1510 |
TInt iCapturedEKeyPowerOff; |
|
1511 |
TInt iCapturedEKeyPowerOffUpAndDowns; |
|
1512 |
TInt iCapturedAppskey; |
|
1513 |
TInt iCapturedAppskeyUpAndDowns; |
|
1514 |
||
1515 |
||
1516 |
TInt iNumberOfProfileNamesInPowerKeyMenu; |
|
1517 |
||
1518 |
TBool iPowerkeyMenuLockKeypadShown; |
|
1519 |
TBool iPowerkeyMenuExitSapShown; |
|
1520 |
TBool iPowerkeyMenuLockSystemShown; |
|
1521 |
TBool iPowerkeyMenuEjectShown; |
|
1522 |
||
1523 |
TInt iPowerkeyMenuLockKeypadSelection; |
|
1524 |
TInt iPowerkeyMenuExitSapSelection; |
|
1525 |
TInt iPowerkeyMenuLockSystemSelection; |
|
1526 |
#ifndef RD_MULTIPLE_DRIVE |
|
1527 |
TInt iPowerkeyMenuEjectSelection; |
|
1528 |
#endif // RD_MULTIPLE_DRIVE |
|
1529 |
||
1530 |
TInt iProfileToBeActivated; |
|
1531 |
TInt iActiveProfileBeforeOfflineMode; |
|
1532 |
||
1533 |
TInt iApplicationScanningRoundNumberInBtSap; |
|
1534 |
TBool iTimeToKillInBtSap; |
|
1535 |
||
1536 |
TBool iLastPowerKeyWasShort; |
|
1537 |
TBool iIgnoreNextPowerKeyUpEvent; |
|
1538 |
TBool iIgnoreNextPowerKeyRepeats; |
|
1539 |
TBool iPowerKeyPopupMenuActive; |
|
1540 |
TBool iDisablePowerkeyMenu; |
|
1541 |
TBool iPowerkeyMenuPowerOffShown; |
|
1542 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1543 |
TBool iDeviceLockEnabled; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1544 |
TBool iKeyLockEnabled; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1545 |
TBool iKeyLockOnBeforeCall; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1546 |
TBool iKeyLockOnBeforeAlarm; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1547 |
TBool iKeyLockOnBeforeCradle; |
63 | 1548 |
TBool iShowkeypadActivatedNoteAfterSoftReject; |
1549 |
||
1550 |
TBool iEmergencyCallActive; |
|
62
924385140d98
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
58
diff
changeset
|
1551 |
TBool iSimChangedDone; |
63 | 1552 |
TBool iResourcesFreed; |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1553 |
TBool iNsps; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1554 |
#ifndef RD_MULTIPLE_DRIVE |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1555 |
TBool iHideFirstBeep; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1556 |
#endif // RD_MULTIPLE_DRIVE |
63 | 1557 |
TBool iShutdownStarted; |
1558 |
TBool iAlarmOrChargingStateShutdownStarted; |
|
1559 |
||
1560 |
TBool iIgnoreAccessorySpecificProfileChanges; |
|
1561 |
TBool iAccessoryJustConnected; |
|
1562 |
||
1563 |
TBool iHandleNextProfileEvent; |
|
1564 |
TBool iActivateBt; |
|
1565 |
TBool iDeactivateBt; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1566 |
#ifndef RD_MULTIPLE_DRIVE |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1567 |
TBool iTimeToKill; // MMC Hot Swap |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1568 |
TInt iApplicationScanningRoundNumber; // MMC Hot Swap |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1569 |
#endif // RD_MULTIPLE_DRIVE |
63 | 1570 |
TBool iGprsActivated; // used in defining whether to show GPRS suspended note |
1571 |
TBool iGprsSuspended; // used in defining whether to show GPRS suspended note |
|
1572 |
TBool iCallActivated; // used in defining whether to show GPRS suspended note |
|
1573 |
TBool iGprsSuspendedNoteShown; |
|
1574 |
||
1575 |
TBool iMMCEjectUsed; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1576 |
#ifndef RD_MULTIPLE_DRIVE |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1577 |
TBool iMMCPowerMenuEjectUsed; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1578 |
TBool iMMCInserted; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1579 |
#endif // RD_MULTIPLE_DRIVE |
63 | 1580 |
|
1581 |
CPeriodic* iTimer; |
|
1582 |
CPeriodic* iSapTimer; |
|
1583 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1584 |
CPeriodic* iAnimTimer; |
|
1585 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1586 |
CSysApTimer* iSysApTimer; |
|
1587 |
||
1588 |
#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1589 |
TInt iAnimationShowingTime; |
|
1590 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
1591 |
||
1592 |
CSysApKeySndHandler* iSysApKeySndHandler; |
|
1593 |
||
1594 |
TBool iIgnoreZeroNetworkBarNotifications; |
|
1595 |
||
1596 |
TBool iCharging; // Indicates if charging is currently on |
|
1597 |
CSysApKeyManagement* iSysApKeyManagement; |
|
1598 |
||
1599 |
CSysApMediatorObserver* iSysApMediatorObserver; |
|
1600 |
TBool iShutdownContinued; |
|
1601 |
||
1602 |
/** |
|
1603 |
* The default key handler. |
|
1604 |
* Own. |
|
1605 |
*/ |
|
1606 |
CSysApDefaultKeyHandler* iSysApDefaultKeyHandler; |
|
1607 |
||
1608 |
TBool iPowerKeyPopupMenuDismissed; // Indicates if the popup menu has been dismissed |
|
1609 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1610 |
#ifndef RD_MULTIPLE_DRIVE |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1611 |
TBool iHideNextBeep; // Prevents double beep when USB file transfer gets activated |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1612 |
TBool iFileManagerCloseDisabled; // Prevents File Manager to close on hotswap |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1613 |
#endif // RD_MULTIPLE_DRIVE |
63 | 1614 |
|
1615 |
CSysApAudioRoutingObserver* iSysApAudioRoutingObserver; |
|
1616 |
||
1617 |
/** |
|
1618 |
* Call forwarding status CenRep key observer. |
|
1619 |
* Own. |
|
1620 |
*/ |
|
1621 |
CSysApCenRepCallForwardingObserver* iSysApCenRepCallForwardingObserver; |
|
1622 |
||
1623 |
/** |
|
1624 |
* Message waiting status CenRep key observer. |
|
1625 |
* Own. |
|
1626 |
*/ |
|
1627 |
CSysApCenRepMsgWaitingObserver* iSysApCenRepMsgWaitingObserver; |
|
1628 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1629 |
#ifdef RD_MULTIPLE_DRIVE |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1630 |
// First power menu index used for eject |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1631 |
TInt iPowerkeyMenuEjectSelectionBase; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1632 |
|
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 |
* Drive list container |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1635 |
* Own. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1636 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1637 |
CSysApDriveList* iSysApDriveList; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1638 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1639 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1640 |
* Drive unlock handler. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1641 |
* Own. |
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 |
CSysApDriveUnlockHandler* iSysApDriveUnlockHandler; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1644 |
|
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 |
* Drive eject handler. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1647 |
* Own. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1648 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1649 |
CSysApDriveEjectHandler* iSysApDriveEjectHandler; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1650 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1651 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1652 |
* Array for storing inserted memory cards. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1653 |
* Own. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1654 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1655 |
RArray< CSysApDriveList::TMemoryCardEntry > iInsertedMemoryCards; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1656 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1657 |
// Stores drive for dismount query |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1658 |
TInt iDriveToDismount; |
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 |
// Stores drive for eject query |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1661 |
TInt iDriveToEject; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1662 |
#endif // RD_MULTIPLE_DRIVE |
63 | 1663 |
|
1664 |
/** |
|
1665 |
* For USB charger detection. |
|
1666 |
*/ |
|
1667 |
TSysApUsbChargerDetector iSysApUsbChargerDetector; |
|
1668 |
||
1669 |
/** |
|
1670 |
* SysAp power save mode controller. |
|
1671 |
* Own. |
|
1672 |
*/ |
|
1673 |
CSysApPsmController* iSysApPsmController; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1674 |
|
63 | 1675 |
/** |
1676 |
* SysAp battery info controller. |
|
1677 |
* Own. |
|
1678 |
*/ |
|
1679 |
CSysApBatteryInfoController* iSysApBatteryInfoController; |
|
1680 |
||
1681 |
/** |
|
1682 |
* Returns whether a de/encrypting operation is ongoing |
|
1683 |
* |
|
1684 |
* @since S60 3.1 |
|
1685 |
* @return TBool ETrue if a de/encrypting operation is in progress |
|
1686 |
*/ |
|
1687 |
TBool IsEncryptionOperationOngoingL() const; |
|
1688 |
TInt iKeyBoardRepeatCount; |
|
1689 |
||
1690 |
//Offset of profile-related menu items in power key menu |
|
1691 |
TInt iProfileItemsOffset; |
|
1692 |
//Flag to record if the TD network is enalbed. |
|
1693 |
TBool iTDEnable; |
|
1694 |
TBool IsDefaultPowerKeyBehavior(); |
|
1695 |
||
1696 |
}; |
|
1697 |
||
1698 |
#endif // SYSAPAPPUI_H |
|
1699 |
||
1700 |
// End of File |