camerauis/cameraapp/generic/src/CamNaviProgressBarModel.cpp
branchRCL_3
changeset 16 d486e5e3cc9a
parent 0 1ddebce53859
child 35 e32fcfe0045f
--- a/camerauis/cameraapp/generic/src/CamNaviProgressBarModel.cpp	Mon Mar 15 12:39:00 2010 +0200
+++ b/camerauis/cameraapp/generic/src/CamNaviProgressBarModel.cpp	Wed Mar 31 21:06:44 2010 +0300
@@ -344,21 +344,33 @@
 
     CFbsBitmap* icon = NULL;
     CFbsBitmap* mask = NULL;
-    if ( iStorageLocation == ECamMediaStoragePhone )
-        {
-        icon = iPhoneIcon;
-        mask = iPhoneIconMask;
-        }
-    else if ( iStorageLocation == ECamMediaStorageMassStorage )
-        {
-        icon = iMassStorageIcon;
-        mask = iMassStorageIconMask;
-        }
-    else
-        {
-        icon = iMMCIcon;
-        mask = iMMCIconMask;
-        }
+    switch( iStorageLocation )
+      {
+      case ECamMediaStoragePhone:
+          {
+          icon = iPhoneIcon;
+          mask = iPhoneIconMask;
+          }
+          break;
+      case ECamMediaStorageMassStorage:
+          {
+          icon = iMassStorageIcon;
+          mask = iMassStorageIconMask;
+          }
+          break;            
+      case ECamMediaStorageCard:
+          {
+          icon = iMMCIcon;
+          mask = iMMCIconMask;
+          }
+          break;            
+      case ECamMediaStorageNone:
+      default:
+          {
+          //TODO: Get icons when none is available
+          }
+          break;
+      }
 
     DrawElapsedTimeText( aGc );
     DrawRemainingTimeText( aGc, skin );