camerauis/cameraxui/cxengine/inc/api/cxenamespace.h
changeset 19 d9aefe59d544
child 21 fa6d9f75d6a6
child 28 3075d9b614e6
equal deleted inserted replaced
3:8b2d6d0384b0 19:d9aefe59d544
       
     1 /*
       
     2 * Copyright (c) 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CXENUMS_H
       
    19 #define CXENUMS_H
       
    20 
       
    21 #include <QVariant>
       
    22 
       
    23 typedef QVariantMap CxeScene;
       
    24 
       
    25 
       
    26 namespace Cxe
       
    27 {
       
    28     enum CameraIndex
       
    29     {
       
    30         //! Primary camera index
       
    31         PrimaryCameraIndex   = 0,
       
    32 
       
    33         //! Secondary camera index. Secondary camera points at the user.
       
    34         SecondaryCameraIndex = 1
       
    35     };
       
    36 
       
    37 
       
    38     /**
       
    39      * Engine operating mode
       
    40      */
       
    41     enum CameraMode
       
    42     {
       
    43         //! Still image capture mode
       
    44         ImageMode,
       
    45 
       
    46         //! Video recording mode
       
    47         VideoMode
       
    48     };
       
    49 
       
    50 
       
    51     enum FlashMode
       
    52     {
       
    53         FlashAuto = 0,
       
    54         FlashAntiRedEye,
       
    55         FlashOn,
       
    56         FlashOff
       
    57     };
       
    58 
       
    59     enum ExposureMode
       
    60     {
       
    61         ExposureAuto = 0,
       
    62         ExposureBacklight,
       
    63         ExposureSport,
       
    64         ExposureNight
       
    65     };
       
    66 
       
    67     enum Colortone
       
    68     {
       
    69         ColortoneNormal = 0,
       
    70         ColortoneSepia,
       
    71         ColortoneNegative,
       
    72         ColortoneBlackAndWhite,
       
    73         ColortoneVivid
       
    74     };
       
    75 
       
    76     enum Whitebalance
       
    77     {
       
    78         WhitebalanceAutomatic = 0,
       
    79         WhitebalanceSunny,
       
    80         WhitebalanceCloudy,
       
    81         WhitebalanceIncandescent,
       
    82         WhitebalanceFluorescent
       
    83     };
       
    84 
       
    85     enum Sharpness
       
    86     {
       
    87         SharpnessHard = 100,
       
    88         SharpnessNormal = 0,
       
    89         SharpnessSoft = -100
       
    90     };
       
    91 
       
    92     enum LightSensitivity
       
    93     {
       
    94         LightSensitivityAutomatic,
       
    95         LightSensitivityLow,
       
    96         LightSensitivityMedium,
       
    97         LightSensitivityHigh
       
    98     };
       
    99 
       
   100     enum DeviceOrientation
       
   101     {
       
   102         Orientation0,
       
   103         Orientation90,
       
   104         Orientation180,
       
   105         Orientation270,
       
   106         OrientationNone  // Data is invalid or ignored for camera app use cases
       
   107     };
       
   108 
       
   109     enum AspectRatio
       
   110     {
       
   111         AspectRatio4to3, // standard
       
   112         AspectRatio16to9 // wide screen
       
   113     };
       
   114 
       
   115     enum SettingKeyType
       
   116     {
       
   117         Repository, // repository key
       
   118         PublishAndSubscribe // P&S key
       
   119     };
       
   120 }
       
   121 
       
   122 namespace CxeSettingIds
       
   123 {
       
   124     // Setting Ids
       
   125     static const char* FOCAL_RANGE                             = "focal_range";
       
   126     static const char* FLASH_MODE                              = "flash_mode";
       
   127     static const char* WHITE_BALANCE                           = "white_balance";
       
   128     static const char* LIGHT_SENSITIVITY                       = "light_sensitivity";
       
   129     static const char* EXPOSURE_MODE                           = "exposure_mode";
       
   130     static const char* SHARPNESS                               = "sharpness";
       
   131     static const char* COLOR_TONE                              = "color_tone";
       
   132     static const char* EV_COMPENSATION_VALUE                   = "ev_compensation_value";
       
   133     static const char* CONTRAST                                = "contrast";
       
   134     static const char* BRIGHTNESS                              = "brightness";
       
   135     static const char* FRAME_RATE                              = "frame_rate";
       
   136     static const char* SCENE_ID                                = "sceneId";
       
   137     static const char* IMAGE_QUALITY                           = "imageQuality";
       
   138     static const char* VIDEO_QUALITY                           = "videoQuality";
       
   139     static const char* SECONDARY_CAMERA                        = "2ndCamera";
       
   140     static const char* SELF_TIMER                              = "selfTimer";
       
   141 
       
   142 
       
   143     // file name/path related key values
       
   144     static const char*  FNAME_FOLDER_SUFFIX                    = "folder_suffix";
       
   145     static const char*  FNAME_MONTH_FOLDER                     = "month_folder";
       
   146     static const char*  FNAME_IMAGE_COUNTER                    = "image_counter";
       
   147     static const char*  FNAME_VIDEO_COUNTER                    = "video_counter";
       
   148 
       
   149     // scene mode keys
       
   150     static const char* IMAGE_SCENE                             = "image_scene";
       
   151     static const char* VIDEO_SCENE                             = "video_scene";
       
   152 
       
   153     // image scene mode key values
       
   154     static const char*  IMAGE_SCENE_AUTO                       = "ImageSceneAuto";
       
   155     static const char*  IMAGE_SCENE_PORTRAIT                   = "ImageScenePortrait";
       
   156     static const char*  IMAGE_SCENE_SCENERY                    = "ImageSceneScenery";
       
   157     static const char*  IMAGE_SCENE_MACRO                      = "ImageSceneMacro";
       
   158     static const char*  IMAGE_SCENE_SPORTS                     = "ImageSceneSports";
       
   159     static const char*  IMAGE_SCENE_NIGHT                      = "ImageSceneNight";
       
   160     static const char*  IMAGE_SCENE_NIGHTPORTRAIT              = "ImageSceneNightPortrait";
       
   161     static const char*  IMAGE_SCENE_CLOSEUP                    = "ImageSceneCloseUp";
       
   162 
       
   163     // video scene setting key values
       
   164     static const char*  VIDEO_SCENE_AUTO                       = "VideoSceneAuto";
       
   165     static const char*  VIDEO_SCENE_NIGHTPORTRAIT              = "VideoSceneNightPortrait";
       
   166     static const char*  VIDEO_SCENE_LOWLIGHT                   = "VideoSceneLowLight";
       
   167     static const char*  VIDEO_SCENE_NIGHT                      = "VideoSceneNight";
       
   168 
       
   169     // setting keys for post capture timeout
       
   170     static const char*  STILL_SHOWCAPTURED                     = "still_showcaptured";
       
   171     static const char*  VIDEO_SHOWCAPTURED                     = "video_showcaptured";
       
   172 
       
   173     // video mute setting
       
   174     static const char*  VIDEO_MUTE_SETTING                     = "video_mute_setting";
       
   175 }
       
   176 
       
   177 
       
   178 namespace CxeRuntimeKeys
       
   179 {
       
   180     // Runtime keys
       
   181     static const char* PRIMARY_CAMERA_CAPTURE_KEYS   = "primary_camera_capture_keys";
       
   182     static const char* PRIMARY_CAMERA_AUTOFOCUS_KEYS = "primary_camera_autofocus_keys";
       
   183     static const char* SECONDARY_CAMERA_CAPTURE_KEYS = "secondary_camera_capture_keys";
       
   184     static const char* CONTRAST_ITEMS                = "contrast_items";
       
   185     static const char* STILL_MAX_ZOOM_LIMITS         = "still_max_zoom_limits";
       
   186     static const char* VIDEO_MAX_ZOOM_LIMITS         = "video_max_zoom_limits";
       
   187 }
       
   188 
       
   189 #endif // CXENUMS_H