equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 // INCLUDES |
19 // INCLUDES |
20 |
20 |
21 #include "rphcltimagehandler.h" |
21 #include "RPhCltImageHandler.h" |
22 #include "phcltclientserver.h" |
22 #include "PhCltClientServer.h" |
23 #include <rphcltserver.h> |
23 #include <RPhCltServer.h> |
24 #include <e32std.h> |
24 #include <e32std.h> |
25 #include <e32base.h> |
25 #include <e32base.h> |
26 #include <fbs.h> |
26 #include <fbs.h> |
27 |
27 |
28 // ============================ MEMBER FUNCTIONS =============================== |
28 // ============================ MEMBER FUNCTIONS =============================== |
182 aImages.iImages[ EPhCltExtCountryCodeIndex ], |
182 aImages.iImages[ EPhCltExtCountryCodeIndex ], |
183 aImages.iImages[ EPhCltExtNetworkCodeIndex ], |
183 aImages.iImages[ EPhCltExtNetworkCodeIndex ], |
184 ( TPhCltExtOperatorLogoType ) |
184 ( TPhCltExtOperatorLogoType ) |
185 aImages.iImages[ EPhCltExtLogoTypeIndex ], |
185 aImages.iImages[ EPhCltExtLogoTypeIndex ], |
186 bitMap ); |
186 bitMap ); |
187 CleanupStack::PushL(logo); |
187 iOperatorLogos.Append( logo ); |
188 iOperatorLogos.AppendL( logo ); |
|
189 CleanupStack::Pop(logo); |
|
190 } |
188 } |
191 } |
189 } |
192 |
190 |
193 // ----------------------------------------------------------------------------- |
191 // ----------------------------------------------------------------------------- |
194 // RPhCltImageHandler::CopyStillsL |
192 // RPhCltImageHandler::CopyStillsL |
198 // |
196 // |
199 void RPhCltImageHandler::CopyStillsL( TPhCltImageArray& aImages ) |
197 void RPhCltImageHandler::CopyStillsL( TPhCltImageArray& aImages ) |
200 { |
198 { |
201 // Remove all first. |
199 // Remove all first. |
202 iVTBitMaps.ResetAndDestroy(); |
200 iVTBitMaps.ResetAndDestroy(); |
203 iVTBitMaps.ReserveL(aImages.iImageCount); |
201 |
204 for ( TInt i = 0 ; i < aImages.iImageCount; i ++ ) |
202 for ( TInt i = 0 ; i < aImages.iImageCount; i ++ ) |
205 { |
203 { |
206 CFbsBitmap* bitMap = |
204 CFbsBitmap* bitMap = |
207 CreateBitMapL( aImages.iImages[ i ] ); |
205 CreateBitMapL( aImages.iImages[ i ] ); |
208 CleanupStack::PushL( bitMap ); |
206 iVTBitMaps.Append( bitMap ); |
209 iVTBitMaps.AppendL( bitMap ); |
|
210 CleanupStack::Pop(bitMap); |
|
211 } |
207 } |
212 } |
208 } |
213 |
209 |
214 // ----------------------------------------------------------------------------- |
210 // ----------------------------------------------------------------------------- |
215 // RPhCltImageHandler::CreateBitMapL |
211 // RPhCltImageHandler::CreateBitMapL |