67 EMbmPodcastAudio_downloaded_new_mask, |
67 EMbmPodcastAudio_downloaded_new_mask, |
68 EMbmPodcastAudio_failed, |
68 EMbmPodcastAudio_failed, |
69 EMbmPodcastAudio_failed_mask, |
69 EMbmPodcastAudio_failed_mask, |
70 EMbmPodcastAudio_suspended, |
70 EMbmPodcastAudio_suspended, |
71 EMbmPodcastAudio_suspended_mask, |
71 EMbmPodcastAudio_suspended_mask, |
|
72 EMbmPodcastVideo, |
|
73 EMbmPodcastVideo_mask, |
|
74 EMbmPodcastVideo_new, |
|
75 EMbmPodcastVideo_new_mask, |
|
76 EMbmPodcastVideo_queued, |
|
77 EMbmPodcastVideo_queued_mask, |
|
78 EMbmPodcastVideo_downloading, |
|
79 EMbmPodcastVideo_downloading_mask, |
|
80 EMbmPodcastVideo_downloaded, |
|
81 EMbmPodcastVideo_downloaded_mask, |
|
82 EMbmPodcastVideo_downloaded_new, |
|
83 EMbmPodcastVideo_downloaded_new_mask, |
|
84 EMbmPodcastVideo_failed, |
|
85 EMbmPodcastVideo_failed_mask, |
|
86 EMbmPodcastVideo_suspended, |
|
87 EMbmPodcastVideo_suspended_mask, |
|
88 EMbmPodcastFeed, |
|
89 EMbmPodcastFeed_mask, |
72 0, |
90 0, |
73 0 |
91 0 |
74 }; |
92 }; |
|
93 |
|
94 const TInt KVideoIconOffset = 8; |
75 |
95 |
76 CPodcastShowsView* CPodcastShowsView::NewL(CPodcastModel& aPodcastModel) |
96 CPodcastShowsView* CPodcastShowsView::NewL(CPodcastModel& aPodcastModel) |
77 { |
97 { |
78 CPodcastShowsView* self = CPodcastShowsView::NewLC(aPodcastModel); |
98 CPodcastShowsView* self = CPodcastShowsView::NewLC(aPodcastModel); |
79 CleanupStack::Pop(self); |
99 CleanupStack::Pop(self); |
118 CArrayPtr< CGulIcon>* icons = new(ELeave) CArrayPtrFlat< CGulIcon>(1); |
138 CArrayPtr< CGulIcon>* icons = new(ELeave) CArrayPtrFlat< CGulIcon>(1); |
119 CleanupStack::PushL(icons); |
139 CleanupStack::PushL(icons); |
120 TInt pos = 0; |
140 TInt pos = 0; |
121 while (KShowIconArrayIds[pos] > 0) |
141 while (KShowIconArrayIds[pos] > 0) |
122 { |
142 { |
123 // Load the bitmap for play icon |
143 // Load the icon |
124 CFbsBitmap* bitmap= NULL;//iEikonEnv->CreateBitmapL( _L("*"), KIconArrayIds[pos]); |
144 CFbsBitmap* bitmap= NULL; |
125 CFbsBitmap* mask= NULL;////iEikonEnv->CreateBitmapL( _L("*"), KIconArrayIds[pos+1] ); |
145 CFbsBitmap* mask= NULL; |
126 AknIconUtils::CreateIconL(bitmap, |
146 AknIconUtils::CreateIconL(bitmap, |
127 mask, |
147 mask, |
128 iEikonEnv->EikAppUi()->Application()->BitmapStoreName(), |
148 iEikonEnv->EikAppUi()->Application()->BitmapStoreName(), |
129 KShowIconArrayIds[pos], |
149 KShowIconArrayIds[pos], |
130 KShowIconArrayIds[pos+1]); |
150 KShowIconArrayIds[pos+1]); |
131 CleanupStack::PushL(bitmap); |
151 CleanupStack::PushL(bitmap); |
132 CleanupStack::PushL(mask); |
152 CleanupStack::PushL(mask); |
133 |
153 |
134 // Append the play icon to icon array |
154 // Append the icon to icon array |
135 icons->AppendL(CGulIcon::NewL(bitmap, mask) ); |
155 icons->AppendL(CGulIcon::NewL(bitmap, mask) ); |
136 CleanupStack::Pop(2); // bitmap, mask |
156 CleanupStack::Pop(2); // bitmap, mask |
137 pos+=2; |
157 pos+=2; |
138 } |
158 } |
139 |
159 |