omadrm/drmplugins/drmromtm/uiData/src/RoMtmDat.cpp
branchRCL_3
changeset 27 1481bf457703
parent 26 1221b68b8a5f
equal deleted inserted replaced
26:1221b68b8a5f 27:1481bf457703
    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>
    43 #include <mtmuids.h>
    44 #include <mtmuids.h>
    44 #include <mtmuidef.hrh>
    45 #include <mtmuidef.hrh>
    45 #include <stringresourcereader.h>
    46 #include <stringresourcereader.h>
    46 #include <avkon.rsg>
    47 #include <avkon.rsg>
    47 #include <data_caging_path_literals.hrh>
    48 #include <data_caging_path_literals.hrh>
   558 // ---------------------------------------------------------
   559 // ---------------------------------------------------------
   559 void CRightsObjectMtmUiData::CreateSkinnedBitmapsL( TInt aNumZoomStates )
   560 void CRightsObjectMtmUiData::CreateSkinnedBitmapsL( TInt aNumZoomStates )
   560     {
   561     {
   561     MAknsSkinInstance* skins = AknsUtils::SkinInstance();
   562     MAknsSkinInstance* skins = AknsUtils::SkinInstance();
   562     TAknsItemID id;
   563     TAknsItemID id;
   563     //CFbsBitmap* bitmap;
   564     CFbsBitmap* bitmap;
   564     //CFbsBitmap* bitmapMask;
   565     CFbsBitmap* bitmapMask;
   565     CBitmapArray* array = NULL;
   566     CBitmapArray* array = NULL;
   566     TParse tp;
   567     TParse tp;
   567     tp.Set( KRoMtmUiDataBitmapFile, &KDC_APP_BITMAP_DIR, NULL );
   568     tp.Set( KRoMtmUiDataBitmapFile, &KDC_APP_BITMAP_DIR, NULL );
   568 
   569 
   569     array = new(ELeave) CArrayPtrFlat<CFbsBitmap>( aNumZoomStates );
   570     array = new(ELeave) CArrayPtrFlat<CFbsBitmap>( aNumZoomStates );
   570     CleanupStack::PushL( array );
   571     CleanupStack::PushL( array );
   571     
   572     
   572     id.Set( KAknsIIDQgnPropMcePushUnread );
   573     id.Set( KAknsIIDQgnPropMcePushUnread );
   573 
   574 
       
   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;
   574     iIconArrays->AppendL( array );
   583     iIconArrays->AppendL( array );
   575     CleanupStack::Pop(); //array
   584     CleanupStack::Pop(); //array
   576     
   585     
   577     array = new(ELeave) CArrayPtrFlat<CFbsBitmap>( aNumZoomStates );
   586     array = new(ELeave) CArrayPtrFlat<CFbsBitmap>( aNumZoomStates );
   578     CleanupStack::PushL( array );
   587     CleanupStack::PushL( array );
   579     
   588     
   580     id.Set( KAknsIIDQgnPropMcePushRead );
   589     id.Set( KAknsIIDQgnPropMcePushRead );
   581 
   590 
       
   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;
   582     iIconArrays->AppendL( array );
   599     iIconArrays->AppendL( array );
   583     CleanupStack::Pop(); //array
   600     CleanupStack::Pop(); //array
   584     }
   601     }