equal
deleted
inserted
replaced
226 return *iConnectionEngine; |
226 return *iConnectionEngine; |
227 } |
227 } |
228 |
228 |
229 EXPORT_C void CPodcastModel::PlayPausePodcastL(CShowInfo* aPodcast, TBool aPlayOnInit) |
229 EXPORT_C void CPodcastModel::PlayPausePodcastL(CShowInfo* aPodcast, TBool aPlayOnInit) |
230 { |
230 { |
|
231 DP("CPodcastModel::PlayPausePodcastL BEGIN"); |
231 TRAPD(err, LaunchFileEmbeddedL(aPodcast->FileName())); |
232 TRAPD(err, LaunchFileEmbeddedL(aPodcast->FileName())); |
232 |
233 |
233 if (err == KErrNone) |
234 if (err == KErrNone) |
234 { |
235 { |
235 aPodcast->SetPlayState(EPlayed); |
236 aPodcast->SetPlayState(EPlayed); |
236 iShowEngine->UpdateShowL(*aPodcast); |
237 iShowEngine->UpdateShowL(*aPodcast); |
237 } |
238 } |
238 |
239 else |
|
240 { |
|
241 User::Leave(err); |
|
242 } |
|
243 DP("CPodcastModel::PlayPausePodcastL END"); |
239 } |
244 } |
240 |
245 |
241 EXPORT_C CFeedInfo* CPodcastModel::ActiveFeedInfo() |
246 EXPORT_C CFeedInfo* CPodcastModel::ActiveFeedInfo() |
242 { |
247 { |
243 return iActiveFeed; |
248 return iActiveFeed; |