installationservices/swidevicetools/source/swicertstoretool/CSWICertStoreTool.cpp
branchRCL_3
changeset 34 741e5bba2bd1
parent 0 ba25891c3a9e
child 65 7333d7932ef7
equal deleted inserted replaced
28:98a43fae6e2b 34:741e5bba2bd1
     1 /*
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   398 	return capabilities;
   398 	return capabilities;
   399 	}
   399 	}
   400 
   400 
   401 void CSWICertStoreTool::ParseApplicationsL(const CTestConfigSection& aSection, RArray<TUid>& aApplications)
   401 void CSWICertStoreTool::ParseApplicationsL(const CTestConfigSection& aSection, RArray<TUid>& aApplications)
   402 	{
   402 	{
       
   403 	CleanupClosePushL(aApplications);
   403 	for (TInt index = 0 ; ; ++index)
   404 	for (TInt index = 0 ; ; ++index)
   404 		{
   405 		{
   405 		const CTestConfigItem* item = aSection.Item(KItemApplication, index);
   406 		const CTestConfigItem* item = aSection.Item(KItemApplication, index);
   406 		if (item == NULL)
   407 		if (item == NULL)
   407 			{
   408 			{
   422 	if (aApplications.Count() == 0)
   423 	if (aApplications.Count() == 0)
   423 		{
   424 		{
   424 		LogL(KLogNoApplications);
   425 		LogL(KLogNoApplications);
   425 		User::Leave(KErrArgument);
   426 		User::Leave(KErrArgument);
   426 		}
   427 		}
       
   428 	CleanupStack::Pop(&aApplications);
   427 	}
   429 	}
   428 
   430 
   429 void CSWICertStoreTool::OpenInputFileL(const TDesC& aInputFile)
   431 void CSWICertStoreTool::OpenInputFileL(const TDesC& aInputFile)
   430 	{
   432 	{
   431 	iScript = CTestConfig::NewLC(iFs, KSWICertStoreToolName, aInputFile);
   433 	iScript = CTestConfig::NewLC(iFs, KSWICertStoreToolName, aInputFile);