installationservices/swidevicetools/source/swicertstoretool/CSWICertStoreTool.cpp
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2006-2009 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); |
|
404 for (TInt index = 0 ; ; ++index) |
403 for (TInt index = 0 ; ; ++index) |
405 { |
404 { |
406 const CTestConfigItem* item = aSection.Item(KItemApplication, index); |
405 const CTestConfigItem* item = aSection.Item(KItemApplication, index); |
407 if (item == NULL) |
406 if (item == NULL) |
408 { |
407 { |
423 if (aApplications.Count() == 0) |
422 if (aApplications.Count() == 0) |
424 { |
423 { |
425 LogL(KLogNoApplications); |
424 LogL(KLogNoApplications); |
426 User::Leave(KErrArgument); |
425 User::Leave(KErrArgument); |
427 } |
426 } |
428 CleanupStack::Pop(&aApplications); |
|
429 } |
427 } |
430 |
428 |
431 void CSWICertStoreTool::OpenInputFileL(const TDesC& aInputFile) |
429 void CSWICertStoreTool::OpenInputFileL(const TDesC& aInputFile) |
432 { |
430 { |
433 iScript = CTestConfig::NewLC(iFs, KSWICertStoreToolName, aInputFile); |
431 iScript = CTestConfig::NewLC(iFs, KSWICertStoreToolName, aInputFile); |