installationservices/swi/source/swis/server/restoremachine.cpp
branchRCL_3
changeset 12 7ca52d38f8c3
parent 0 ba25891c3a9e
child 25 7333d7932ef7
--- a/installationservices/swi/source/swis/server/restoremachine.cpp	Fri Mar 12 15:43:14 2010 +0200
+++ b/installationservices/swi/source/swis/server/restoremachine.cpp	Mon Mar 15 12:41:05 2010 +0200
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -37,7 +37,6 @@
 #include "log.h"
 #include "swispubsubdefs.h"
 #include "securitycheckutil.h"
-#include "secutils.h"
 #include "cleanuputils.h"
 #include "sisversion.h"
 #include "sisregistrywritablesession.h"
@@ -140,6 +139,25 @@
  		{
  		CheckVersionUpgradeL();
  		}
+		//Publish package Uid which is going to be restored.
+ 	err = SecUtils::PublishPackageUid(iPackageUid, iUidList);
+	if (err == KErrNone)
+    	{
+        DEBUG_PRINTF2(_L("CRestoreMachine::ConstructL published Uid is %x."),iPackageUid);
+    	}
+	else if (err == KErrOverflow)
+	    {
+        DEBUG_PRINTF2(_L("CRestoreMachine::ConstructL Failed to publish Uid %x as the array, holding the uids, exceeded its upper limit."),iPackageUid);
+	    }
+    else if (err == KErrNotFound)
+        {
+        DEBUG_PRINTF2(_L("CRestoreMachine::ConstructL Failed to publish Uid %x as the property is not defined."),iPackageUid);
+        }
+	else
+		{
+        DEBUG_PRINTF3(_L("CRestoreMachine::ConstructL Failed to publish Uid %x with error %d."),iPackageUid, err);
+        User::Leave(err);
+		}
 
  #ifdef SYMBIAN_USER_PROMPT_SERVICE
 	//connect to the SWI Observer