--- a/securitydialogs/Autolock/src/AutolockAppUi.cpp Mon Jun 21 16:38:39 2010 +0300
+++ b/securitydialogs/Autolock/src/AutolockAppUi.cpp Thu Jul 15 19:36:50 2010 +0300
@@ -992,6 +992,10 @@
RWindowGroup& groupWin=iCoeEnv->RootWin();
iAppKey = groupWin.CaptureKeyUpAndDowns(EStdKeyApplication0, 0, 0); // Capture app key
}
+ // Any orientation change is a waste of battery and triggers unnecesary window events and paining.
+ // Not only that: in landscape the BigRedButton is too small.
+ // Therefore we always stay in portrait. The icon looks much nicer.
+ SetOrientationL( EAppUiOrientationPortrait );
LockSideKeyL();
}
// ----------------------------------------------------
--- a/securitydialogs/SecUi/Src/SecUiSecuritySettings.cpp Mon Jun 21 16:38:39 2010 +0300
+++ b/securitydialogs/SecUi/Src/SecUiSecuritySettings.cpp Thu Jul 15 19:36:50 2010 +0300
@@ -993,6 +993,38 @@
CleanupStack::PopAndDestroy(); // items
+ if ( FeatureManager::FeatureSupported( KFeatureIdSapTerminalControlFw ) )
+ {
+ // define a flag indicating whether disable autolock is allowed.
+ TBool allowDisableAL = ETrue;
+
+ if ( ( aPeriod == 0 ) && ( maxPeriod > 0 ) )
+ {
+ #if defined( _DEBUG )
+ RDebug::Print(
+ _L("(SECUI)CSecuritySettings::ChangeAutoLockPeriodL() \
+ The period: %d is not allowed by TARM; max: %d" ),
+ aPeriod, maxPeriod );
+ #endif
+ allowDisableAL = EFalse;
+ HBufC* prompt = NULL;
+ prompt = StringLoader::LoadLC(
+ R_SECUI_TEXT_AUTOLOCK_MUST_BE_ACTIVE );
+ CAknNoteDialog* noteDlg = new ( ELeave ) CAknNoteDialog(
+ REINTERPRET_CAST( CEikDialog**,¬eDlg ) );
+ noteDlg->PrepareLC( R_CODE_ERROR );
+ noteDlg->SetTextL( *prompt );
+ noteDlg->SetTimeout( CAknNoteDialog::ELongTimeout );
+ noteDlg->SetTone( CAknNoteDialog::EErrorTone );
+ noteDlg->RunLD();
+ CleanupStack::PopAndDestroy( prompt );
+ }
+
+ if ( !allowDisableAL )
+ {
+ return ChangeAutoLockPeriodL( oldPeriod );
+ }
+ }
if (aPeriod == 0)
{
--- a/securitydialogs/simlockui/group/SimLockUI.mmp Mon Jun 21 16:38:39 2010 +0300
+++ b/securitydialogs/simlockui/group/SimLockUI.mmp Thu Jul 15 19:36:50 2010 +0300
@@ -24,7 +24,7 @@
#include "../inc/simlockui.hrh"
#include <data_caging_paths.hrh>
#include <platform_paths.hrh>
-CAPABILITY ALL -TCB
+CAPABILITY CAP_APPLICATION
TARGETPATH /sys/bin
TARGET simlockui.exe