cryptoservices/filebasedcertificateandkeystores/test/certtool/certtool_remove.cpp
changeset 29 ece3df019add
parent 8 35751d3474b7
equal deleted inserted replaced
19:cd501b96611d 29:ece3df019add
    77 				}			
    77 				}			
    78 			}
    78 			}
    79 			break;
    79 			break;
    80 		case EFinished:
    80 		case EFinished:
    81 			{
    81 			{
    82 			// We are done!
    82 
    83 			iController->DisplayLocalisedMsgL(R_CERTTOOL_ERR_REMOVE_SUCCESS);			
    83 			User::LeaveIfError(iStatus.Int());
       
    84 
       
    85 		     // We are done!
       
    86 		    iController->DisplayLocalisedMsgL(R_CERTTOOL_ERR_REMOVE_SUCCESS);   
       
    87 			 		
    84 			CActiveScheduler::Stop();
    88 			CActiveScheduler::Stop();
    85 			}
    89 			}
    86 			break;
    90 			break;
    87 		default:
    91 		default:
    88 			{
    92 			{
    89 			User::Panic(_L("REMOVE action: Illegal state."), 1);					
    93 			User::Panic(_L("REMOVE action: Illegal state."), 1);					
    90 			}			
    94 			}			
    91 		}
    95 		}
    92 	}
    96 	}
    93 
    97 
       
    98 TInt CCertToolRemove::RunError(TInt aError)
       
    99     {
       
   100     CActiveScheduler::Stop();
       
   101 
       
   102     switch (aError)
       
   103         {
       
   104         case KErrNotFound :
       
   105             {
       
   106             TRAP_IGNORE(iController->DisplayLocalisedMsgL(R_CERTTOOL_ERR_NOTFOUND));         
       
   107             }
       
   108             break;
       
   109         default:
       
   110             {
       
   111             TRAP_IGNORE(iController->DisplayLocalisedMsgL(R_CERTTOOL_ERR_REMOVE_FAILURE, aError));                
       
   112             }
       
   113         }   
       
   114 
       
   115 	TRAP_IGNORE(iController->DisplayErrorL(_L("\n"), iParams->iPageWise));  
       
   116     return KErrNone;        
       
   117     }
       
   118