camerauis/cameraapp/generic/GsCamcorderPlugin/src/GSCamQualitySettingContainer.cpp
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
64 CCoeControl* aParent ) |
64 CCoeControl* aParent ) |
65 : iController( aController ), |
65 : iController( aController ), |
66 iParent( aParent ), |
66 iParent( aParent ), |
67 iMode ( aMode ) |
67 iMode ( aMode ) |
68 { |
68 { |
69 TInt key = (ECamControllerVideo == iMode) |
69 |
70 ? ECamSettingItemVideoMediaStorage |
|
71 : ECamSettingItemPhotoMediaStorage; |
|
72 // Get the total remaining record time from the controller |
|
73 iStorageLocation = |
|
74 static_cast<TCamMediaStorage>( iController.IntegerSettingValue( key ) ); |
|
75 } |
70 } |
76 |
71 |
77 // ----------------------------------------------------------------------------- |
72 // ----------------------------------------------------------------------------- |
78 // CGSCamQualitySettingContainer::ConstructL |
73 // CGSCamQualitySettingContainer::ConstructL |
79 // Symbian 2nd phase constructor can leave. |
74 // Symbian 2nd phase constructor can leave. |
563 // Draw the icon for the media storage location |
558 // Draw the icon for the media storage location |
564 // --------------------------------------------------------- |
559 // --------------------------------------------------------- |
565 // |
560 // |
566 void CGSCamQualitySettingContainer::DrawStorageIcon( CWindowGc& aGc ) const |
561 void CGSCamQualitySettingContainer::DrawStorageIcon( CWindowGc& aGc ) const |
567 { |
562 { |
|
563 TInt key = (ECamControllerVideo == iMode) |
|
564 ? ECamSettingItemVideoMediaStorage |
|
565 : ECamSettingItemPhotoMediaStorage; |
|
566 TCamMediaStorage storageLocation = |
|
567 static_cast<TCamMediaStorage>( iController.IntegerSettingValue( key ) ); |
568 CFbsBitmap* icon = NULL; |
568 CFbsBitmap* icon = NULL; |
569 CFbsBitmap* mask = NULL; |
569 CFbsBitmap* mask = NULL; |
570 |
570 |
571 switch( iStorageLocation ) |
571 switch( storageLocation ) |
572 { |
572 { |
573 case ECamMediaStoragePhone: |
573 case ECamMediaStoragePhone: |
574 { |
574 { |
575 icon = iPhoneIcon; |
575 icon = iPhoneIcon; |
576 mask = iPhoneIconMask; |
576 mask = iPhoneIconMask; |