equal
deleted
inserted
replaced
991 return oldPeriod; |
991 return oldPeriod; |
992 } |
992 } |
993 |
993 |
994 CleanupStack::PopAndDestroy(); // items |
994 CleanupStack::PopAndDestroy(); // items |
995 |
995 |
|
996 if ( FeatureManager::FeatureSupported( KFeatureIdSapTerminalControlFw ) ) |
|
997 { |
|
998 // define a flag indicating whether disable autolock is allowed. |
|
999 TBool allowDisableAL = ETrue; |
|
1000 |
|
1001 if ( ( aPeriod == 0 ) && ( maxPeriod > 0 ) ) |
|
1002 { |
|
1003 #if defined( _DEBUG ) |
|
1004 RDebug::Print( |
|
1005 _L("(SECUI)CSecuritySettings::ChangeAutoLockPeriodL() \ |
|
1006 The period: %d is not allowed by TARM; max: %d" ), |
|
1007 aPeriod, maxPeriod ); |
|
1008 #endif |
|
1009 allowDisableAL = EFalse; |
|
1010 HBufC* prompt = NULL; |
|
1011 prompt = StringLoader::LoadLC( |
|
1012 R_SECUI_TEXT_AUTOLOCK_MUST_BE_ACTIVE ); |
|
1013 CAknNoteDialog* noteDlg = new ( ELeave ) CAknNoteDialog( |
|
1014 REINTERPRET_CAST( CEikDialog**,¬eDlg ) ); |
|
1015 noteDlg->PrepareLC( R_CODE_ERROR ); |
|
1016 noteDlg->SetTextL( *prompt ); |
|
1017 noteDlg->SetTimeout( CAknNoteDialog::ELongTimeout ); |
|
1018 noteDlg->SetTone( CAknNoteDialog::EErrorTone ); |
|
1019 noteDlg->RunLD(); |
|
1020 CleanupStack::PopAndDestroy( prompt ); |
|
1021 } |
|
1022 |
|
1023 if ( !allowDisableAL ) |
|
1024 { |
|
1025 return ChangeAutoLockPeriodL( oldPeriod ); |
|
1026 } |
|
1027 } |
996 |
1028 |
997 if (aPeriod == 0) |
1029 if (aPeriod == 0) |
998 { |
1030 { |
999 |
1031 |
1000 #ifdef RD_REMOTELOCK |
1032 #ifdef RD_REMOTELOCK |