author | hgs |
Fri, 16 Jul 2010 10:30:52 +0300 | |
changeset 51 | 50b444048a8d |
parent 46 | eea20ed08f4b |
child 61 | 224b21efc2d4 |
permissions | -rw-r--r-- |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
46 | 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: |
|
15 |
* |
|
16 |
*/ |
|
0
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 |
#ifndef SYSAPAPPUI_H |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
#define SYSAPAPPUI_H |
46 | 20 |
//#include <QObject> |
21 |
//#include <aknappui.h> |
|
22 |
//#include <hbmessagebox.h> |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
#include <aknappui.h> |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
24 |
#include "SysAp.hrh" |
46 | 25 |
#include <f32file.h> |
26 |
#include <W32STD.H> |
|
27 |
#include <coedef.h> |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
28 |
#include <e32property.h> |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
29 |
#include <sysapcallback.h> |
46 | 30 |
#include <starterclient.h> |
51 | 31 |
#include <rmmcustomapi.h> |
32 |
||
33 |
||
46 | 34 |
#include "SysApTimer.h" |
35 |
#include "SysApLightsController.h" |
|
36 |
#include "coreapplicationuisprivatecrkeys.h" |
|
37 |
#include "sysapusbchargerdetector.h" |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
38 |
#include "SysApAccessoryObserver.h" |
46 | 39 |
#include <hbsymbianvariant.h> |
51 | 40 |
#include <hbindicatorsymbian.h> |
46 | 41 |
//For Powermenu--CHbDevicePowerMenuSymbian |
42 |
#include "hbdevicepowermenusymbian.h" |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
43 |
|
46 | 44 |
#include "sysappsmcontroller.h" |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
45 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
46 |
//CLASS DECLARATION |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
47 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
48 |
* 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
|
49 |
* 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
|
50 |
* responsibility. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
51 |
* |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
52 |
* @lib sysap |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
53 |
* @since 1.0 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
54 |
*/ |
46 | 55 |
#include <eikappui.h> |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
56 |
|
46 | 57 |
|
58 |
//class CAknAppUiBase; |
|
59 |
//class CSysApKeySndHandler; |
|
60 |
//class CSysApWsClient; |
|
61 |
class CSysApFeatureManager; |
|
62 |
class CSysApNspsHandler; |
|
63 |
class CSysApPubSubObserver; |
|
64 |
class CSysApStartupController; |
|
65 |
class CSysApDefaultKeyHandler; |
|
66 |
class CSysApKeyManagement; |
|
67 |
class MSysApOfflineModeController; |
|
68 |
class CHbDevicePowerMenuSymbian; |
|
69 |
class CSysApShutdownImage; |
|
70 |
class CSysApKeySndHandler; |
|
71 |
class CSysApCenRepController; |
|
72 |
class CSysApCenRepLightSettingsObserver; |
|
73 |
class CSysApCenRepBtObserver; |
|
74 |
class CSysApCenRepHacSettingObserver; |
|
75 |
class CSysApAudioRoutingObserver; |
|
76 |
class CSysApSsSettingsObserver; |
|
77 |
class CSystemLock; |
|
78 |
class CSysApCenRepCallForwardingObserver; |
|
79 |
class CSysApBatteryInfoController; |
|
80 |
class MSysApBtSapController; |
|
81 |
class MSysApBtController; |
|
82 |
class CSysApCenRepLogsObserver; |
|
83 |
class MSysApUsbIndicator; |
|
84 |
class CKeyguardAccessApi; |
|
51 | 85 |
class CHbIndicatorSymbian; |
86 |
class CSysApShutdownAnimation; |
|
46 | 87 |
|
51 | 88 |
class CSysApDefaultKeyHandler; |
89 |
class CSysApEtelConnector; |
|
46 | 90 |
|
91 |
const TInt KBluetoothModulePowerModeOn ( 1 ); |
|
92 |
const TInt KDummyReason( -1 ); |
|
93 |
||
94 |
//class HbMessageBox; |
|
95 |
||
96 |
class CSysApAppUi : public CAknAppUi, |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
97 |
public MSysApTimerResponder, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
98 |
public MSysapCallback, |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
99 |
public MSysApPsmControllerNotifyCallback |
46 | 100 |
{ |
101 |
public: |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
102 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
103 |
* C++ default constructor. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
104 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
105 |
* @return void |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
106 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
107 |
CSysApAppUi(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
108 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
109 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
110 |
* Destructor |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
111 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
112 |
* @return void |
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 |
virtual ~CSysApAppUi(); |
46 | 115 |
|
116 |
// from CCoeAppUiBase |
|
117 |
void PrepareToExit(); |
|
118 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
119 |
protected: // From MSysApTimerResponder |
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 |
* Handle events from CSysApTimer |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
123 |
* @param None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
124 |
* @return void |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
125 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
126 |
void TimerExpiredL(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
127 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
128 |
private: // from MSysapCallback |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
129 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
130 |
* Executes a command in SysAp. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
131 |
* |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
132 |
* @since S60 3.1 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
133 |
* @param[in] aCommand command identifier |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
134 |
* @return None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
135 |
* @leave an error code, system wide/command specific |
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 |
* @see MSysapCallback::TSysapCommand |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
138 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
139 |
void ExecCommandL( TSysapCommand aCommand ); |
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 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
142 |
* Executes a command in SysAp. |
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 |
* @since S60 3.1 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
145 |
* @param aCommand command identifier |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
146 |
* @param aParam command specific parameter data |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
147 |
* @return None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
148 |
* @leave an error code, system wide/command specific |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
149 |
* |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
150 |
* @see MSysapCallback::TSysapCommand |
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 |
void ExecCommandL( TSysapCommand aCommand, const TDesC8& aParam ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
153 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
154 |
/** |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
155 |
* Queries information from SysAp. |
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 |
* @since S60 3.1 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
158 |
* @param[in] aQuery query identifier |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
159 |
* @param[out] aReturn query specific return data |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
160 |
* @return None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
161 |
* @leave an error code, system wide/command specific |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
162 |
* |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
163 |
* @see MSysapCallback::TSysapQuery |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
164 |
*/ |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
165 |
void ExecQueryL( TSysapQuery aQuery, TDes8& aReturn ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
166 |
|
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 |
* Queries information from SysAp. |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
169 |
* |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
170 |
* @since S60 3.1 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
171 |
* @param[in] aQuery query identifier |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
172 |
* @param[out] aReturn query specific return data |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
173 |
* @param[in] aParam query specific parameter data |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
174 |
* @return None |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
175 |
* @leave an error code, system wide/command specific |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
176 |
* |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
177 |
* @see MSysapCallback::TSysapQuery |
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 |
void ExecQueryL( TSysapQuery aQuery, TDes8& aReturn, const TDesC8& aParam ); |
46 | 180 |
|
181 |
// private: |
|
182 |
/** |
|
183 |
* EPOC default constructor. |
|
184 |
* @param None |
|
185 |
* @return void |
|
186 |
*/ |
|
51 | 187 |
|
188 |
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
189 |
void |
|
190 |
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
191 |
TBool |
|
192 |
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION |
|
193 |
ShowAnimationL(); |
|
194 |
||
195 |
void PrepareForShutdownAnimation(); |
|
196 |
||
46 | 197 |
public: |
198 |
void ConstructL(); |
|
199 |
||
200 |
private: // from CEikAppUi |
|
201 |
/** |
|
202 |
* Handles a change to the application's resources which are shared across the environment. |
|
203 |
* |
|
204 |
* @since S60 3.1 |
|
205 |
* @param aType The type of resources that have changed. |
|
206 |
* @return None. |
|
207 |
*/ |
|
208 |
// void HandleResourceChangeL(TInt aType); |
|
209 |
||
210 |
private: |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
211 |
/** |
46 | 212 |
* Takes care of command handling. |
213 |
* @param aCommand command to be handled |
|
214 |
* @return void |
|
215 |
*/ |
|
216 |
void HandleCommandL( TInt aCommand); |
|
217 |
||
218 |
/** |
|
219 |
* handles key events |
|
220 |
* @param TKeyEvent& aKeyEvent |
|
221 |
* @param TEventCode aType |
|
222 |
* @return TKeyResponse |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
223 |
*/ |
46 | 224 |
TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
51 | 225 |
void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent); |
46 | 226 |
|
227 |
public: |
|
228 |
// void CallFromMain(); |
|
229 |
||
230 |
/** |
|
231 |
* Returns the state of keylock |
|
232 |
* @param none |
|
233 |
* @return TBool the state of keylock |
|
234 |
*/ |
|
235 |
TBool KeyLockState() const; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
236 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
237 |
/** |
46 | 238 |
* Returns the state of devicelock |
239 |
* @param none |
|
240 |
* @return TBool the state of devicelock |
|
241 |
*/ |
|
242 |
TBool DeviceLockState() const; |
|
243 |
||
244 |
/** |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
245 |
* Returns reference to SysAp's internal feature manager. |
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 |
* @since S60 3.1 |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
248 |
* @return CSysApFeatureManager& |
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 |
CSysApFeatureManager& SysApFeatureManager(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
251 |
|
46 | 252 |
/* |
253 |
* Called by SysApLightsController when the lights are switced on/off |
|
254 |
* @param aActivate If ETrue forwarding is activated, otherwise deactivated |
|
255 |
* @return void |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
256 |
*/ |
46 | 257 |
void ActivateKeyeventForwardingForLights(TBool aActivate); |
258 |
||
259 |
TBool IsEncryptionOperationOngoingL() const; |
|
260 |
// void ConnectToFileServerL(); |
|
261 |
// void ConnectToWindowServerL(); |
|
262 |
void ShowExampleUiNoteL ( const TDesC& noteText )const; |
|
263 |
void ShowNotificationDialog(const TDesC& noteText)const; |
|
264 |
void PopupNote(); |
|
265 |
// void CreateWindowGroup(); |
|
266 |
TBool ResourcesFreed() const; |
|
267 |
void ShowUiNoteL( const TSysApNoteIds aNote ) const; |
|
268 |
TInt StateOfProperty( const TUid& aCategory, const TUint aKey ) const; |
|
269 |
TBool OfflineModeActive(); |
|
270 |
void GoOnlineL( TBool aDoProfileChange = ETrue ); |
|
271 |
void GoOfflineL(); |
|
272 |
void SwitchFromOnlineToOfflineModeL(); |
|
273 |
||
274 |
void DoStateChangedL( const RStarterSession::TGlobalState aSwState ); |
|
275 |
TInt SetStarterState( const RStarterSession::TGlobalState aState ); |
|
276 |
TInt BluetoothPowerMode() const; |
|
277 |
void SetNetworkConnectionAllowed( TCoreAppUIsNetworkConnectionAllowed aNetworkConnectionAllowed ); |
|
278 |
RStarterSession& StarterSession(); |
|
279 |
TInt SetBtPowerState( TBool aBtState ); |
|
280 |
TBool SimSupported(); |
|
281 |
TBool BtSapEnabled(); |
|
282 |
void OfflineModeChangedL(); |
|
283 |
TBool UiReady() const; |
|
284 |
void DoShutdownL( const TBool aReset, const TInt aResetReason ); |
|
285 |
TBool IsDeviceModeKey( const TKeyEvent& aKeyEvent ) const; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
286 |
void SetUsbAttachStatus( const TBool aUsbAttached ); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
287 |
TSysApUsbChargerDetector& UsbChargerDetector(); |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
288 |
|
51 | 289 |
void HandleAccessoryConnectedL( TAccMode aAccessoryState, TInt aPhysicalConnectionType ); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
290 |
|
46 | 291 |
void HandleAccessoryDisconnectedL(); |
292 |
void DoLightsTimeoutChangedL( const TInt aTimeout ); |
|
293 |
void SetHacIndicatorL(); |
|
294 |
void DoNotActivateBt(); |
|
295 |
void SetIhfIndicatorL(); |
|
296 |
void HandleLongPowerKeyPressedL(); |
|
297 |
void IgnoreZeroNetworkBarNotifications(TBool aIgnore); |
|
298 |
void InitCloseSimApplicationsL(); |
|
299 |
void CloseSimApplicationsL(); |
|
300 |
void DoSimChangedFromPreviousBootL(); |
|
301 |
void ShowAlarmIndicatorL( TBool aShowIndicator ); |
|
302 |
void AlertUiAlertingL( const TBool aAlerting ); |
|
303 |
void HandleForcedLightsVTRequireL( const TInt aLightsParameter ) const; |
|
304 |
void HandleForcedLightsSSRequireL( const TInt aLightsParameter ) const; |
|
305 |
void HandleForcedLightsATCRequireL( const TInt aLightsParameter ) const; |
|
306 |
void HandleLightsRequireL() const; |
|
307 |
void AlertUiKeyLockOff( const TBool aKeyLockOff ); |
|
308 |
void DoNotEnableKeylock(); |
|
309 |
void SwitchLightsOnSoftRejectL(); |
|
310 |
void SetDeviceLockEnabledL( const TBool aLockEnabled ); |
|
311 |
void HandleBatteryStatusL( const TInt aValue ); |
|
312 |
void BatteryEmptyL(); |
|
313 |
void ShowQueryL( const TSysApConfirmationQueryIds aQueryId, |
|
314 |
const TDesC& aValue = KNullDesC ); |
|
315 |
void HandleChargingStatusL( const TInt aValue ); |
|
316 |
void HandleChargerNotesL( const TInt aValue ); |
|
317 |
void UpdateBatteryBarsL( const TInt aState ); |
|
318 |
void ShowChargingNoteL(); |
|
319 |
void HandleCurrentCallStateChangeL( TInt aCurrentCallState ); |
|
320 |
TBool IsEmergencyCall(); |
|
321 |
CSysApCenRepController& CenRepController(); |
|
322 |
void HandleWlanIndicatorL( TInt aValue ); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
323 |
|
46 | 324 |
void SetKeyLockEnabledL(); |
325 |
void SetKeyLockDisabledL(); |
|
326 |
void SetLightsOnUnlockNoteL(); |
|
327 |
void SetLightsOnEcsQueryL(); |
|
328 |
void SetLightsOnSecurityQueryL(); |
|
329 |
TBool CheckLongPowerKeyPressed(); |
|
330 |
TBool ReleasePowerMenuCustomDialogMemory(); |
|
51 | 331 |
// TBool ReleaseMemoryCardCustomDialogMemory(); |
332 |
static TInt DoStopAnimTiming( TAny* aObject ); |
|
333 |
CEikStatusPane* StatusPane(); |
|
46 | 334 |
|
335 |
#ifdef SYSAP_USE_STARTUP_UI_PHASE |
|
336 |
/** |
|
337 |
* Called when UI is ready after boot. |
|
338 |
*/ |
|
339 |
void HandleUiReadyAfterBootL(); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
340 |
|
46 | 341 |
#endif // SYSAP_USE_STARTUP_UI_PHASE |
342 |
||
51 | 343 |
|
344 |
||
345 |
void HandleNspsRawKeyEventL(); |
|
346 |
||
347 |
void HandleNetworkNspsNotification( RMmCustomAPI::TNspsStatus aNspsStatus ); |
|
348 |
||
349 |
void HandleRawKeyEventLightsRequireL() const; |
|
350 |
||
351 |
void HandleSmsStorageNotificationL( TBool aSimStoreFull ); |
|
352 |
||
353 |
void UpdateSignalBarsL(); |
|
354 |
||
355 |
||
356 |
||
46 | 357 |
private: |
358 |
/** |
|
359 |
* Frees SysAp's reserved memory, closes connections to servers etc. |
|
360 |
* @param None |
|
361 |
* @return void |
|
362 |
*/ |
|
363 |
void FreeResources(); |
|
364 |
TBool OkToInitiateShutdown(); |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
365 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
366 |
|
46 | 367 |
void CompleteShutdown( const TBool aReset = EFalse, const TInt aResetReason = KDummyReason ); |
368 |
void PrepareForShutdownImage(); |
|
369 |
TInt ShowShutdownImage( TInt aBitmapId ); |
|
370 |
void ShowShutdownImageL( TInt aBitmapId ); |
|
371 |
TBool IhfEnabledL(); |
|
372 |
void DoSwStateNormalConstructionL(); |
|
373 |
static TInt DoCloseSimApplicationsAfterCallBack( TAny* aObject ); |
|
374 |
||
375 |
// from MSysApPsmControllerNotifyCallback |
|
376 |
void NotifyPowerSaveModeL( TSysApPsmStatus aStatus ); |
|
377 |
||
378 |
void HandleUsbCharger( const TInt aValue ); |
|
379 |
TBool IsStateNormal() const; |
|
380 |
void HandleAccessoryProfileInStartupL( ); |
|
381 |
||
382 |
CSysApCenRepLogsObserver& CSysApAppUi::LogsObserverL(); |
|
51 | 383 |
void ContinueShutdown(); |
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
384 |
|
46 | 385 |
|
386 |
private: |
|
387 |
// CSysApWsClient* iSysApWsClient; |
|
388 |
CSysApLightsController* iSysApLightsController; |
|
389 |
CSysApFeatureManager* iSysApFeatureManager; |
|
390 |
CSysApNspsHandler* iSysApNspsHandler; |
|
391 |
CSysApPubSubObserver* iSysApPubSubObserver; |
|
392 |
||
393 |
CSysApDefaultKeyHandler* iSysApDefaultKeyHandler; |
|
394 |
// RWindowGroup groupWin; |
|
395 |
CSysApStartupController* iSysApStartupController; |
|
396 |
MSysApOfflineModeController* iSysApOfflineModeController; |
|
397 |
RStarterSession iStarterSession; |
|
398 |
TSysApUsbChargerDetector iSysApUsbChargerDetector; |
|
399 |
CSysApAccessoryObserver* iSysApAccessoryObserver; |
|
400 |
CSysApShutdownImage* iSysApShutdownImage; |
|
51 | 401 |
CSysApShutdownAnimation* iSysApShutdownAnimation; |
46 | 402 |
CSysApKeySndHandler* iSysApKeySndHandler; |
403 |
CSysApCenRepController* iSysApCenRepController; |
|
404 |
CSysApCenRepLightSettingsObserver* iSysApCenRepLightSettingsObserver; |
|
405 |
CSysApCenRepBtObserver* iSysApCenRepBtObserver; |
|
406 |
CSysApCenRepHacSettingObserver* iSysApCenRepHacSettingObserver; |
|
407 |
||
408 |
CSysApAudioRoutingObserver* iSysApAudioRoutingObserver; |
|
409 |
CSysApPsmController* iSysApPsmController; |
|
410 |
CHbSymbianVariant* iVariantAccState ; |
|
411 |
CSysApSsSettingsObserver* iSysApSsSettingsObserver; |
|
412 |
CSystemLock* iSysApSystemLock; |
|
413 |
CSysApCenRepCallForwardingObserver* iSysApCenRepCallForwardingObserver; |
|
414 |
CSysApBatteryInfoController* iSysApBatteryInfoController; |
|
415 |
MSysApBtSapController* iSysApBtSapController; |
|
416 |
CPeriodic* iSapTimer; |
|
417 |
MSysApBtController* iSysApBtController; |
|
418 |
CSysApCenRepLogsObserver* iSysApCenRepLogsObserver; |
|
419 |
MSysApUsbIndicator* iSysApUsbIndicatorController; |
|
420 |
CKeyguardAccessApi* iKeyguardController; |
|
421 |
CHbDevicePowerMenuSymbian* iPowerMenuDialog; |
|
422 |
CSysApKeyManagement* iSysApKeyManagement; |
|
51 | 423 |
|
424 |
CSysApEtelConnector* iSysApEtelConnector; |
|
46 | 425 |
|
51 | 426 |
public: |
427 |
CHbIndicatorSymbian* iHbIndicatorSymbian; |
|
428 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
429 |
|
46 | 430 |
private: |
431 |
TBool iPowerKeyPopupMenuActive; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
432 |
TBool iDeviceLockEnabled; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
433 |
TBool iKeyLockEnabled; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
434 |
TBool iKeyLockOnBeforeCall; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
435 |
TBool iKeyLockOnBeforeAlarm; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
436 |
TBool iKeyLockOnBeforeCradle; |
46 | 437 |
TBool iResourcesFreed; |
438 |
TInt iCapturedEKeyPowerOff; |
|
439 |
TInt iCapturedEKeyPowerOffUpAndDowns; |
|
440 |
TBool iOfflineModeActive; |
|
441 |
TBool iShutdownStarted; |
|
442 |
||
443 |
TBool iIgnoreNextPowerKeyUpEvent; // need to be added this flag in maliks client side apis. |
|
444 |
TBool iLastPowerKeyWasShort; |
|
445 |
TBool iPowerKeyPopupMenuDismissed; // need to be added this flag in malik implementation. |
|
446 |
TInt iKeyBoardRepeatCount; |
|
447 |
TBool iIgnoreNextPowerKeyRepeats; |
|
448 |
TInt iActiveProfileBeforeOfflineMode; |
|
449 |
||
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
450 |
TBool iSimChangedDone; |
46 | 451 |
TBool iIgnoreZeroNetworkBarNotifications; |
452 |
TInt iApplicationScanningRoundNumberInBtSap; |
|
453 |
TBool iTimeToKillInBtSap; |
|
454 |
TBool iShowkeypadActivatedNoteAfterSoftReject; |
|
455 |
TBool iCharging; // Indicates if charging is currently on |
|
456 |
TBool iEmergencyCallActive; |
|
457 |
TBool iCallActivated; // used in defining whether to show GPRS suspended note |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
458 |
|
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
459 |
TBool iActivateBt; |
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
460 |
TBool iDeactivateBt; |
46 | 461 |
|
462 |
TBool iIgnoreAccessorySpecificProfileChanges; |
|
463 |
TBool iCheckLongPowerKeyEvent; |
|
51 | 464 |
TInt iCapturedAppskey; |
465 |
TInt iCapturedAppskeyUpAndDowns; |
|
466 |
TBool iShutdownContinued; |
|
467 |
TBool iNsps; |
|
0
2e3d3ce01487
Revision: 201002
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
468 |
|
46 | 469 |
// friend class CSysApWsClient; |
470 |
}; |
|
471 |
||
472 |
#endif |