omadrm/drmplugins/drmromtm/uiData/src/RoMtmDat.cpp
branchRCL_3
changeset 26 1221b68b8a5f
parent 12 8a03a285ab14
child 27 1481bf457703
equal deleted inserted replaced
25:50c53e893c3f 26:1221b68b8a5f
    38 #include <msvids.h>
    38 #include <msvids.h>
    39 #endif
    39 #endif
    40 
    40 
    41 #include <msvapi.h>
    41 #include <msvapi.h>
    42 #include <RoMtmUi.rsg>
    42 #include <RoMtmUi.rsg>
    43 #include <muiu.mbg>
       
    44 #include <mtmuids.h>
    43 #include <mtmuids.h>
    45 #include <mtmuidef.hrh>
    44 #include <mtmuidef.hrh>
    46 #include <stringresourcereader.h>
    45 #include <stringresourcereader.h>
    47 #include <avkon.rsg>
    46 #include <avkon.rsg>
    48 #include <data_caging_path_literals.hrh>
    47 #include <data_caging_path_literals.hrh>
   559 // ---------------------------------------------------------
   558 // ---------------------------------------------------------
   560 void CRightsObjectMtmUiData::CreateSkinnedBitmapsL( TInt aNumZoomStates )
   559 void CRightsObjectMtmUiData::CreateSkinnedBitmapsL( TInt aNumZoomStates )
   561     {
   560     {
   562     MAknsSkinInstance* skins = AknsUtils::SkinInstance();
   561     MAknsSkinInstance* skins = AknsUtils::SkinInstance();
   563     TAknsItemID id;
   562     TAknsItemID id;
   564     CFbsBitmap* bitmap;
   563     //CFbsBitmap* bitmap;
   565     CFbsBitmap* bitmapMask;
   564     //CFbsBitmap* bitmapMask;
   566     CBitmapArray* array = NULL;
   565     CBitmapArray* array = NULL;
   567     TParse tp;
   566     TParse tp;
   568     tp.Set( KRoMtmUiDataBitmapFile, &KDC_APP_BITMAP_DIR, NULL );
   567     tp.Set( KRoMtmUiDataBitmapFile, &KDC_APP_BITMAP_DIR, NULL );
   569 
   568 
   570     array = new(ELeave) CArrayPtrFlat<CFbsBitmap>( aNumZoomStates );
   569     array = new(ELeave) CArrayPtrFlat<CFbsBitmap>( aNumZoomStates );
   571     CleanupStack::PushL( array );
   570     CleanupStack::PushL( array );
   572     
   571     
   573     id.Set( KAknsIIDQgnPropMcePushUnread );
   572     id.Set( KAknsIIDQgnPropMcePushUnread );
   574 
   573 
   575     AknsUtils::CreateIconL( skins, id, bitmap,
       
   576         bitmapMask, tp.FullName(), EMbmMuiuQgn_prop_mce_push_unread,
       
   577         EMbmMuiuQgn_prop_mce_push_unread_mask );
       
   578              
       
   579     array->AppendL( bitmap );
       
   580     bitmap = 0;
       
   581     array->AppendL( bitmapMask );
       
   582     bitmapMask = 0;
       
   583     iIconArrays->AppendL( array );
   574     iIconArrays->AppendL( array );
   584     CleanupStack::Pop(); //array
   575     CleanupStack::Pop(); //array
   585     
   576     
   586     array = new(ELeave) CArrayPtrFlat<CFbsBitmap>( aNumZoomStates );
   577     array = new(ELeave) CArrayPtrFlat<CFbsBitmap>( aNumZoomStates );
   587     CleanupStack::PushL( array );
   578     CleanupStack::PushL( array );
   588     
   579     
   589     id.Set( KAknsIIDQgnPropMcePushRead );
   580     id.Set( KAknsIIDQgnPropMcePushRead );
   590 
   581 
   591     AknsUtils::CreateIconL( skins, id, bitmap,
       
   592         bitmapMask, tp.FullName(), EMbmMuiuQgn_prop_mce_push_read,
       
   593         EMbmMuiuQgn_prop_mce_push_read_mask );
       
   594              
       
   595     array->AppendL( bitmap );
       
   596     bitmap = 0;
       
   597     array->AppendL( bitmapMask );
       
   598     bitmapMask = 0;
       
   599     iIconArrays->AppendL( array );
   582     iIconArrays->AppendL( array );
   600     CleanupStack::Pop(); //array
   583     CleanupStack::Pop(); //array
   601     }
   584     }