# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1279211810 -10800 # Node ID 94b923fa11ed6c85606b6f1f8c25d673c70254a7 # Parent 2ca12c9f635bdacf650468220121be9e17044c1e Revision: 201025 Kit: 2010127 diff -r 2ca12c9f635b -r 94b923fa11ed securitydialogs/Autolock/src/AutolockAppUi.cpp --- 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(); } // ---------------------------------------------------- diff -r 2ca12c9f635b -r 94b923fa11ed securitydialogs/SecUi/Src/SecUiSecuritySettings.cpp --- 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) { diff -r 2ca12c9f635b -r 94b923fa11ed securitydialogs/simlockui/group/SimLockUI.mmp --- 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 #include -CAPABILITY ALL -TCB +CAPABILITY CAP_APPLICATION TARGETPATH /sys/bin TARGET simlockui.exe