equal
deleted
inserted
replaced
41 /** |
41 /** |
42 * Called by CImageHandler when an image has been loaded. |
42 * Called by CImageHandler when an image has been loaded. |
43 * @param aError Error code given by the CImageHandler or 0 (zero) if the |
43 * @param aError Error code given by the CImageHandler or 0 (zero) if the |
44 * image was loaded successfully. |
44 * image was loaded successfully. |
45 */ |
45 */ |
46 virtual void ImageOperationCompleteL(TInt aError) = 0; |
46 virtual void ImageOperationCompleteL(TInt aError, TUint aHandle) = 0; |
47 }; |
47 }; |
48 |
48 |
49 // ============================================================================ |
49 // ============================================================================ |
50 class TImageStruct |
50 class TImageStruct |
51 { |
51 { |
52 public: |
52 public: |
53 CFbsBitmap* iScaledImage; |
53 CFbsBitmap* iScaledImage; |
54 TSize iScaledSize; |
54 TSize iScaledSize; |
55 MImageHandlerCallback* iCallBack; |
55 MImageHandlerCallback* iCallBack; |
56 TFileName iFileName; |
56 TFileName iFileName; |
|
57 TUint iHandle; |
57 }; |
58 }; |
58 /** |
59 /** |
59 * CImageHandler |
60 * CImageHandler |
60 * Image loader and scaler class. |
61 * Image loader and scaler class. |
61 */ |
62 */ |
102 */ |
103 */ |
103 IMPORT_C void LoadFileAndScaleL(CFbsBitmap* aScaledBitmap, |
104 IMPORT_C void LoadFileAndScaleL(CFbsBitmap* aScaledBitmap, |
104 const TFileName& aFileName, |
105 const TFileName& aFileName, |
105 const TSize &aSize, |
106 const TSize &aSize, |
106 MImageHandlerCallback& aCallback, |
107 MImageHandlerCallback& aCallback, |
|
108 TUint aHandle, |
107 TInt aSelectedFrame = 0); |
109 TInt aSelectedFrame = 0); |
108 |
110 |
109 /** |
111 /** |
110 * Returns the current frame information. |
112 * Returns the current frame information. |
111 * @return Current frame information. |
113 * @return Current frame information. |
174 /** Current image frame information. */ |
176 /** Current image frame information. */ |
175 TFrameInfo iFrameInfo; |
177 TFrameInfo iFrameInfo; |
176 |
178 |
177 /** target size for scaled image */ |
179 /** target size for scaled image */ |
178 TSize iSize; |
180 TSize iSize; |
179 RArray<TImageStruct> iCallbackQue; |
181 RArray<TImageStruct> iCallbackQue; |
|
182 |
|
183 /* Handle passed back to caller */ |
|
184 TUint iHandle; |
180 }; |
185 }; |
181 |
186 |
182 #endif |
187 #endif |
183 |
188 |