194 /** |
194 /** |
195 * Creates a flat color texture and returns the reference to it |
195 * Creates a flat color texture and returns the reference to it |
196 */ |
196 */ |
197 CAlfTexture& CreateFlatColourTextureL( TRgb aColour ); |
197 CAlfTexture& CreateFlatColourTextureL( TRgb aColour ); |
198 |
198 |
|
199 /** |
|
200 * Animate the given media. |
|
201 * @param aMediaId The Id of the media to be animated |
|
202 * @param aState Animation state [ETrue to Start, EFalse to Stop] |
|
203 */ |
|
204 void AnimateMediaItem(const TGlxMediaId& aMediaId, TBool aState); |
|
205 |
199 public: // From MGlxCacheObserver |
206 public: // From MGlxCacheObserver |
200 void HandleAttributesAvailableL(const TGlxIdSpaceId& aIdSpaceId, |
207 void HandleAttributesAvailableL(const TGlxIdSpaceId& aIdSpaceId, |
201 const TGlxMediaId& aMediaId, |
208 const TGlxMediaId& aMediaId, |
202 const RArray<TMPXAttribute>& aAttributes, |
209 const RArray<TMPXAttribute>& aAttributes, |
203 const CGlxMedia* aMedia); |
210 const CGlxMedia* aMedia); |
303 TGlxIdSpaceId iIdSpaceId; |
310 TGlxIdSpaceId iIdSpaceId; |
304 MGlxTextureObserver* iObserver; |
311 MGlxTextureObserver* iObserver; |
305 CFbsBitmap* iBitmap; |
312 CFbsBitmap* iBitmap; |
306 TTime iImageDate; |
313 TTime iImageDate; |
307 /** |
314 /** |
308 * Helper functor to be able to find texture from array |
315 * Helper function to be able to find texture from array |
309 */ |
316 */ |
310 static TBool MatchTexture( |
317 static TBool MatchTexture( |
311 const CAlfTexture* aTexture, |
318 const CAlfTexture* aTexture, |
312 const TGlxThumbnailIcon& aRhs ) |
319 const TGlxThumbnailIcon& aThumbData ) |
313 { |
320 { |
314 // return true if the address of the texture match |
321 // return true if the address of the texture match |
315 return aTexture == aRhs.iTexture; |
322 return aTexture == aThumbData.iTexture; |
316 } |
323 } |
317 }; |
324 |
|
325 /** |
|
326 * Helper function to be able to find mediaid from array |
|
327 */ |
|
328 static TBool MatchMediaId(const TGlxMediaId* aMediaId, |
|
329 const TGlxThumbnailIcon& aThumbData) |
|
330 { |
|
331 // return true if the Media Id match |
|
332 return *aMediaId == aThumbData.iMediaId; |
|
333 } |
|
334 }; |
318 /** |
335 /** |
319 * Requests the best match texture. If it already exists this method does nothing. |
336 * Requests the best match texture. If it already exists this method does nothing. |
320 * However if it doed not exist it will create it and replace the old texture |
337 * However if it doed not exist it will create it and replace the old texture |
321 * if necessary. |
338 * if necessary. |
322 * @param aSize The size of the requested texture |
339 * @param aSize The size of the requested texture |