equal
deleted
inserted
replaced
30 #include <gulicon.h> |
30 #include <gulicon.h> |
31 #include <aknquerydialog.h> |
31 #include <aknquerydialog.h> |
32 #include <BAUTILS.H> |
32 #include <BAUTILS.H> |
33 #include <pathinfo.h> |
33 #include <pathinfo.h> |
34 #include <akncommondialogsdynmem.h> |
34 #include <akncommondialogsdynmem.h> |
35 |
35 #include "Podcatcher.pan" |
36 |
36 |
37 const TInt KMaxFeedNameLength = 100; |
37 const TInt KMaxFeedNameLength = 100; |
38 const TInt KMaxUnplayedFeedsLength =64; |
38 const TInt KMaxUnplayedFeedsLength =64; |
39 const TInt KADayInHours = 24; |
39 const TInt KADayInHours = 24; |
40 const TInt KDefaultGran = 5; |
40 const TInt KDefaultGran = 5; |
130 iFeedIdForIconArray.Close(); |
130 iFeedIdForIconArray.Close(); |
131 } |
131 } |
132 |
132 |
133 void CPodcastFeedView::UpdateItemL(TInt aIndex) |
133 void CPodcastFeedView::UpdateItemL(TInt aIndex) |
134 { |
134 { |
135 _LIT(KPanicCategory, "CPodcastFeedView::UpdateItemL"); |
135 __ASSERT_DEBUG(iListContainer->IsVisible(), Panic(EPodcatcherPanicFeedView)); |
136 __ASSERT_DEBUG(iListContainer->IsVisible(), User::Panic(KPanicCategory, 0)); |
136 __ASSERT_ALWAYS(iItemIdArray.Count() > aIndex, Panic(EPodcatcherPanicFeedView)); |
137 __ASSERT_ALWAYS(iItemIdArray.Count() > aIndex, User::Panic(KPanicCategory, 1)); |
|
138 |
137 |
139 const RFeedInfoArray& sortedItems = iPodcastModel.FeedEngine().GetSortedFeeds(); |
138 const RFeedInfoArray& sortedItems = iPodcastModel.FeedEngine().GetSortedFeeds(); |
140 __ASSERT_ALWAYS(sortedItems.Count() > aIndex, User::Panic(KPanicCategory, 2)); |
139 __ASSERT_ALWAYS(sortedItems.Count() > aIndex, Panic(EPodcatcherPanicFeedView)); |
141 |
140 |
142 // Update UID of for the feed at aIndex |
141 // Update UID of for the feed at aIndex |
143 iItemIdArray[aIndex] = sortedItems[aIndex]->Uid(); |
142 iItemIdArray[aIndex] = sortedItems[aIndex]->Uid(); |
144 |
143 |
145 // Prepare data to update the listbox item with |
144 // Prepare data to update the listbox item with |