camerauis/cameraapp/generic/common/inc/CamSettings.hrh
changeset 0 1ddebce53859
child 16 d486e5e3cc9a
equal deleted inserted replaced
-1:000000000000 0:1ddebce53859
       
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Contains constants which define the configuration of the camera
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAMSETTINGS_HRH
       
    20 #define CAMSETTINGS_HRH
       
    21 
       
    22 #include <pathconfiguration.hrh>
       
    23  
       
    24 #include <bldvariant.hrh>
       
    25 
       
    26 
       
    27 // DATA TYPES
       
    28 
       
    29 
       
    30 
       
    31 // Ids for camera statup mode
       
    32 // Values associated with the key "DefaultCaptureMode" for 
       
    33 // the shared.ini file
       
    34 enum TCamStartupMode
       
    35     {
       
    36     ECamStillCapture,
       
    37     ECamVideoCapture,
       
    38     ECamBurstCapture
       
    39     };
       
    40 
       
    41 // Ids for different white balance settings
       
    42 // Values associated with the key "UserSceneWhiteBalance" for 
       
    43 // the shared.ini file
       
    44 enum TCamWhiteBalanceId
       
    45     {
       
    46     ECamWhiteBalanceAWB	,
       
    47     ECamWhiteBalanceDaylight,
       
    48     ECamWhiteBalanceCloudy,
       
    49     ECamWhiteBalanceTungsten,
       
    50     ECamWhiteBalanceFlourescent,
       
    51     ECamWhiteBalanceMax
       
    52     };
       
    53 
       
    54 // Ids for different exposure values (dynamic)
       
    55 // Values associated with the key "UserSceneExposure" for 
       
    56 // the shared.ini file
       
    57 // IMPORTANT: These values must be in order from lowest
       
    58 // to highest. Otherwise, the mapping function ConvertSettingsModelEvToCameraAPIEv
       
    59 // will not work correctly.
       
    60 enum TCamExposureId
       
    61     {
       
    62     ECamExposureMinusTwo = -4,
       
    63     ECamExposureMinusOnePointFive = -3,
       
    64     ECamExposureMinusOne = -2,
       
    65     ECamExposureMinusPointFive = -1,
       
    66     ECamExposureZero = 0,
       
    67     ECamExposurePointFive = 1,
       
    68     ECamExposureOne = 2,
       
    69     ECamExposureOnePointFive = 3,
       
    70     ECamExposureTwo = 4,
       
    71     ECamExposureMax = ECamExposureTwo
       
    72     };
       
    73 
       
    74 // Ids for different colour filter settings 
       
    75 // Values associated with the key "UserSceneColourFilter" for 
       
    76 // the shared.ini file
       
    77 enum TCamColourFilterId
       
    78     {
       
    79     ECamColourFilterColour,
       
    80     ECamColourFilterBlackAndWhite,
       
    81     ECamColourFilterSepia,
       
    82     ECamColourFilterNegative,
       
    83     ECamColourFilterVivid,
       
    84     ECamColourFilterMax
       
    85     };
       
    86 
       
    87 // Ids for different flash settings
       
    88 // Values associated with the key "UserSceneFlash" for 
       
    89 // the shared.ini file
       
    90 enum TCamFlashId
       
    91     {
       
    92     ECamFlashOff,
       
    93     ECamFlashAuto,
       
    94     ECamFlashForced,
       
    95     ECamFlashAntiRedEye,
       
    96     ECamFlashLastItem
       
    97     };
       
    98 
       
    99 
       
   100 // Ids for different media storage
       
   101 // Values associated with the keys "PhotoMemInUse" and "VideoMemInUse" 
       
   102 // for the shared.ini file
       
   103 // ECamMediaStorageCurrent indicates use current media storage
       
   104 // ECamMediaStorageNone indicates an uninitialised state
       
   105 // IMPORTANT: These values are mapped in the camUtility file to
       
   106 // CAknMemorySelectionDialog::TMemory values used in the settings list
       
   107 // page for selecting the memory in use
       
   108 enum TCamMediaStorage
       
   109     {
       
   110     ECamMediaStorageNone,
       
   111     ECamMediaStoragePhone,
       
   112     ECamMediaStorageCard,
       
   113     ECamMediaStorageMassStorage,
       
   114     ECamMediaStorageCurrent
       
   115     };
       
   116     
       
   117     
       
   118 // Ids for different light sensitivities
       
   119 enum TCamLightSensitivityId
       
   120     {
       
   121     ECamLightSensitivityAuto,
       
   122     ECamLightSensitivityLow,
       
   123     ECamLightSensitivityLowMed,
       
   124     ECamLightSensitivityMed,
       
   125     ECamLightSensitivityMedHigh,
       
   126     ECamLightSensitivityHigh    
       
   127     };
       
   128 
       
   129 
       
   130 // <CAMERAAPP_CAPI_V2_MIGRATION>
       
   131 // The actual ISO rate identifier.
       
   132 // Mapped from TCamLightSensitivityId in product configuration.
       
   133 enum TCamIsoRate
       
   134   {
       
   135   ECamIsoRateAuto =    0,
       
   136   ECamIsoRate50   =   50,
       
   137   ECamIsoRate100  =  100,
       
   138   ECamIsoRate200  =  200,
       
   139   ECamIsoRate400  =  400,
       
   140   ECamIsoRate800  =  800,
       
   141   ECamIsoRate1600 = 1600,
       
   142   ECamIsoRate3200 = 3200
       
   143   };
       
   144 // </CAMERAAPP_CAPI_V2_MIGRATION>
       
   145 
       
   146 
       
   147 // Ids for video clip length
       
   148 // Values associated with the key "VideoClipLen" for the shared.ini file
       
   149 enum TCamVideoClipLength
       
   150     {
       
   151     ECamVideoClipMax,
       
   152     ECamVideoClipShort
       
   153     };
       
   154 
       
   155 
       
   156 // No/Yes settings options
       
   157 // Values associated with the keys "PhotoStoreAlbum" and "VideoStoreAlbum" 
       
   158 // for the shared.ini file
       
   159 enum TCamSettingsNoYes
       
   160     {
       
   161     ECamSettNo,
       
   162     ECamSettYes
       
   163     };
       
   164 
       
   165 // On/off settings options
       
   166 // Values associated with the keys "PhotoFocusPoint", "PhotoShowCaptured",
       
   167 // "VideoAudRec" and "VideoShowCaptured", "ContinuosAutofocus" for the shared.ini file  
       
   168 enum TCamSettingsOnOff
       
   169     {
       
   170     ECamSettOn,
       
   171     ECamSettOff
       
   172     };
       
   173 
       
   174 // Values for the settings of zoom.
       
   175 enum TCamSettingsDigitalZoom
       
   176     {
       
   177     // If product does not support paused extended zoom, then only "normal continuous" and "exteneded continuous"
       
   178     // options are available. The values are thenused as booleans so one of them needs to be zero ("false").
       
   179 
       
   180     ECamSettDigZoomNormalCont  = 0x00, // Basic digital zoom enabled, no pause on optical-digital zoom boundary
       
   181     ECamSettDigZoomExtendCont  = 0x01, // Extended zoom enabled, no pauses on zoom barriers
       
   182     ECamSettDigZoomNormalPause = 0x02, // Basic digital zoom enabled, pause on optical-digital zoom boundary
       
   183     ECamSettDigZoomExtendPause = 0x03, // Extended zoom enabled, pause on optical-digital-extended zoom boundaries
       
   184     ECamSettDigZoomNone        = 0x04  // Digital and extended zoom disabled
       
   185     };
       
   186 
       
   187 
       
   188 // Capture tone settings
       
   189 // Values associated with the key "PhotoCaptureTone"
       
   190 enum TCamSettingsCaptureTone
       
   191     {
       
   192     ECamSettTone1,
       
   193     ECamSettTone2,
       
   194     ECamSettTone3,
       
   195     ECamSettTone4
       
   196     };
       
   197 
       
   198 // File name base type settings
       
   199 // Values associated with the keys "ImgNamType" and "VidNamType" for 
       
   200 // the shared.ini file
       
   201 enum TCamNameBaseType
       
   202     {
       
   203     ECamNameBaseDate,
       
   204     ECamNameBaseText
       
   205     };
       
   206 
       
   207 // Ids for different brightness settings (dynamic)
       
   208 enum TCamBrightnessId
       
   209     {
       
   210     ECamBrightnessNorm,
       
   211     ECamBrightnessPlus,
       
   212     ECamBrightnessNeg
       
   213     };
       
   214 
       
   215 // Ids for different contrast settings (dynamic)
       
   216 enum TCamContrastId
       
   217     {
       
   218     ECamContrastNorm,
       
   219     ECamContrastPlus,
       
   220     ECamContrastNeg
       
   221     };
       
   222 
       
   223 // Ids for different self-timer settings (dynamic)
       
   224 enum TCamSelfTimerId
       
   225     {
       
   226     ECamSelfTimerOff,
       
   227     ECamSelfTimer2,
       
   228     ECamSelfTimer10,
       
   229     ECamSelfTimer20    
       
   230     };
       
   231     
       
   232 // Ids for different image sharpness settings (dynamic)
       
   233 enum TCamImageSharpnessId
       
   234     {
       
   235     ECamImageSharpnessHard,
       
   236     ECamImageSharpnessNorm,
       
   237     ECamImageSharpnessSoft    
       
   238     };
       
   239 
       
   240 // Ids for different colour saturation settings (dynamic)
       
   241 enum TCamColourSaturationId
       
   242     {
       
   243     ECamColourSaturationNorm,
       
   244     ECamColourSaturationPlus,
       
   245     ECamColourSaturationNeg
       
   246     };
       
   247 
       
   248 enum TCamFlickerCancellation
       
   249 	{
       
   250 	ECamFlickerCancellation50Hz,
       
   251 	ECamFlickerCancellation60Hz
       
   252 	};
       
   253 
       
   254 enum TCamImageOrientation
       
   255   {
       
   256   ECamOrientation0,
       
   257   ECamOrientation90,
       
   258   ECamOrientation180,
       
   259   ECamOrientation270,
       
   260   ECamOrientationIgnore,
       
   261   ECamOrientationCount
       
   262   };
       
   263 
       
   264 enum T2ndCamOrientation   
       
   265     {
       
   266     E2ndCamUnknown,
       
   267     E2ndCamAuto,    // Follows qwerty state 
       
   268     E2ndCamPortraitForced,  
       
   269     E2ndCamLandscapeForced
       
   270     };
       
   271       
       
   272 enum TCameraSwitchRequired  
       
   273     {
       
   274     ESwitchDone,  
       
   275     ESwitchToUnknown,  
       
   276     ESwitchPrimaryToSecondary, 
       
   277     ESwitchSecondaryToPrimary, 
       
   278     ESwitchSecondaryOrientation
       
   279     };
       
   280 
       
   281 #ifdef _DEBUG
       
   282 #ifndef CAMERAAPP_PLUGIN_BUILD
       
   283 const TUint16* const KCamOrientationNames[] =
       
   284   {
       
   285   (const TUint16* const)_S16("ECamOrientation0"),
       
   286   (const TUint16* const)_S16("ECamOrientation90"),
       
   287   (const TUint16* const)_S16("ECamOrientation180"),
       
   288   (const TUint16* const)_S16("ECamOrientation270"),
       
   289   (const TUint16* const)_S16("ECamOrientationIgnore")
       
   290   };
       
   291 __ASSERT_COMPILE( (sizeof(KCamOrientationNames)/sizeof(TUint16*)) == ECamOrientationCount );
       
   292 #endif // CAMERAAPP_PLUGIN_BUILD
       
   293 #endif // _DEBUG
       
   294 
       
   295 #endif // CAMSETTINGS_HRH