phoneclientserver/phoneclient/Src/ImageHandler/RPhCltImageHandler.cpp
branchRCL_3
changeset 19 7d48bed6ce0c
parent 0 ff3b6d0fd310
child 20 987c9837762f
equal deleted inserted replaced
18:594d59766373 19:7d48bed6ce0c
    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         iOperatorLogos.Append( logo );
   187         CleanupStack::PushL(logo);
       
   188         iOperatorLogos.AppendL( logo );
       
   189         CleanupStack::Pop(logo);
   188         }
   190         }
   189     }
   191     }
   190 
   192 
   191 // -----------------------------------------------------------------------------
   193 // -----------------------------------------------------------------------------
   192 // RPhCltImageHandler::CopyStillsL
   194 // RPhCltImageHandler::CopyStillsL
   196 //   
   198 //   
   197 void RPhCltImageHandler::CopyStillsL( TPhCltImageArray& aImages ) 
   199 void RPhCltImageHandler::CopyStillsL( TPhCltImageArray& aImages ) 
   198     {
   200     {
   199     // Remove all first.
   201     // Remove all first.
   200     iVTBitMaps.ResetAndDestroy();
   202     iVTBitMaps.ResetAndDestroy();
   201 
   203     iVTBitMaps.ReserveL(aImages.iImageCount);
   202     for ( TInt i = 0 ; i < aImages.iImageCount; i ++ )
   204     for ( TInt i = 0 ; i < aImages.iImageCount; i ++ )
   203         {
   205         {
   204         CFbsBitmap* bitMap = 
   206         CFbsBitmap* bitMap = 
   205             CreateBitMapL( aImages.iImages[ i ] );
   207             CreateBitMapL( aImages.iImages[ i ] );
   206         iVTBitMaps.Append( bitMap );
   208         CleanupStack::PushL( bitMap );
       
   209         iVTBitMaps.AppendL( bitMap );
       
   210         CleanupStack::Pop(bitMap);
   207         }
   211         }
   208     }
   212     }
   209 
   213 
   210 // -----------------------------------------------------------------------------
   214 // -----------------------------------------------------------------------------
   211 // RPhCltImageHandler::CreateBitMapL
   215 // RPhCltImageHandler::CreateBitMapL