equal
deleted
inserted
replaced
134 /** |
134 /** |
135 * Create a texture from a zoomed thumbnail attribute of a media item |
135 * Create a texture from a zoomed thumbnail attribute of a media item |
136 * @param aMedia The media item |
136 * @param aMedia The media item |
137 * @param aAttribute Which attribute |
137 * @param aAttribute Which attribute |
138 * @param aIdSpaceId The Id of the Id space in which the media Id is defined |
138 * @param aIdSpaceId The Id of the Id space in which the media Id is defined |
139 * @param aTextureId The created texture's id, required when the texture is removed. |
139 * @param aObserver Observer for the texture. |
140 * @return Created texture |
140 * @return Created texture |
141 */ |
141 */ |
142 CAlfTexture& CreateZoomedTextureL(const TGlxMedia& aMedia, |
142 CAlfTexture& CreateZoomedTextureL(const TGlxMedia& aMedia, |
143 const TMPXAttribute& aAttribute, |
143 const TMPXAttribute& aAttribute, |
144 TGlxIdSpaceId aIdSpaceId, MGlxTextureObserver* aObserver); |
144 TGlxIdSpaceId aIdSpaceId, MGlxTextureObserver* aObserver); |
152 |
152 |
153 /** |
153 /** |
154 * Create an animated texture from a GIF file |
154 * Create an animated texture from a GIF file |
155 * @param aFilename The filename of the GIF file |
155 * @param aFilename The filename of the GIF file |
156 * @param aSize The size of the GIF file |
156 * @param aSize The size of the GIF file |
|
157 * @param aMedia The media item |
|
158 * @param aIdSpaceId The Id of the Id space in which the media Id is defined |
157 * @return Created texture: ownership transfered |
159 * @return Created texture: ownership transfered |
158 */ |
160 */ |
159 CAlfTexture& CreateAnimatedGifTextureL(const TDesC& aFilename, |
161 CAlfTexture& CreateAnimatedGifTextureL(const TDesC& aFilename, const TSize& aSize, |
160 const TSize& aSize); |
162 const TGlxMedia& aMedia, TGlxIdSpaceId aIdSpaceId); |
161 |
163 |
162 /** |
164 /** |
163 * Removes the texture if it was created by CreateThumbnailTextureL or |
165 * Removes the texture if it was created by CreateThumbnailTextureL or |
164 * CreateZoomedTextureL |
166 * CreateZoomedTextureL |
165 * @param aTexture The texture to be removed |
167 * @param aTexture The texture to be removed |
368 * @param thumb thumbnail attributes. |
370 * @param thumb thumbnail attributes. |
369 */ |
371 */ |
370 void ScaleGridTnmToFsL(TSize aSrcSize, TSize aDestSize, |
372 void ScaleGridTnmToFsL(TSize aSrcSize, TSize aDestSize, |
371 CFbsBitmap *aScaledBitmap, const CGlxThumbnailAttribute* thumb); |
373 CFbsBitmap *aScaledBitmap, const CGlxThumbnailAttribute* thumb); |
372 |
374 |
|
375 |
|
376 /** |
|
377 * GetAnimatedGifThumbnailIndex |
|
378 * @param aSize The size of the requested texture |
|
379 * @param aMedia The TGlxMedia item. |
|
380 * @param aIdSpaceId The Id of the Id space in which the media Id is defined |
|
381 * @param aThumbnailIndex on return will contain the Index of the thumbnail in the iAnimatedTnmList |
|
382 * or KErrNotFound |
|
383 * @return ETrue if Thumbnail is available, EFalse if it needs to be created |
|
384 */ |
|
385 TBool CGlxTextureManagerImpl::GetAnimatedGifThumbnailIndex( TSize aSize, |
|
386 const TGlxMedia& aMedia, const TGlxIdSpaceId& aIdSpaceId, |
|
387 TInt& aThumbnailIndex); |
373 private: |
388 private: |
374 // Alf Texture manager (not owned) |
389 // Alf Texture manager (not owned) |
375 CAlfTextureManager& iAlfTextureManager; |
390 CAlfTextureManager& iAlfTextureManager; |
376 |
391 |
377 // Next id to be allocated to icon textures provide within the application. |
392 // Next id to be allocated to icon textures provide within the application. |
384 RArray<TGlxThumbnailIcon> iThumbnailList; |
399 RArray<TGlxThumbnailIcon> iThumbnailList; |
385 |
400 |
386 // List containing data for textures generated from zoomed thumbnail. |
401 // List containing data for textures generated from zoomed thumbnail. |
387 RArray<TGlxThumbnailIcon> iZoomedList; |
402 RArray<TGlxThumbnailIcon> iZoomedList; |
388 |
403 |
|
404 // List containing data for textures generated from Animated thumbnail. |
|
405 RArray<TGlxThumbnailIcon> iAnimatedTnmList; |
|
406 |
389 // List of .mif filenames of files containing icons. |
407 // List of .mif filenames of files containing icons. |
390 CDesCArrayFlat* iMifFilenames; |
408 CDesCArrayFlat* iMifFilenames; |
391 |
409 |
392 // DRM utility class |
410 // DRM utility class |
393 CGlxDRMUtility* iDrmUtility; |
411 CGlxDRMUtility* iDrmUtility; |