camerauis/cameraapp/generic/GsCamcorderPlugin/src/GSCamQualitySettingContainer.cpp
branchRCL_3
changeset 16 d486e5e3cc9a
parent 0 1ddebce53859
child 18 51dda465e618
equal deleted inserted replaced
12:8c55c525d5d7 16:d486e5e3cc9a
   565 //
   565 //
   566 void CGSCamQualitySettingContainer::DrawStorageIcon( CWindowGc& aGc ) const
   566 void CGSCamQualitySettingContainer::DrawStorageIcon( CWindowGc& aGc ) const
   567     {
   567     {
   568     CFbsBitmap* icon = NULL;
   568     CFbsBitmap* icon = NULL;
   569     CFbsBitmap* mask = NULL;
   569     CFbsBitmap* mask = NULL;
   570     if ( iStorageLocation == ECamMediaStoragePhone )
   570 
       
   571     switch( iStorageLocation )
   571         {
   572         {
   572         icon = iPhoneIcon;
   573         case ECamMediaStoragePhone:
   573         mask = iPhoneIconMask;
   574             {
   574         }
   575             icon = iPhoneIcon;
   575     else if ( iStorageLocation == ECamMediaStorageMassStorage )
   576             mask = iPhoneIconMask;
   576         {
   577             }
   577         icon = iMassStorageIcon;
   578             break;
   578         mask = iMassStorageIconMask;
   579         case ECamMediaStorageMassStorage:
   579         }
   580             {
   580     else
   581             icon = iMassStorageIcon;
   581         {
   582             mask = iMassStorageIconMask;
   582         icon = iMMCIcon;
   583             }
   583         mask = iMMCIconMask;
   584             break;            
       
   585         case ECamMediaStorageCard:
       
   586             {
       
   587             icon = iMMCIcon;
       
   588             mask = iMMCIconMask;
       
   589             }
       
   590             break;            
       
   591         case ECamMediaStorageNone:
       
   592         default:
       
   593             {
       
   594             //TODO: Get icons when none is available
       
   595             }
       
   596             break;
   584         }
   597         }
   585 
   598 
   586     iLayoutIcon.DrawImage( aGc, icon, mask );
   599     iLayoutIcon.DrawImage( aGc, icon, mask );
   587     }
   600     }
   588 
   601