equal
deleted
inserted
replaced
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". |
491 rootApplication->AddEmbeddedApplicationL(child); |
491 rootApplication->AddEmbeddedApplicationL(child); |
492 CleanupStack::Pop(child); |
492 CleanupStack::Pop(child); |
493 } |
493 } |
494 |
494 |
495 UpdateAppForUninstallL(*rootApplication, aRootNode); |
495 UpdateAppForUninstallL(*rootApplication, aRootNode); |
|
496 if(!(Swi::SecUtils::IsPackageUidPresent(aRootNode.PackageL().Uid(), iUidList))) |
|
497 { |
|
498 TInt err = SecUtils::PublishPackageUid(aRootNode.PackageL().Uid(), iUidList); |
|
499 if(err==KErrNone) |
|
500 { |
|
501 DEBUG_PRINTF2(_L("CPlanner::CreatePlannedApplicationL published Uid is %x."),aRootNode.PackageL().Uid()); |
|
502 } |
|
503 else if(err == KErrOverflow) |
|
504 { |
|
505 DEBUG_PRINTF2(_L("CPlanner::CreatePlannedApplicationL failed to publish Uid %x as the array, holding the uids, exceeded its upper limit."),aRootNode.PackageL().Uid()); |
|
506 } |
|
507 else if(err == KErrNotFound) |
|
508 { |
|
509 DEBUG_PRINTF2(_L("CPlanner::CreatePlannedApplicationL failed to publish Uid %x as the property is not defined."),aRootNode.PackageL().Uid()); |
|
510 } |
|
511 else |
|
512 { |
|
513 DEBUG_PRINTF3(_L("CPlanner::CreatePlannedApplicationL failed to publish Uid %x with error."),aRootNode.PackageL().Uid(), err); |
|
514 User::Leave(err); |
|
515 } |
|
516 } |
496 CleanupStack::Pop(rootApplication); |
517 CleanupStack::Pop(rootApplication); |
497 |
518 |
498 return rootApplication; |
519 return rootApplication; |
499 } |
520 } |
500 |
521 |