diff -r c743ef5928ba -r f966699dea19 idlehomescreen/widgetmanager/src/wmwidgetdata.cpp --- a/idlehomescreen/widgetmanager/src/wmwidgetdata.cpp Tue Feb 02 00:04:13 2010 +0200 +++ b/idlehomescreen/widgetmanager/src/wmwidgetdata.cpp Fri Feb 19 22:42:37 2010 +0200 @@ -89,6 +89,7 @@ iAnimationIndex = 0; iAsyncUninstalling = EFalse; iFireLogoChanged = EFalse; + iMdcaPoint = NULL; } // --------------------------------------------------------- @@ -131,10 +132,14 @@ // take ownership of the content info iHsContentInfo = aHsContentInfo; - + + // create iMdcaPoint for listbox + _LIT( KFormatStr, "0\t%S"); + iMdcaPoint = HBufC::NewL( + iHsContentInfo->Name().Length() + KFormatStr().Length() ); + iMdcaPoint->Des().Format( KFormatStr(), &iHsContentInfo->Name() ); // get publisher uid from widget registry FetchPublisherUidL( aRegistryClientSession ); - } // --------------------------------------------------------- @@ -155,6 +160,7 @@ delete iLogoImageMask; delete iImageConverter; delete iHsContentInfo; + delete iMdcaPoint; } // --------------------------------------------------------- @@ -597,5 +603,17 @@ return iAsyncUninstalling; } +// --------------------------------------------------------- +// CWmWidgetData::MdcaPoint +// --------------------------------------------------------- +// +const TDesC& CWmWidgetData::MdcaPoint() const + { + if ( iMdcaPoint ) + return *iMdcaPoint; + else + return KNullDesC; + } + // End of file