237 TBuf<KMaxMessageLength> templ; |
237 TBuf<KMaxMessageLength> templ; |
238 TBuf<KMaxMessageLength> message; |
238 TBuf<KMaxMessageLength> message; |
239 |
239 |
240 iEikonEnv->ReadResourceL(templ, R_ADD_FEED_QUERY); |
240 iEikonEnv->ReadResourceL(templ, R_ADD_FEED_QUERY); |
241 message.Format(templ, &newInfo->Title()); |
241 message.Format(templ, &newInfo->Title()); |
242 if(ShowQueryMessage(message)) { |
242 if(ShowQueryMessageL(message)) { |
243 TBool added = iPodcastModel.FeedEngine().AddFeedL(*newInfo); |
243 TBool added = iPodcastModel.FeedEngine().AddFeedL(*newInfo); |
244 |
244 |
245 if (added) |
245 if (added) |
246 { |
246 { |
247 // ask if user wants to update it now |
247 // ask if user wants to update it now |
248 TBuf<KMaxMessageLength> message; |
248 TBuf<KMaxMessageLength> message; |
249 iEikonEnv->ReadResourceL(message, R_ADD_FEED_SUCCESS); |
249 iEikonEnv->ReadResourceL(message, R_ADD_FEED_SUCCESS); |
250 if(ShowQueryMessage(message)) |
250 if(ShowQueryMessageL(message)) |
251 { |
251 { |
252 CFeedInfo *info = iPodcastModel.FeedEngine().GetFeedInfoByUid(newInfo->Uid()); |
252 CFeedInfo *info = iPodcastModel.FeedEngine().GetFeedInfoByUid(newInfo->Uid()); |
253 |
253 |
254 iPodcastModel.ActiveShowList().Reset(); |
254 iPodcastModel.ActiveShowList().Reset(); |
255 iPodcastModel.SetActiveFeedInfo(info); |
255 iPodcastModel.SetActiveFeedInfo(info); |