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 } |