equal
deleted
inserted
replaced
228 } |
228 } |
229 } |
229 } |
230 |
230 |
231 void CFeedEngine::NewShowL(CShowInfo& aItem) |
231 void CFeedEngine::NewShowL(CShowInfo& aItem) |
232 { |
232 { |
233 //DP4("\nTitle: %S\nURL: %S\nDescription length: %d\nFeed: %d", &(item->Title()), &(item->Url()), item->Description().Length(), item->FeedUid()); |
|
234 |
|
235 HBufC* description = HBufC::NewLC(KMaxDescriptionLength); |
233 HBufC* description = HBufC::NewLC(KMaxDescriptionLength); |
236 TPtr ptr(description->Des()); |
234 TPtr ptr(description->Des()); |
237 ptr.Copy(aItem.Description()); |
235 ptr.Copy(aItem.Description()); |
238 PodcastUtils::CleanHtmlL(ptr); |
236 PodcastUtils::CleanHtmlL(ptr); |
239 //DP1("New show has feed ID: %u") item->FeedUid()); |
237 |
240 TRAP_IGNORE(aItem.SetDescriptionL(*description)); |
238 aItem.SetDescriptionL(*description); |
241 CleanupStack::PopAndDestroy(description); |
239 CleanupStack::PopAndDestroy(description); |
242 //DP1("Description: %S", &description); |
|
243 |
240 |
244 if (iCatchupMode) { |
241 if (iCatchupMode) { |
245 // in catchup mode, we let one show be unplayed |
242 // in catchup mode, we let one show be unplayed |
246 if (++iCatchupCounter > 1) { |
243 if (++iCatchupCounter > 1) { |
247 aItem.SetPlayState(EPlayed); |
244 aItem.SetPlayState(EPlayed); |
473 |
470 |
474 void CFeedEngine::ParsingCompleteL(CFeedInfo *item) |
471 void CFeedEngine::ParsingCompleteL(CFeedInfo *item) |
475 { |
472 { |
476 TBuf<KMaxLineLength> title; |
473 TBuf<KMaxLineLength> title; |
477 title.Copy(item->Title()); |
474 title.Copy(item->Title()); |
478 TRAP_IGNORE(item->SetTitleL(title)); |
475 item->SetTitleL(title); // if this leaves we are out of memory |
479 //DBUpdateFeed(*item); |
|
480 } |
476 } |
481 |
477 |
482 |
478 |
483 EXPORT_C void CFeedEngine::AddObserver(MFeedEngineObserver *observer) |
479 EXPORT_C void CFeedEngine::AddObserver(MFeedEngineObserver *observer) |
484 { |
480 { |