cryptoservices/filebasedcertificateandkeystores/test/keytool/keytool_engine.cpp
changeset 8 35751d3474b7
parent 0 2c201484c85f
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
    54 	if (iActiveStarted)
    54 	if (iActiveStarted)
    55 		{
    55 		{
    56 		delete iScheduler;
    56 		delete iScheduler;
    57 		}	
    57 		}	
    58 	iInitialized = EFalse;
    58 	iInitialized = EFalse;
       
    59 #ifdef KEYTOOL
       
    60 	delete iMigrateStoreHandler;
       
    61 #endif // KEYTOOL
    59 	}
    62 	}
    60 	
    63 	
    61 void CKeyToolEngine::ConstructL()
    64 void CKeyToolEngine::ConstructL()
    62 	{
    65 	{
    63 	iActiveStarted = EFalse;
    66 	iActiveStarted = EFalse;
   228 	iParam = aParam;
   231 	iParam = aParam;
   229 	iCurrentAction = ESetPolicy;
   232 	iCurrentAction = ESetPolicy;
   230 	iHandler = CKeytoolSetPolicy::NewL(iController);	
   233 	iHandler = CKeytoolSetPolicy::NewL(iController);	
   231 	InitializeL();
   234 	InitializeL();
   232 	}
   235 	}
       
   236 
       
   237 #ifdef KEYTOOL
       
   238 
       
   239 void CKeyToolEngine::MigrateStoreL(CKeyToolParameters* aParams)
       
   240 	{
       
   241 	iParam = aParams;
       
   242 	iMigrateStoreHandler = CKeytoolMigrateStore::NewL(aParams);	
       
   243 	iMigrateStoreHandler->DoCommandL();
       
   244 	}
       
   245 
       
   246 #endif // KEYTOOL