equal
deleted
inserted
replaced
275 relPath.Append(fileName); |
275 relPath.Append(fileName); |
276 PodcastUtils::EnsureProperPathName(relPath); |
276 PodcastUtils::EnsureProperPathName(relPath); |
277 |
277 |
278 // complete file path is base dir + rel path |
278 // complete file path is base dir + rel path |
279 filePath.Append(relPath); |
279 filePath.Append(relPath); |
280 aFeedInfo->SetImageFileNameL(filePath); |
280 // This file might exist in the podcast directory already so check this first |
281 |
281 if(BaflUtils::FileExists(iPodcastModel.FsSession(), filePath)) |
282 if(iFeedClient->GetL(aFeedInfo->ImageUrl(), filePath, ETrue)) |
282 { |
283 { |
283 aFeedInfo->SetImageFileNameL(filePath, &iPodcastModel); |
284 iClientState = EUpdatingImage; |
284 } |
|
285 else |
|
286 { |
|
287 aFeedInfo->SetImageFileNameL(filePath, NULL); |
|
288 if(iFeedClient->GetL(aFeedInfo->ImageUrl(), filePath, ETrue)) |
|
289 { |
|
290 iClientState = EUpdatingImage; |
|
291 } |
285 } |
292 } |
286 } |
293 } |
287 |
294 |
288 EXPORT_C TBool CFeedEngine::AddFeedL(const CFeedInfo&aItem) |
295 EXPORT_C TBool CFeedEngine::AddFeedL(const CFeedInfo&aItem) |
289 { |
296 { |
924 TPtrC16 image((const TUint16*)imagez); |
931 TPtrC16 image((const TUint16*)imagez); |
925 feedInfo->SetImageUrlL(image); |
932 feedInfo->SetImageUrlL(image); |
926 |
933 |
927 const void *imagefilez = sqlite3_column_text16(st, 4); |
934 const void *imagefilez = sqlite3_column_text16(st, 4); |
928 TPtrC16 imagefile((const TUint16*)imagefilez); |
935 TPtrC16 imagefile((const TUint16*)imagefilez); |
929 feedInfo->SetImageFileNameL(imagefile); |
936 feedInfo->SetImageFileNameL(imagefile, &iPodcastModel); |
930 |
937 |
931 const void *linkz = sqlite3_column_text16(st, 5); |
938 const void *linkz = sqlite3_column_text16(st, 5); |
932 TPtrC16 link((const TUint16*)linkz); |
939 TPtrC16 link((const TUint16*)linkz); |
933 feedInfo->SetDescriptionL(link); |
940 feedInfo->SetDescriptionL(link); |
934 |
941 |