229 TBuf<KMaxMessageLength> templ; |
229 TBuf<KMaxMessageLength> templ; |
230 TBuf<KMaxMessageLength> message; |
230 TBuf<KMaxMessageLength> message; |
231 |
231 |
232 iEikonEnv->ReadResourceL(templ, R_ADD_FEED_QUERY); |
232 iEikonEnv->ReadResourceL(templ, R_ADD_FEED_QUERY); |
233 message.Format(templ, &newInfo->Title()); |
233 message.Format(templ, &newInfo->Title()); |
234 if(ShowQueryMessage(message)) { |
234 if(ShowQueryMessageL(message)) { |
235 TBool added = iPodcastModel.FeedEngine().AddFeedL(*newInfo); |
235 TBool added = iPodcastModel.FeedEngine().AddFeedL(*newInfo); |
236 |
236 |
237 if (added) |
237 if (added) |
238 { |
238 { |
239 // ask if user wants to update it now |
239 // ask if user wants to update it now |
240 TBuf<KMaxMessageLength> message; |
240 TBuf<KMaxMessageLength> message; |
241 iEikonEnv->ReadResourceL(message, R_ADD_FEED_SUCCESS); |
241 iEikonEnv->ReadResourceL(message, R_ADD_FEED_SUCCESS); |
242 if(ShowQueryMessage(message)) |
242 if(ShowQueryMessageL(message)) |
243 { |
243 { |
244 CFeedInfo *info = iPodcastModel.FeedEngine().GetFeedInfoByUid(newInfo->Uid()); |
244 CFeedInfo *info = iPodcastModel.FeedEngine().GetFeedInfoByUid(newInfo->Uid()); |
245 |
245 |
246 iPodcastModel.ActiveShowList().Reset(); |
246 iPodcastModel.ActiveShowList().Reset(); |
247 iPodcastModel.SetActiveFeedInfo(info); |
247 iPodcastModel.SetActiveFeedInfo(info); |