equal
deleted
inserted
replaced
42 delete iShowClient; |
42 delete iShowClient; |
43 iObservers.Close(); |
43 iObservers.Close(); |
44 delete iShowDownloading; |
44 delete iShowDownloading; |
45 delete iMetaDataReader; |
45 delete iMetaDataReader; |
46 iApaSession.Close(); |
46 iApaSession.Close(); |
47 |
47 #ifdef ENABLE_MPX_INTEGRATION |
48 if (iCollectionHelper) |
48 if (iCollectionHelper) |
49 delete iCollectionHelper; |
49 delete iCollectionHelper; |
|
50 #endif |
50 } |
51 } |
51 |
52 |
52 EXPORT_C CShowEngine* CShowEngine::NewL(CPodcastModel& aPodcastModel) |
53 EXPORT_C CShowEngine* CShowEngine::NewL(CPodcastModel& aPodcastModel) |
53 { |
54 { |
54 CShowEngine* self = new (ELeave) CShowEngine(aPodcastModel); |
55 CShowEngine* self = new (ELeave) CShowEngine(aPodcastModel); |
234 } |
235 } |
235 } |
236 } |
236 |
237 |
237 void CShowEngine::AddShowToMpxCollection(CShowInfo &aShowInfo) |
238 void CShowEngine::AddShowToMpxCollection(CShowInfo &aShowInfo) |
238 { |
239 { |
|
240 #ifdef ENABLE_MPX_INTEGRATION |
239 if (!iCollectionHelper) |
241 if (!iCollectionHelper) |
240 iCollectionHelper = CMPXCollectionHelperFactory::NewCollectionHelperL(); |
242 iCollectionHelper = CMPXCollectionHelperFactory::NewCollectionHelperL(); |
241 |
243 |
242 // if this leaves, not much we can do anyway |
244 // if this leaves, not much we can do anyway |
243 TRAP_IGNORE(iCollectionHelper->AddL(aShowInfo.FileName(), this)); |
245 TRAP_IGNORE(iCollectionHelper->AddL(aShowInfo.FileName(), this)); |
244 |
246 #endif |
245 } |
247 } |
246 |
248 |
247 void CShowEngine::CompleteL(CHttpClient* /*aHttpClient*/, TInt aError) |
249 void CShowEngine::CompleteL(CHttpClient* /*aHttpClient*/, TInt aError) |
248 { |
250 { |
249 if (iShowDownloading != NULL) |
251 if (iShowDownloading != NULL) |