23 #include <coreapplicationuisdomainpskeys.h> |
23 #include <coreapplicationuisdomainpskeys.h> |
24 #include <bautils.h> |
24 #include <bautils.h> |
25 #include <eikenv.h> |
25 #include <eikenv.h> |
26 #include <data_caging_path_literals.hrh> |
26 #include <data_caging_path_literals.hrh> |
27 |
27 |
|
28 #include "ConnectionDialogsLogger.h" |
28 #include "ConnectionDialogsNotifBase.h" |
29 #include "ConnectionDialogsNotifBase.h" |
|
30 |
|
31 #ifdef _DEBUG |
|
32 #include <e32debug.h> |
|
33 #endif |
29 |
34 |
30 // CONSTANTS |
35 // CONSTANTS |
31 |
36 |
32 // ROM folder |
37 // ROM folder |
33 _LIT( KDriveZ, "z:" ); |
38 _LIT( KDriveZ, "z:" ); |
155 // |
160 // |
156 TBool CConnectionDialogsNotifBase::AutolockOn() |
161 TBool CConnectionDialogsNotifBase::AutolockOn() |
157 { |
162 { |
158 TBool retval( EFalse ); |
163 TBool retval( EFalse ); |
159 |
164 |
|
165 CLOG_ENTERFN( "CConnectionDialogsNotifBase::AutolockOn" ); |
|
166 |
160 #ifdef RD_STARTUP_CHANGE |
167 #ifdef RD_STARTUP_CHANGE |
161 TInt err( KErrNone ); |
168 TInt err( KErrNone ); |
162 TInt autolockOn( 0 ); |
169 TInt autolockOn( 0 ); |
163 // Cancel the dialog if screen saver is on. |
170 // Cancel the dialog if screen saver is on. |
164 err = RProperty::Get( KPSUidCoreApplicationUIs, |
171 err = RProperty::Get( KPSUidCoreApplicationUIs, |
165 KCoreAppUIsAutolockStatus, |
172 KCoreAppUIsAutolockStatus, |
166 autolockOn ); |
173 autolockOn ); |
167 retval = (err == KErrNone && autolockOn > EAutolockOff); |
174 // In boot there may come EAutolockStatusUninitialized, when it should be EAutolockOn... |
|
175 retval = (err == KErrNone && autolockOn != EAutolockOff); |
|
176 |
|
177 #ifdef _DEBUG |
|
178 RDebug::Print( _L("CConnectionDialogsNotifBase::AutolockOn: autolockOn: %d"), autolockOn ); |
|
179 RDebug::Print( _L("CConnectionDialogsNotifBase::AutolockOn: err: %d"), err ); |
|
180 RDebug::Print( _L("CConnectionDialogsNotifBase::AutolockOn: %d"), retval ); |
168 #endif |
181 #endif |
|
182 |
|
183 #endif // RD_STARTUP_CHANGE |
|
184 |
|
185 CLOG_LEAVEFN( "CConnectionDialogsNotifBase::AutolockOn" ); |
169 |
186 |
170 return retval; |
187 return retval; |
171 } |
188 } |
172 |
189 |
173 |
190 |