1 /* |
1 /* |
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2004-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". |
31 #include "application.h" |
31 #include "application.h" |
32 #include "userselections.h" |
32 #include "userselections.h" |
33 #include "siscontentprovider.h" |
33 #include "siscontentprovider.h" |
34 #include "sishelperclient.h" |
34 #include "sishelperclient.h" |
35 #include "securitypolicy.h" |
35 #include "securitypolicy.h" |
|
36 #include "secutils.h" |
36 |
37 |
37 #include <swi/msisuihandlers.h> |
38 #include <swi/msisuihandlers.h> |
38 |
39 |
39 #include "sisinstallblock.h" |
40 #include "sisinstallblock.h" |
40 #include "sisproperties.h" |
41 #include "sisproperties.h" |
1066 } |
1067 } |
1067 |
1068 |
1068 // Process the actual controller, then return the application |
1069 // Process the actual controller, then return the application |
1069 ProcessInstallBlockL(aController.InstallBlock(), *application, aFilesToCapabilityCheck, *filesList); |
1070 ProcessInstallBlockL(aController.InstallBlock(), *application, aFilesToCapabilityCheck, *filesList); |
1070 |
1071 |
|
1072 //Publishing the UID of the associated package. |
|
1073 TUid publishUid = aController.Info().Uid().Uid(); |
|
1074 if(!(Swi::SecUtils::IsPackageUidPresent(publishUid, iUidList))) |
|
1075 { |
|
1076 TInt err = Swi::SecUtils::PublishPackageUid(publishUid, iUidList); |
|
1077 if(err == KErrNone) |
|
1078 { |
|
1079 DEBUG_PRINTF2(_L("CInstallationPlanner::ProcessControllerL published Uid %x."), publishUid.iUid); |
|
1080 } |
|
1081 else if(err == KErrOverflow) |
|
1082 { |
|
1083 DEBUG_PRINTF2(_L("CInstallationPlanner::ProcessControllerL failed to publish Uid %x as the array, holding the uids, exceeded its upper limit."),publishUid.iUid); |
|
1084 } |
|
1085 else if(err == KErrNotFound) |
|
1086 { |
|
1087 DEBUG_PRINTF2(_L("CInstallationPlanner::ProcessControllerL failed to publish Uid %x as the property is not been defined."),publishUid.iUid); |
|
1088 } |
|
1089 else |
|
1090 { |
|
1091 DEBUG_PRINTF3(_L("CInstallationPlanner::ProcessControllerL failed to publish Uid %x with error %d."),publishUid.iUid, err); |
|
1092 User::Leave(err); |
|
1093 } |
|
1094 } |
|
1095 |
1071 //Append planned controllers list |
1096 //Append planned controllers list |
1072 iFilesFromPlannedControllers.AppendL(filesList); |
1097 iFilesFromPlannedControllers.AppendL(filesList); |
1073 CleanupStack::Pop(filesList); |
1098 CleanupStack::Pop(filesList); |
1074 |
1099 |
1075 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
1100 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |