contentstorage/casrv/cawidgetscanner/src/cawidgetscannerparser.cpp
changeset 61 8e5041d13c84
parent 60 f62f87b200ec
child 66 32469d7d46ff
equal deleted inserted replaced
60:f62f87b200ec 61:8e5041d13c84
   278         }
   278         }
   279     CleanupStack::PopAndDestroy( attributeValue );
   279     CleanupStack::PopAndDestroy( attributeValue );
   280 }
   280 }
   281 
   281 
   282 // ----------------------------------------------------------------------------
   282 // ----------------------------------------------------------------------------
   283 //
   283 //    keep in mind that setLibrary also setsPath
   284 // ----------------------------------------------------------------------------
   284 // ----------------------------------------------------------------------------
   285 //
   285 //
   286 void CCaWidgetScannerParser::SetLibraryL( TXmlEngElement & aElement,
   286 void CCaWidgetScannerParser::SetLibraryL( TXmlEngElement & aElement,
   287     const TDesC & aPackageUid, CCaWidgetDescription * aWidget )
   287     const TDesC & aPackageUid, CCaWidgetDescription * aWidget )
   288 {
   288 {
   291     CleanupStack::PushL( attributeValue );
   291     CleanupStack::PushL( attributeValue );
   292 
   292 
   293     if( attributeValue->Compare( KNullDesC ) != 0 )
   293     if( attributeValue->Compare( KNullDesC ) != 0 )
   294         {
   294         {
   295         HBufC *libraryPath = GetManifestDirectoryPathLC( aPackageUid );
   295         HBufC *libraryPath = GetManifestDirectoryPathLC( aPackageUid );
       
   296 
       
   297         //set path for hs to use, trim last 2 chars (doubleslash)
       
   298         aWidget->SetPathL(libraryPath->Mid(0,libraryPath->Length()-1));
       
   299         
   296         libraryPath->ReAllocL(
   300         libraryPath->ReAllocL(
   297             libraryPath->Length() + attributeValue->Length());
   301             libraryPath->Length() + attributeValue->Length());
   298 
   302 
   299         TPtr libraryPathModifier( libraryPath->Des() );
   303         TPtr libraryPathModifier( libraryPath->Des() );
   300         libraryPathModifier.Append( *attributeValue );
   304         libraryPathModifier.Append( *attributeValue );