equal
deleted
inserted
replaced
22 #define ICONCONVERTER_H |
22 #define ICONCONVERTER_H |
23 |
23 |
24 #include <e32base.h> |
24 #include <e32base.h> |
25 #include <fbs.h> |
25 #include <fbs.h> |
26 #include <imageconversion.h> |
26 #include <imageconversion.h> |
|
27 |
|
28 |
|
29 class CBitmapScaler; |
|
30 class TIconSizes; |
27 |
31 |
28 |
32 |
29 namespace java |
33 namespace java |
30 { |
34 { |
31 |
35 |
159 */ |
163 */ |
160 int ConvertScalableIconL( |
164 int ConvertScalableIconL( |
161 HBufC8* apIconBuf, |
165 HBufC8* apIconBuf, |
162 const TDesC &aOutputFile); |
166 const TDesC &aOutputFile); |
163 |
167 |
|
168 /** |
|
169 * Scale the original icon into the current temporary icon. |
|
170 */ |
|
171 void ScaleL(CBitmapScaler& aScaler, const TSize aSize); |
|
172 |
|
173 /** |
|
174 * Get the ideal icon sizes from UI, trough the ecom plugin notifier. |
|
175 */ |
|
176 TIconSizes GetIdealIconSizes(); |
164 |
177 |
165 private: |
178 private: |
166 /** |
179 /** |
167 * File server session. Shared with the caller. |
180 * File server session. Shared with the caller. |
168 * Do not close. |
181 * Do not close. |
174 * plugins in the S60 system to bitmap. |
187 * plugins in the S60 system to bitmap. |
175 */ |
188 */ |
176 CBufferedImageDecoder* iImageDecoder; |
189 CBufferedImageDecoder* iImageDecoder; |
177 |
190 |
178 /** |
191 /** |
179 * Pointer to bitmap generated from the icon |
192 * Pointer to bitmap generated from the icon. |
180 */ |
193 */ |
181 CFbsBitmap* iBitmap; |
194 CFbsBitmap* iBitmap; |
182 |
195 |
183 /** |
196 /** |
184 * Pointer to the bitmap mask generated from the icon. |
197 * Pointer to the bitmap mask generated from the icon. |
185 * May be NULL if the original icon not not have mask. |
|
186 */ |
198 */ |
187 CFbsBitmap* iBitmapMask; |
199 CFbsBitmap* iBitmapMask; |
188 |
200 |
|
201 /** |
|
202 * Scaled copy of the original icon bitmap. |
|
203 */ |
|
204 CFbsBitmap* iBitmapScaledCopy; |
|
205 |
|
206 /** |
|
207 * Scaled copy of the original icon mask. |
|
208 */ |
|
209 CFbsBitmap* iBitmapMaskScaledCopy; |
|
210 |
189 CActiveListener *iActiveListener; |
211 CActiveListener *iActiveListener; |
190 |
212 |
191 }; |
213 }; |
192 |
214 |
193 } // namespace java |
215 } // namespace java |