equal
deleted
inserted
replaced
45 delete iDrmExpIcon; |
45 delete iDrmExpIcon; |
46 delete iVideoIcon; |
46 delete iVideoIcon; |
47 delete iPlaybackIndicatorIcon; |
47 delete iPlaybackIndicatorIcon; |
48 delete iMmcIcon; |
48 delete iMmcIcon; |
49 delete iMarkIcon; |
49 delete iMarkIcon; |
|
50 delete iMarkIconOff; |
50 delete iPauseIndicatorIcon; |
51 delete iPauseIndicatorIcon; |
51 delete iBrokenPlaylistIcon; |
52 delete iBrokenPlaylistIcon; |
52 delete iBrokenTrackIcon; |
53 delete iBrokenTrackIcon; |
53 delete iCorruptedTrackIcon; |
54 delete iCorruptedTrackIcon; |
54 delete iMassStorageIcon; |
55 delete iMassStorageIcon; |
107 EMbmGanesQgn_indi_media_thumbnail_mask, |
108 EMbmGanesQgn_indi_media_thumbnail_mask, |
108 aIndicatorSize ); |
109 aIndicatorSize ); |
109 |
110 |
110 // Skinned icons |
111 // Skinned icons |
111 // Mark icon |
112 // Mark icon |
112 InitIconL( iMarkIcon, KAknsIIDQgnPropSubMarked, |
113 InitIconL( iMarkIcon, KAknsIIDQgnPropCheckboxOn, |
113 EMbmGanesQgn_prop_sub_marked, |
114 EMbmGanesQgn_prop_checkbox_on, |
114 EMbmGanesQgn_prop_sub_marked_mask, |
115 EMbmGanesQgn_prop_checkbox_on_mask, |
|
116 aIndicatorSize ); |
|
117 |
|
118 // Mark icon, off state |
|
119 InitIconL( iMarkIconOff, KAknsIIDQgnPropCheckboxOff, |
|
120 EMbmGanesQgn_prop_checkbox_off, |
|
121 EMbmGanesQgn_prop_checkbox_off_mask, |
115 aIndicatorSize ); |
122 aIndicatorSize ); |
116 |
123 |
117 // DRM valid icon |
124 // DRM valid icon |
118 InitIconL( iDrmIcon, KAknsIIDQgnPropDrmRightsValidSuper, |
125 InitIconL( iDrmIcon, KAknsIIDQgnPropDrmRightsValidSuper, |
119 EMbmGanesQgn_prop_drm_rights_valid_super, |
126 EMbmGanesQgn_prop_drm_rights_valid_super, |
184 void CHgIndicatorManager::DrawIndicators( |
191 void CHgIndicatorManager::DrawIndicators( |
185 CWindowGc& aGc, |
192 CWindowGc& aGc, |
186 const TRect& aRect, |
193 const TRect& aRect, |
187 TInt aFlags, |
194 TInt aFlags, |
188 TAknWindowComponentLayout aFirstIndicatorLayout, |
195 TAknWindowComponentLayout aFirstIndicatorLayout, |
189 TAknWindowComponentLayout aSecondIndicatorLayout |
196 TAknWindowComponentLayout aSecondIndicatorLayout, |
|
197 TBool aMarkingMode |
190 ) const |
198 ) const |
191 { |
199 { |
192 TAknLayoutRect secondIndicator; |
200 TAknLayoutRect secondIndicator; |
193 secondIndicator.LayoutRect(aRect, aSecondIndicatorLayout); |
201 secondIndicator.LayoutRect(aRect, aSecondIndicatorLayout); |
194 |
202 |
202 if( aFlags & CHgItem::EHgItemFlagMarked ) |
210 if( aFlags & CHgItem::EHgItemFlagMarked ) |
203 { |
211 { |
204 rect.DrawImage(aGc, iMarkIcon->Bitmap(), iMarkIcon->Mask()); |
212 rect.DrawImage(aGc, iMarkIcon->Bitmap(), iMarkIcon->Mask()); |
205 ++indicatorsDrawn; |
213 ++indicatorsDrawn; |
206 rect = firstIndicator; |
214 rect = firstIndicator; |
|
215 } |
|
216 else if(aMarkingMode) |
|
217 { |
|
218 rect.DrawImage(aGc, iMarkIconOff->Bitmap(), iMarkIconOff->Mask()); |
|
219 ++indicatorsDrawn; |
|
220 rect = firstIndicator; |
207 } |
221 } |
208 |
222 |
209 if( DrawIndicator(aGc, rect, aFlags, memIndicator) ) |
223 if( DrawIndicator(aGc, rect, aFlags, memIndicator) ) |
210 { |
224 { |
211 ++indicatorsDrawn; |
225 ++indicatorsDrawn; |
232 |
246 |
233 TBool CHgIndicatorManager::DrawIndicator( |
247 TBool CHgIndicatorManager::DrawIndicator( |
234 CWindowGc& aGc, |
248 CWindowGc& aGc, |
235 TAknLayoutRect& aRect, |
249 TAknLayoutRect& aRect, |
236 TInt aFlags, |
250 TInt aFlags, |
237 TBool& aMemIndicator |
251 TBool& aMemIndicator |
238 ) const |
252 ) const |
239 { |
253 { |
240 TBool ret = EFalse; |
254 TBool ret = EFalse; |
241 |
255 |
242 if( aFlags & CHgItem::EHgItemFlagsPlaybackIndicator ) |
256 if( aFlags & CHgItem::EHgItemFlagsPlaybackIndicator ) |