equal
deleted
inserted
replaced
2231 if( !BaflUtils::FileExists( iFsSession, *dtdPath ) ) |
2231 if( !BaflUtils::FileExists( iFsSession, *dtdPath ) ) |
2232 { |
2232 { |
2233 #ifdef HSPS_LOG_ACTIVE |
2233 #ifdef HSPS_LOG_ACTIVE |
2234 if( iLogBus ) |
2234 if( iLogBus ) |
2235 { |
2235 { |
2236 iLogBus->LogText( _L( "ChspsInstallationHandler::AddLocalizedResourcesL(): - DTD file was not found '%S'" ), |
2236 iLogBus->LogText( _L( "ChspsInstallationHandler::AddLocalizedResourcesDTDV2L(): - DTD file was not found '%S'" ), |
2237 &dtdPath ); |
2237 &dtdPath ); |
2238 } |
2238 } |
2239 #endif |
2239 #endif |
2240 iFileNotFound = ETrue; |
2240 iFileNotFound = ETrue; |
2241 iResult->iXuikonError = KErrDtdFileNotFound; |
2241 iResult->iXuikonError = KErrDtdFileNotFound; |
2505 HBufC* resourcePath = HBufC::NewLC( aPath.Length() + resource->FileName().Length() ); |
2505 HBufC* resourcePath = HBufC::NewLC( aPath.Length() + resource->FileName().Length() ); |
2506 resourcePath->Des().Copy( aPath ); |
2506 resourcePath->Des().Copy( aPath ); |
2507 resourcePath->Des().Append( resource->FileName() ); |
2507 resourcePath->Des().Append( resource->FileName() ); |
2508 |
2508 |
2509 TDataType dataType( resource->MimeType() ); |
2509 TDataType dataType( resource->MimeType() ); |
|
2510 |
2510 TPtrC8 tagsPtr; |
2511 TPtrC8 tagsPtr; |
2511 if ( iResourceTag ) |
2512 HBufC8* tagBuf8 = NULL; |
2512 { |
2513 if ( resource->Tags().Length() ) |
2513 tagsPtr.Set( iResourceTag->Des() ); |
2514 { |
|
2515 tagBuf8 = HBufC8::NewLC( resource->Tags().Length() ); |
|
2516 tagBuf8->Des().Copy( resource->Tags() ); |
|
2517 tagsPtr.Set( tagBuf8->Des() ); |
2514 } |
2518 } |
2515 |
2519 |
2516 // Add localized files into the resource array |
2520 // Add localized files into the resource array |
2517 AddResourceL( |
2521 AddResourceL( |
2518 *iResourceList, |
2522 *iResourceList, |
2520 aLanguage, |
2524 aLanguage, |
2521 EResourceOther, |
2525 EResourceOther, |
2522 dataType.Des8(), |
2526 dataType.Des8(), |
2523 tagsPtr |
2527 tagsPtr |
2524 ); |
2528 ); |
|
2529 |
|
2530 if ( tagBuf8 ) |
|
2531 { |
|
2532 CleanupStack::PopAndDestroy( tagBuf8 ); |
|
2533 } |
2525 |
2534 |
2526 CleanupStack::PopAndDestroy( resourcePath ); |
2535 CleanupStack::PopAndDestroy( resourcePath ); |
2527 } |
2536 } |
2528 |
2537 |
2529 } |
2538 } |