1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-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". |
366 // component on a phone. This is because the reference package file carries only the list of the files to be installed |
366 // component on a phone. This is because the reference package file carries only the list of the files to be installed |
367 // without the files themselves. A real installer should use the size of the files to be installed. |
367 // without the files themselves. A real installer should use the size of the files to be installed. |
368 const TInt KExampleFileSize = 1024; |
368 const TInt KExampleFileSize = 1024; |
369 const TInt maxInstalledSize = iParser->Files().Count() * KExampleFileSize; |
369 const TInt maxInstalledSize = iParser->Files().Count() * KExampleFileSize; |
370 const TBool hasExe = EFalse; |
370 const TBool hasExe = EFalse; |
|
371 const TBool driveSelectionRequired = EFalse; |
|
372 RPointerArray<Usif::CComponentInfo::CApplicationInfo>* applications = NULL; |
371 // The example capabilities below are hardcoded due to the same reason. The reference package file doesn't contain |
373 // The example capabilities below are hardcoded due to the same reason. The reference package file doesn't contain |
372 // user grantable capabilities but a real package file should provide them. |
374 // user grantable capabilities but a real package file should provide them. |
373 TCapabilitySet userGrantableCaps(ECapabilityReadUserData, ECapabilityWriteUserData); |
375 TCapabilitySet userGrantableCaps(ECapabilityReadUserData, ECapabilityWriteUserData); |
374 |
376 |
375 // Create a ComponentInfo node and set it as a root node. |
377 // Create a ComponentInfo node and set it as a root node. |
376 CComponentInfo::CNode* compInfoNode = CComponentInfo::CNode::NewLC(InstallHelper::KSifReferenceSoftwareType, |
378 CComponentInfo::CNode* compInfoNode = CComponentInfo::CNode::NewLC(InstallHelper::KSifReferenceSoftwareType, |
377 *iCompSearchData.iName, iCompSearchData.iVersion, *iCompSearchData.iVendor, |
379 *iCompSearchData.iName, iCompSearchData.iVersion, *iCompSearchData.iVendor, |
378 iCompSearchData.iScomoState, iCompSearchData.iInstallStatus, iCompSearchData.iComponentId, |
380 iCompSearchData.iScomoState, iCompSearchData.iInstallStatus, iCompSearchData.iComponentId, |
379 *iCompSearchData.iName, ENotAuthenticated, userGrantableCaps, maxInstalledSize, hasExe); |
381 *iCompSearchData.iName, ENotAuthenticated, userGrantableCaps, maxInstalledSize, hasExe, driveSelectionRequired, applications); |
380 |
382 |
381 auxNode.SetNodeL(compInfoNode); |
383 auxNode.SetNodeL(compInfoNode); |
382 CleanupStack::Pop(compInfoNode); |
384 CleanupStack::Pop(compInfoNode); |
383 } |
385 } |
384 |
386 |