idlehomescreen/widgetmanager/src/wmwidgetdata.cpp
branchRCL_3
changeset 9 f966699dea19
parent 5 c743ef5928ba
child 15 ff572dfe6d86
equal deleted inserted replaced
5:c743ef5928ba 9:f966699dea19
    87     iLogoSize = aLogoSize;
    87     iLogoSize = aLogoSize;
    88     iPeriodic = NULL;
    88     iPeriodic = NULL;
    89     iAnimationIndex = 0;
    89     iAnimationIndex = 0;
    90     iAsyncUninstalling = EFalse;
    90     iAsyncUninstalling = EFalse;
    91     iFireLogoChanged = EFalse;
    91     iFireLogoChanged = EFalse;
       
    92     iMdcaPoint = NULL;
    92     }
    93     }
    93 
    94 
    94 // ---------------------------------------------------------
    95 // ---------------------------------------------------------
    95 // CWmWidgetData::ConstructL
    96 // CWmWidgetData::ConstructL
    96 // ---------------------------------------------------------
    97 // ---------------------------------------------------------
   129         iWidgetType = CWmWidgetData::ENative;
   130         iWidgetType = CWmWidgetData::ENative;
   130         }
   131         }
   131 
   132 
   132     // take ownership of the content info
   133     // take ownership of the content info
   133     iHsContentInfo = aHsContentInfo;
   134     iHsContentInfo = aHsContentInfo;
   134 
   135     
       
   136     // create iMdcaPoint for listbox    
       
   137     _LIT( KFormatStr, "0\t%S");
       
   138     iMdcaPoint = HBufC::NewL( 
       
   139             iHsContentInfo->Name().Length() + KFormatStr().Length() );
       
   140     iMdcaPoint->Des().Format( KFormatStr(), &iHsContentInfo->Name() );
   135     // get publisher uid from widget registry
   141     // get publisher uid from widget registry
   136     FetchPublisherUidL( aRegistryClientSession );
   142     FetchPublisherUidL( aRegistryClientSession );
   137 
       
   138     }
   143     }
   139 
   144 
   140 // ---------------------------------------------------------
   145 // ---------------------------------------------------------
   141 // CWmWidgetData::~CWmWidgetData
   146 // CWmWidgetData::~CWmWidgetData
   142 // ---------------------------------------------------------
   147 // ---------------------------------------------------------
   153     delete iPeriodic;
   158     delete iPeriodic;
   154     delete iLogoImage;
   159     delete iLogoImage;
   155     delete iLogoImageMask;
   160     delete iLogoImageMask;
   156     delete iImageConverter;
   161     delete iImageConverter;
   157     delete iHsContentInfo;
   162     delete iHsContentInfo;
       
   163     delete iMdcaPoint;
   158     }
   164     }
   159 
   165 
   160 // ---------------------------------------------------------
   166 // ---------------------------------------------------------
   161 // CWmWidgetData::SetObserver
   167 // CWmWidgetData::SetObserver
   162 // ---------------------------------------------------------
   168 // ---------------------------------------------------------
   595 TBool CWmWidgetData::IsUninstalling()
   601 TBool CWmWidgetData::IsUninstalling()
   596     {
   602     {
   597     return iAsyncUninstalling;
   603     return iAsyncUninstalling;
   598     }
   604     }
   599 
   605 
       
   606 // ---------------------------------------------------------
       
   607 // CWmWidgetData::MdcaPoint
       
   608 // ---------------------------------------------------------
       
   609 //
       
   610 const TDesC& CWmWidgetData::MdcaPoint() const
       
   611     {
       
   612     if ( iMdcaPoint )
       
   613         return *iMdcaPoint;
       
   614     else
       
   615         return KNullDesC;
       
   616     }
       
   617 
   600 // End of file
   618 // End of file
   601 
   619