appinstaller/AppMngr2/Widget/src/appmngr2widgetruntime.cpp
branchRCL_3
changeset 73 79647526f98c
parent 66 8b7f4e561641
equal deleted inserted replaced
70:e8965914fac7 73:79647526f98c
   185     CleanupStack::PopAndDestroy( prop );
   185     CleanupStack::PopAndDestroy( prop );
   186     return retStr;
   186     return retStr;
   187     }
   187     }
   188 
   188 
   189 // ---------------------------------------------------------------------------
   189 // ---------------------------------------------------------------------------
       
   190 // CAppMngr2WidgetRuntime::GetVersionL()
       
   191 // ---------------------------------------------------------------------------
       
   192 //
       
   193 HBufC* CAppMngr2WidgetRuntime::GetVersionL( const TUid& aWidgetUid )
       
   194     {
       
   195     HBufC* versionStr = NULL;
       
   196     CWidgetPropertyValue* prop = iWidgetRegistry.GetWidgetPropertyValueL( aWidgetUid,
       
   197         EBundleVersion );
       
   198     if( prop )
       
   199         {
       
   200         CleanupStack::PushL( prop );
       
   201         const TPtrC valuePtr( *prop );
       
   202         versionStr = valuePtr.AllocL();
       
   203         CleanupStack::PopAndDestroy( prop );
       
   204         }
       
   205     return versionStr;
       
   206     }
       
   207 
       
   208 // ---------------------------------------------------------------------------
   190 // CAppMngr2WidgetRuntime::CAppMngr2WidgetRuntime()
   209 // CAppMngr2WidgetRuntime::CAppMngr2WidgetRuntime()
   191 // ---------------------------------------------------------------------------
   210 // ---------------------------------------------------------------------------
   192 //
   211 //
   193 CAppMngr2WidgetRuntime::CAppMngr2WidgetRuntime( MAppMngr2RuntimeObserver& aObserver )
   212 CAppMngr2WidgetRuntime::CAppMngr2WidgetRuntime( MAppMngr2RuntimeObserver& aObserver )
   194         : CAppMngr2Runtime( aObserver )
   213         : CAppMngr2Runtime( aObserver )