--- a/webengine/wrtharvester/src/wrtharvesterregistryaccess.cpp Tue Aug 31 16:17:46 2010 +0300
+++ b/webengine/wrtharvester/src/wrtharvesterregistryaccess.cpp Wed Sep 01 12:28:30 2010 +0100
@@ -61,13 +61,18 @@
{
CWidgetInfo* widgetInfo( widgetInfoArr[i] );
- if ( SupportsMiniviewL( session, widgetInfo->iUid ) )
+
+ if ( SupportsMiniviewL( session, widgetInfo->iUid ) &&
+ IsNokiaWidget( session, widgetInfo->iUid ))
{
CWrtInfo* info = new CWrtInfo();
+ CleanupStack::PushL(info);
info->iUid = widgetInfo->iUid;
info->iBundleId = WidgetPropertyL( session, widgetInfo->iUid, EBundleIdentifier );
info->iDisplayName = WidgetPropertyL( session, widgetInfo->iUid, EBundleDisplayName );
+ info->iType = KS60Widget;
aWidgetInfoArray.AppendL( info );
+ CleanupStack::Pop(info);
}
}
CleanupStack::PopAndDestroy( &session );
@@ -94,6 +99,25 @@
}
// ---------------------------------------------------------------------------
+// Check if it is wgz widget .
+// ---------------------------------------------------------------------------
+//
+TBool WrtHarvesterRegistryAccess::IsNokiaWidget(
+ RWidgetRegistryClientSession& aSession,
+ const TUid& aUid )
+ {
+ TBool res( EFalse );
+
+ CWidgetPropertyValue* value( NULL );
+ value = aSession.GetWidgetPropertyValueL( aUid, ENokiaWidget );
+
+ res = value && ( *value == 0 || *value == 1 );
+
+ delete value;
+ return res;
+ }
+
+// ---------------------------------------------------------------------------
// Get the widget property as string.
// ---------------------------------------------------------------------------
//
@@ -113,3 +137,4 @@
// End of File
+