--- a/connectivitymodules/SeCon/services/pcd/src/sconpcdutility.cpp Tue Jul 06 14:06:02 2010 +0300
+++ b/connectivitymodules/SeCon/services/pcd/src/sconpcdutility.cpp Wed Aug 18 09:39:14 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -21,7 +21,7 @@
#include <swi/sisregistrysession.h>
#include <swi/sisregistrypackage.h>
#include <stringresourcereader.h>
-#include <WidgetRegistryClient.h>
+// #include <WidgetRegistryClient.h>
#include <javaregistryincludes.h>
#include <appversion.h>
#include <mmf/common/mmfcontrollerpluginresolver.h>
@@ -308,6 +308,9 @@
//
void SConPcdUtility::AppendInstalledWidgetsL( CSConListInstApps& aListInstApps )
{
+ // Commented out as WidgetRegistry will be removed from MCL.
+ // TODO: Check how Widgets should be listed on future.
+ /*
TRACE_FUNC_ENTRY;
RWidgetRegistryClientSession widgetSession;
CleanupClosePushL( widgetSession );
@@ -317,7 +320,7 @@
RWidgetInfoArray widgetInfoArr;
CleanupClosePushL( widgetInfoArr );
widgetSession.InstalledWidgetsL( widgetInfoArr );
-
+ TFileName bundleId;
for ( TInt i = 0; i < widgetInfoArr.Count(); i++ )
{
CWidgetInfo *item = widgetInfoArr[i];
@@ -359,6 +362,9 @@
}
delete propValue;
propValue = NULL;
+ bundleId.Zero();
+ widgetSession.GetWidgetBundleId( item->iUid, bundleId );
+ app->iWidgetBundleId = bundleId.AllocL();
User::LeaveIfError( aListInstApps.iApps.Append( app ) );
CleanupStack::Pop( app ); // ownership transferred, do not delete
@@ -370,6 +376,7 @@
CleanupStack::PopAndDestroy( &widgetInfoArr );
CleanupStack::PopAndDestroy( &widgetSession );
TRACE_FUNC_EXIT;
+ */
}
// ---------------------------------------------------------