equal
deleted
inserted
replaced
23 #include <f32file.h> |
23 #include <f32file.h> |
24 |
24 |
25 class CVIMPSTDetailsHeaderControl; |
25 class CVIMPSTDetailsHeaderControl; |
26 class CImageDecoder; |
26 class CImageDecoder; |
27 class CFbsBitmap; |
27 class CFbsBitmap; |
|
28 class CBitmapScaler; |
28 |
29 |
29 /** |
30 /** |
30 * Utility class for asynchronously decoding the header thumbnail image |
31 * Utility class for asynchronously decoding the header thumbnail image |
31 * |
32 * |
32 * @lib vimpstdetailsviewplugin.dll |
33 * @lib vimpstdetailsviewplugin.dll |
54 /** |
55 /** |
55 * Starts the decoding process |
56 * Starts the decoding process |
56 * @since S60 v5.0 |
57 * @since S60 v5.0 |
57 * |
58 * |
58 */ |
59 */ |
59 void Start(); |
60 void StartL(TSize aBitmapSize); |
60 |
61 |
61 /** |
62 /** |
62 * From CActive |
63 * From CActive |
63 * (see details from baseclass ) |
64 * (see details from baseclass ) |
64 * @since S60 v5.0 |
65 * @since S60 v5.0 |
83 * Second phase constructor |
84 * Second phase constructor |
84 * @since S60 v5.0 |
85 * @since S60 v5.0 |
85 * @param aBitmapData Descriptor containing the bitmap data stream |
86 * @param aBitmapData Descriptor containing the bitmap data stream |
86 */ |
87 */ |
87 void ConstructL(const TDesC8& aBitmapData); |
88 void ConstructL(const TDesC8& aBitmapData); |
88 |
89 /** |
|
90 * Scales bitmap |
|
91 * |
|
92 */ |
|
93 void ScaleBitmapL(); |
|
94 |
|
95 enum TCcaImageDecoderState |
|
96 { |
|
97 ECcaConvertThumbnailImage = 1, |
|
98 ECcaScaleThumbnail, |
|
99 }; |
|
100 |
|
101 /** |
|
102 * Create bitmap |
|
103 * |
|
104 */ |
|
105 void CreateBitmapL(); |
89 private : // data |
106 private : // data |
90 |
107 |
91 |
108 |
92 /** |
109 /** |
93 * Not Owns : The header control to which the bitmap is to be inserted after loading |
110 * Not Owns : The header control to which the bitmap is to be inserted after loading |
113 |
130 |
114 /** |
131 /** |
115 * Owns : Copy of the bitmap data stream |
132 * Owns : Copy of the bitmap data stream |
116 */ |
133 */ |
117 HBufC8* iBitmapData; |
134 HBufC8* iBitmapData; |
|
135 |
|
136 /** |
|
137 * The image scaler whose service is called to scale the image |
|
138 * Own. |
|
139 */ |
|
140 CBitmapScaler* iBitmapScaler; |
|
141 |
|
142 TSize iBitmapSize; |
|
143 |
|
144 /** |
|
145 * Decoder internal state |
|
146 */ |
|
147 TInt iDecoderState; |
118 }; |
148 }; |
119 |
149 |
120 #endif /*CVIMPSTDETAILSIMAGEDECODER_H_*/ |
150 #endif /*CVIMPSTDETAILSIMAGEDECODER_H_*/ |