securitydialogs/SecUi/Src/SecUiSecuritySettings.cpp
branchRCL_3
changeset 5 3b17fc5c9564
parent 0 164170e6151a
child 8 ece4bbb094df
equal deleted inserted replaced
1:d5423fbb4f29 5:3b17fc5c9564
   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     TBool allow = ETrue;               
       
   999                
       
  1000     if ((aPeriod == 0) && (maxPeriod > 0))
       
  1001        {
       
  1002         #if defined(_DEBUG)
       
  1003         RDebug::Print(_L("(SECUI)CSecuritySettings::ChangeAutoLockPeriodL() \
       
  1004         The period: %d is not allowed by TARM; max: %d"),aPeriod, maxPeriod );
       
  1005         #endif                
       
  1006         allow = EFalse;                                                
       
  1007         HBufC* prompt;
       
  1008         prompt = StringLoader::LoadLC( R_SECUI_TEXT_AUTOLOCK_MUST_BE_ACTIVE );
       
  1009         CAknNoteDialog* noteDlg = new (ELeave) CAknNoteDialog( REINTERPRET_CAST(CEikDialog**,&noteDlg) );
       
  1010         noteDlg->PrepareLC( R_CODE_ERROR );
       
  1011         noteDlg->SetTextL( *prompt );
       
  1012         noteDlg->SetTimeout( CAknNoteDialog::ELongTimeout );
       
  1013         noteDlg->SetTone( CAknNoteDialog::EErrorTone );
       
  1014         noteDlg->RunLD();                    
       
  1015                     
       
  1016         CleanupStack::PopAndDestroy( prompt );                      
       
  1017         }          
       
  1018         
       
  1019     if ( !allow ) 
       
  1020         {
       
  1021          return ChangeAutoLockPeriodL( oldPeriod );
       
  1022         }                       
       
  1023   }
       
  1024 
   996 
  1025     if (aPeriod == 0)
   997     if (aPeriod == 0)
  1026         {
   998         {
  1027         
   999         
  1028         #ifdef RD_REMOTELOCK
  1000         #ifdef RD_REMOTELOCK