camerauis/cameraxui/cxengine/inc/cxesettingsmappersymbian.h
changeset 48 42ba2d16bf40
parent 19 d9aefe59d544
equal deleted inserted replaced
37:64817133cd1d 48:42ba2d16bf40
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-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".
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
    17 /*
    17 #ifndef CXESETTINGSMAPPERSYMBIAN_H
    18  * cxesettings.h
    18 #define CXESETTINGSMAPPERSYMBIAN_H
    19  *
       
    20  *  Created on: Dec 30, 2008
       
    21  *
       
    22  */
       
    23 #ifndef CXESETTINGSMAPPERSYMBIAN_H_
       
    24 #define CXESETTINGSMAPPERSYMBIAN_H_
       
    25 
    19 
    26 #include <ecam.h>
    20 #include <ecam.h>
    27 #include <ecamadvsettings.h>
    21 #include <ecamadvsettings.h>
    28 #include <ECamOrientationCustomInterface2.h>
    22 #include <ECamOrientationCustomInterface2.h>
       
    23 #include <ecamusecasehintcustomapi.h>
    29 #include "cxeautofocuscontrol.h"
    24 #include "cxeautofocuscontrol.h"
    30 #include "cxenamespace.h"
    25 #include "cxenamespace.h"
    31 /*
    26 #include "cxequalitydetails.h"
    32 * Class to access all kind of Settings
    27 
       
    28 /*!
       
    29     Map CameraX specific enums to ECam equivalents
    33 */
    30 */
    34 class CxeSettingsMapperSymbian
    31 class CxeSettingsMapperSymbian
    35 {
    32 {
    36 
    33 public:
    37   public: // mappings functions that maps UI enum value to CCamera specific enum
    34     static CCamera::TWhiteBalance Map2CameraWb(Cxe::Whitebalance whiteBalance);
    38     static CCamera::TWhiteBalance Map2CameraWb(int aWbId );
    35     static CCamera::TFlash Map2CameraFlash(Cxe::FlashMode flashMode);
    39     static CCamera::TFlash Map2CameraFlash(int aFlashId );
    36     static CCamera::TExposure Map2CameraExposureMode(
    40     static CCamera::TExposure Map2CameraExposureMode(int aExpModeId );
    37             Cxe::ExposureMode exposureMode);
    41     static CCamera::CCameraImageProcessing::TEffect Map2CameraEffect(int aColourFilterId );
    38     static CCamera::CCameraImageProcessing::TEffect Map2CameraEffect(
    42     static CCamera::CCameraAdvancedSettings::TFocusRange Map2CameraAutofocus(CxeAutoFocusControl::Mode afMode);
    39             Cxe::Colortone colorTone);
    43 	static MCameraOrientation::TOrientation Map2CameraOrientation(Cxe::DeviceOrientation orientation);
    40     static CCamera::CCameraAdvancedSettings::TFocusRange Map2CameraAutofocus(
       
    41             CxeAutoFocusControl::Mode afMode);
       
    42     static MCameraOrientation::TOrientation Map2CameraOrientation(
       
    43             Cxe::DeviceOrientation orientation);
       
    44     static void Map2UseCaseHintVideoParameters(
       
    45             const CxeVideoDetails &videoDetails,
       
    46             MCameraUseCaseHint::TVideoCodec &codec,
       
    47             MCameraUseCaseHint::TVideoProfile &profile);
    44 };
    48 };
    45 
    49 
    46 #endif /*CXESETTINGSMAPPERSYMBIAN_H_*/
    50 #endif /*CXESETTINGSMAPPERSYMBIAN_H*/
    47 
    51 
    48 // end  of file
    52 // end  of file