securitydialogs/SecUi/Src/SecUiSecuritySettings.cpp
branchRCL_3
changeset 8 ece4bbb094df
parent 5 3b17fc5c9564
child 19 94b923fa11ed
equal deleted inserted replaced
7:6e226572c5f0 8:ece4bbb094df
   255     iWait->SetRequestType(EMobilePhoneGetSecurityCodeInfo);
   255     iWait->SetRequestType(EMobilePhoneGetSecurityCodeInfo);
   256     iPhone.GetSecurityCodeInfo(iWait->iStatus, secCodeType, codeInfoPkg);
   256     iPhone.GetSecurityCodeInfo(iWait->iStatus, secCodeType, codeInfoPkg);
   257     res = iWait->WaitForRequestL();
   257     res = iWait->WaitForRequestL();
   258     User::LeaveIfError(res);
   258     User::LeaveIfError(res);
   259     // ask pin
   259     // ask pin
   260     if(codeInfo.iRemainingEntryAttempts == KMaxNumberOfPINAttempts)
   260     if( codeInfo.iRemainingEntryAttempts >= KMaxNumberOfPINAttempts )
   261             res = dlg->ExecuteLD(R_PIN_QUERY);
   261             res = dlg->ExecuteLD(R_PIN_QUERY);
   262     else if(codeInfo.iRemainingEntryAttempts > KLastRemainingInputAttempt)
   262     else if(codeInfo.iRemainingEntryAttempts > KLastRemainingInputAttempt)
   263        {
   263        {
   264          HBufC* queryPrompt = StringLoader::LoadLC(R_SECUI_REMAINING_PIN_ATTEMPTS, codeInfo.iRemainingEntryAttempts);
   264          HBufC* queryPrompt = StringLoader::LoadLC(R_SECUI_REMAINING_PIN_ATTEMPTS, codeInfo.iRemainingEntryAttempts);
   265          res = dlg->ExecuteLD(R_PIN_QUERY, *queryPrompt);
   265          res = dlg->ExecuteLD(R_PIN_QUERY, *queryPrompt);
   429         iWait->SetRequestType(EMobilePhoneGetSecurityCodeInfo);
   429         iWait->SetRequestType(EMobilePhoneGetSecurityCodeInfo);
   430         iPhone.GetSecurityCodeInfo(iWait->iStatus, secCodeType, codeInfoPkg);
   430         iPhone.GetSecurityCodeInfo(iWait->iStatus, secCodeType, codeInfoPkg);
   431         res = iWait->WaitForRequestL();
   431         res = iWait->WaitForRequestL();
   432         User::LeaveIfError(res);
   432         User::LeaveIfError(res);
   433             
   433             
   434         if(codeInfo.iRemainingEntryAttempts == KMaxNumberOfPINAttempts)
   434         if( codeInfo.iRemainingEntryAttempts >= KMaxNumberOfPINAttempts )
   435             res = dlg->ExecuteLD(R_UPIN_QUERY);
   435             res = dlg->ExecuteLD(R_UPIN_QUERY);
   436         else if(codeInfo.iRemainingEntryAttempts > KLastRemainingInputAttempt)
   436         else if(codeInfo.iRemainingEntryAttempts > KLastRemainingInputAttempt)
   437             {
   437             {
   438               HBufC* queryPrompt = StringLoader::LoadLC(R_SECUI_REMAINING_UPIN_ATTEMPTS, codeInfo.iRemainingEntryAttempts);
   438               HBufC* queryPrompt = StringLoader::LoadLC(R_SECUI_REMAINING_UPIN_ATTEMPTS, codeInfo.iRemainingEntryAttempts);
   439               res = dlg->ExecuteLD(R_UPIN_QUERY, *queryPrompt);
   439               res = dlg->ExecuteLD(R_UPIN_QUERY, *queryPrompt);