camerauis/cameraxui/cxengine/inc/api/cxenamespace.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2009-2010 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 = 0,
       
    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 = 2,
       
    88         SharpnessNormal = 0,
       
    89         SharpnessSoft = -2
       
    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         AspectRatio11to9
       
   114     };
       
   115 
       
   116     enum SettingKeyType
       
   117     {
       
   118         Repository, // repository key
       
   119         PublishAndSubscribe // P&S key
       
   120     };
       
   121 
       
   122     /*!
       
   123     * Index to CxeVariationKeys::FREE_MEMORY_LEVELS comma separated values
       
   124     */
       
   125     enum FreeMemoryIndex
       
   126     {
       
   127         FreeMemoryTrigger = 0,
       
   128         FreeMemoryTarget
       
   129     };
       
   130 
       
   131     /*!
       
   132     * Indicates if Geotagging setting is enabled or disabled.
       
   133     */
       
   134     enum GeoTagging
       
   135     {
       
   136         GeoTaggingOff = 0,
       
   137         GeoTaggingOn
       
   138     };
       
   139 
       
   140     /*!
       
   141     * Indicates if Geotagging disclaimer note is shown to the users during camera first startup
       
   142     */
       
   143     enum GeoTaggingDisclaimer
       
   144     {
       
   145         GeoTaggingDisclaimerDisabled = 0,
       
   146         GeoTaggingDisclaimerEnabled
       
   147     };
       
   148 
       
   149     // image scene mode key values
       
   150     static const char*  IMAGE_SCENE_AUTO                       = "image_scene_auto";
       
   151     static const char*  IMAGE_SCENE_PORTRAIT                   = "image_scene_portrait";
       
   152     static const char*  IMAGE_SCENE_SCENERY                    = "image_scene_scenery";
       
   153     static const char*  IMAGE_SCENE_MACRO                      = "image_scene_macro";
       
   154     static const char*  IMAGE_SCENE_SPORTS                     = "image_scene_sports";
       
   155     static const char*  IMAGE_SCENE_NIGHT                      = "image_scene_night";
       
   156     static const char*  IMAGE_SCENE_NIGHTPORTRAIT              = "image_scene_night_portrait";
       
   157 
       
   158     // video scene setting key values
       
   159     static const char*  VIDEO_SCENE_AUTO                       = "video_scene_auto";
       
   160     static const char*  VIDEO_SCENE_NIGHTPORTRAIT              = "video_scene_night_portrait";
       
   161     static const char*  VIDEO_SCENE_LOWLIGHT                   = "video_scene_low_light";
       
   162     static const char*  VIDEO_SCENE_NIGHT                      = "video_scene_night";
       
   163 }
       
   164 
       
   165 namespace CxeSettingIds
       
   166 {
       
   167     // Setting Ids
       
   168     static const char* CAMERA_MODE                             = "camera_mode";
       
   169     static const char* FOCAL_RANGE                             = "focal_range";
       
   170     static const char* FLASH_MODE                              = "flash_mode";
       
   171     static const char* WHITE_BALANCE                           = "white_balance";
       
   172     static const char* LIGHT_SENSITIVITY                       = "light_sensitivity";
       
   173     static const char* EXPOSURE_MODE                           = "exposure_mode";
       
   174     static const char* SHARPNESS                               = "sharpness";
       
   175     static const char* COLOR_TONE                              = "color_tone";
       
   176     static const char* EV_COMPENSATION_VALUE                   = "ev_compensation_value";
       
   177     static const char* CONTRAST                                = "contrast";
       
   178     static const char* BRIGHTNESS                              = "brightness";
       
   179     static const char* FRAME_RATE                              = "frame_rate";
       
   180     static const char* SCENE_ID                                = "sceneId";
       
   181     static const char* IMAGE_QUALITY                           = "imageQuality";
       
   182     static const char* VIDEO_QUALITY                           = "videoQuality";
       
   183     static const char* SECONDARY_CAMERA                        = "2ndCamera";
       
   184     static const char* SELF_TIMER                              = "selfTimer";
       
   185     static const char* FACE_TRACKING                           = "face_tracking";
       
   186     static const char* GEOTAGGING                              = "geotagging";
       
   187     static const char* GEOTAGGING_DISCLAIMER                   = "geotagging_disclaimer";
       
   188     static const char* CAPTURE_SOUND_ALWAYS_ON                 = "capture_sound_always_on";
       
   189 
       
   190     // file name/path related key values
       
   191     static const char*  FNAME_FOLDER_SUFFIX                    = "folder_suffix";
       
   192     static const char*  FNAME_MONTH_FOLDER                     = "month_folder";
       
   193     static const char*  FNAME_IMAGE_COUNTER                    = "image_counter";
       
   194     static const char*  FNAME_VIDEO_COUNTER                    = "video_counter";
       
   195 
       
   196     // scene modes. these ids are used to access scene data in settings (CxeScene)
       
   197     static const char* IMAGE_SCENE_DATA                        = "still_scene_mode_data";
       
   198     static const char* VIDEO_SCENE_DATA                        = "video_scene_mode_data";
       
   199 
       
   200     // these setting ids are used to access scene id
       
   201     static const char* IMAGE_SCENE                             = "still_scene_mode";
       
   202     static const char* VIDEO_SCENE                             = "video_scene_mode";
       
   203 
       
   204     // setting keys for post capture timeout
       
   205     static const char*  STILL_SHOWCAPTURED                     = "still_showcaptured";
       
   206     static const char*  VIDEO_SHOWCAPTURED                     = "video_showcaptured";
       
   207 
       
   208     // video mute setting
       
   209     static const char*  VIDEO_MUTE_SETTING                     = "video_mute_setting";
       
   210 }
       
   211 
       
   212 
       
   213 namespace CxeVariationKeys
       
   214 {
       
   215     // Runtime variation keys
       
   216     static const char* FREE_MEMORY_LEVELS            = "free_memory_levels";
       
   217     static const char* STILL_MAX_ZOOM_LIMITS         = "still_max_zoom_limits";
       
   218     static const char* VIDEO_MAX_ZOOM_LIMITS         = "video_max_zoom_limits";
       
   219 }
       
   220 
       
   221 #endif // CXENUMS_H