camerauis/cameraapp/generic/common/inc/Cam.hrh
branchRCL_3
changeset 24 bac7acad7cb3
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  Resource header file for Camera Application*
       
    15 */
       
    16 
       
    17 
       
    18 #ifndef CAM_HRH
       
    19 #define CAM_HRH
       
    20 
       
    21  
       
    22 
       
    23 // This is number of *user-changeable* characters in name base for 
       
    24 // videos and photos, for example "Image" from "Image0001.jpg"
       
    25 #define KMaxNameBaseLength          		27  
       
    26 
       
    27 // Maximum length of the Default Album
       
    28 #define KMaxAlbumNameLength                 30
       
    29 // Maximum length of image of toolbar customization data string
       
    30 #define KMaxToolbarDataStringLength 256
       
    31 
       
    32 // Max filename length *including* numbering eg "Image9999" from "Image9999.jpg"
       
    33 #define KMaxNameBaseLengthPlusNumbering 	31  
       
    34 
       
    35 #ifndef __WINS__
       
    36     //#define EProductKeyCaptureHalf EStdKeyApplication19
       
    37  
       
    38 #else
       
    39     #define EProductKeyCaptureHalf 53
       
    40 #endif
       
    41    // #define EProductKeyCapture EStdKeyDevice7
       
    42 
       
    43 
       
    44 // DATA TYPES
       
    45 
       
    46 // enumerate command codes
       
    47 enum TCamCmd
       
    48   {
       
    49   ECamCmdNewVideo = 1,  // start value must not be 0
       
    50   ECamCmdToggleMulti,
       
    51   ECamCmdToggleFacetracking,
       
    52   ECamCmdSingleCapture,
       
    53   ECamCmdSequence,
       
    54   ECamCmdTimeLapse,
       
    55   ECamCmdPhotos,
       
    56   ECamCmdShootSetup,
       
    57   ECamCmdSelfTimer1,   
       
    58   ECamCmdSelfTimer2,
       
    59   ECamCmdSelfTimer3,
       
    60   ECamCmdFlash,
       
    61   ECamCmdUserScene,
       
    62   ECamCmdSettings,
       
    63   ECamCmdNewPhoto,
       
    64   ECamCmdAddAudio,
       
    65   ECamCmdEdit,
       
    66   ECamCmdEditRestore,
       
    67   ECamCmdSelectRestore,
       
    68   ECamCmdUserSceneSelected,  
       
    69   ECamCmdDelete,
       
    70   ECamCmdAddToAlbum,
       
    71   ECamCmdProperties,
       
    72   ECamCmdDeleteSequence,
       
    73   ECamCmdSendToCallerMultimedia,
       
    74   ECamCmdPause,
       
    75   ECamCmdLock,
       
    76   ECamCmdUnlock,
       
    77   ECamCmdContinue,
       
    78   ECamCmdPlay,
       
    79   ECamCmdSelfTimerCancel,
       
    80   ECamCmdCaptureSetupSceneStill,
       
    81   ECamCmdCaptureSetupWhiteBalanceStill,
       
    82   ECamCmdCaptureSetupExposureStill,
       
    83   ECamCmdCaptureSetupColourFilterStill,
       
    84   ECamCmdCaptureSetupFlashStill,
       
    85   ECamCmdCaptureSetupSceneVideo,
       
    86   ECamCmdCaptureSetupWhiteBalanceVideo,
       
    87   ECamCmdCaptureSetupColourFilterVideo,
       
    88   ECamCmdCaptureSetupSceneUser,
       
    89   ECamCmdCaptureSetupWhiteBalanceUser,
       
    90   ECamCmdCaptureSetupExposureUser,
       
    91   ECamCmdCaptureSetupColourFilterUser,
       
    92   ECamCmdCaptureSetupFlashUser,
       
    93   ECamCmdUserSceneReset,
       
    94   ECamCmdSelect, // select for embedded views
       
    95   ECamCmdMarkUnmarkMenu,
       
    96   ECamCmdOpenPhoto,     // Open a file from burst post-capture grid
       
    97   ECamCmdSceneSettingList,
       
    98   ECamCmdGoToStandby, 
       
    99   ECamCmdExitStandby,
       
   100   ECamCmdConfirmationQuerySportsSceneChange,   
       
   101   ECamCmdSelfTimerActivate,
       
   102   ECamCmdSelfTimerMenu,
       
   103   ECamCmdMute, // Mute/unmute for embedded video
       
   104   ECamCmdUnmute,
       
   105   ECamCmdQuickSend,
       
   106   ECamCmdInternalExit,  
       
   107   ECamCmdSlideClosedExit,
       
   108   ECamCmdPopUpMenuZoom, 
       
   109   
       
   110   ECamCmdSwitchCamera,
       
   111   ECamCmdRenameImage,
       
   112   ECamCmdRenameVideo, 
       
   113   ECamCmdStop,
       
   114   ECamCmdCaptureSetupBrightnessStill,
       
   115   ECamCmdCaptureSetupContrastStill,
       
   116   ECamCmdCaptureSetupBrightnessVideo,
       
   117   ECamCmdCaptureSetupContrastVideo,
       
   118   ECamCmdCaptureSetupBrightnessUser,
       
   119   ECamCmdCaptureSetupContrastUser,
       
   120   
       
   121   ECamCmdTimeLapseSlider,
       
   122   ECamCmdOpenSetup, 
       
   123   ECamCmdTimeLapsePhoto, 
       
   124   
       
   125   ECamCmdCaptureSetupImageSharpnessStill,
       
   126   ECamCmdCaptureSetupColourSaturationStill,
       
   127   ECamCmdCaptureSetupColourSaturationVideo,  
       
   128   ECamCmdCaptureSetupImageSharpnessUser,
       
   129   ECamCmdCaptureSetupColourSaturationUser,
       
   130   
       
   131   ECamCmdCaptureSetupMenu,
       
   132   
       
   133   ECamCmdToggleCourtesyUI,
       
   134   ECamCmdRedrawScreen,
       
   135   ECamCmdRedrawVideoTime,
       
   136   ECamCmdRedrawZoom,
       
   137       
       
   138   ECamCmdToggleVideoFlash, 
       
   139   ECamCmdCaptureSetupFlashVideo,
       
   140   ECamCmdPrintIntent,
       
   141   ECamCmdPrintPlugin,
       
   142   ECamCmdOneClickUpload,
       
   143   ECamCmdSetUserDefault, 
       
   144   
       
   145   ECamCmdCaptureSetupLightSensitivityUser,
       
   146   
       
   147   ECamCmdRaiseCourtesyUI,
       
   148   ECamCmdSwitchToPrecapture,
       
   149   
       
   150   ECamCmdActivateFreeMemoryView,
       
   151   ECamCmdCaptureSetupSelfTimer,
       
   152   ECamCmdCaptureSetupLightSensitivityStill,
       
   153   ECamCmdCaptureSetupLightSensitivityVideo,
       
   154   
       
   155   ECamCmdViewfinderGrid, // Viewfinder grid on/off
       
   156   ECamCmdSwitchUserMode, // Toggle advanced/novice user mode
       
   157   ECamCmdHistogram,      // Histogram on/off
       
   158 
       
   159   // Customise toolbar view commands
       
   160   ECamCmdCustomiseToolbar, // Open customise toolbar view
       
   161   ECamCmdCustomiseToolbarChange,
       
   162   ECamCmdCustomiseToolbarAdd,
       
   163   ECamCmdCustomiseToolbarRemove,
       
   164   ECamCmdCustomiseToolbarUp,
       
   165   ECamCmdCustomiseToolbarDown,
       
   166   ECamCmdCustomiseToolbarReset,
       
   167   ECamCmdEditPhoto,
       
   168   ECamCmdEditVideo,
       
   169   ECamCmdPrint,
       
   170   ECamCmdShareOnOvi,
       
   171   ECamCmdShareSettings,  
       
   172   ECamMSKCmdAppChange,
       
   173   ECamMSKCmdAppCapture,
       
   174   ECamMSKCmdAppRecord,
       
   175   ECamMSKCmdSelect,
       
   176   ECamCmdRestoreCameraSettings,
       
   177   
       
   178   ECamCmdCaptureImage,
       
   179   ECamCmdRecord,
       
   180   ECamCmdToolbarExtension,  // Command ID for toolbar extension button
       
   181   ECamCmdToolbarMarkUnmark, // for sequence post capture view
       
   182   ECamCmdToggleActiveToolbar, // switches activepalette visibility
       
   183   
       
   184   ECamCmdSend, // NOTE any new commands should be placed before this
       
   185                // with the exception of the AIW command below
       
   186   ECamCmdAIWCommands = 200 // AIW needs to have its own area
       
   187   };
       
   188 
       
   189 enum TCamWaitNoteCtrls
       
   190     {
       
   191     ESavingVideoWaitNote = 1,
       
   192     ESavingImagesProgressNote,
       
   193     ELoadingImageWaitNote,
       
   194     ESavingImageWaitNote,
       
   195     EFreeingMemoryWaitNote,
       
   196     EGenProcessingWaitNote
       
   197     };
       
   198 
       
   199 // indicators are in different orders for different products
       
   200 
       
   201 enum TCamIndicatorIds
       
   202     {
       
   203     ECamIndicatorScene = 0,
       
   204     ECamIndicatorFlash,
       
   205     ECamIndicatorSelfTimer,
       
   206     ECamIndicatorBurstMode,
       
   207     ECamIndicatorVideoStabiliser,
       
   208     ECamIndicatorImageShakeWarning,
       
   209     ECamIndicatorAudioMute,
       
   210     ECamIndicatorFaceTracking,
       
   211     ECamIndicatorVideoFileType,
       
   212 	ECamIndicatorCaptureMode,
       
   213     ECamIndicatorVideoFlash,
       
   214 	ECamIndicatorFocus,
       
   215 	ECamIndicatorGenericSetup,
       
   216 	ECamIndicatorResolution,
       
   217 	ECamIndicatorTotal // This MUST be last in the enum!
       
   218     };
       
   219 
       
   220 enum TCamSoundId
       
   221     {
       
   222     ECamVideoStartSoundId = 1,
       
   223     ECamVideoStopSoundId,
       
   224     ECamVideoPauseSoundId,
       
   225     ECamVideoResumeSoundId,
       
   226     ECamStillCaptureSoundId1,
       
   227     ECamStillCaptureSoundId2,
       
   228     ECamStillCaptureSoundId3,
       
   229     ECamStillCaptureSoundId4,
       
   230     ECamSelfTimerSoundId,
       
   231     ECamAutoFocusComplete,
       
   232     ECamAutoFocusFailed, 
       
   233     ECamBurstCaptureSoundId1,
       
   234     ECamBurstCaptureSoundId2,
       
   235     ECamBurstCaptureSoundId3,
       
   236     ECamBurstCaptureSoundId4
       
   237     };
       
   238     
       
   239 enum TCamSliderLegendItem
       
   240     {
       
   241     ECamSliderLegendItemText,
       
   242     ECamSliderLegendItemIcon
       
   243     };
       
   244 
       
   245 enum TCamActivePaletteItemType
       
   246 	{
       
   247 	// Item with fixed tooltip and icon.
       
   248 	// Does not have any particular setting associated with it.
       
   249 	ECamActivePaletteItemTypeCommand,
       
   250 	ECamActivePaletteItemTypePreCapture,
       
   251 	ECamActivePaletteItemTypePreCaptureNonSetting,
       
   252 	ECamActivePaletteItemTypePostCapture,
       
   253 	ECamActivePaletteItemTypePostCapturePrintIntent
       
   254 	};
       
   255 	
       
   256 enum TCamExtAutoFocus
       
   257     {
       
   258     ECamExtAutoFocusFocusing,
       
   259     ECamExtAutoFocusFailed,
       
   260     ECamExtAutoFocusFocused
       
   261     };
       
   262 
       
   263 enum TScreenDecorationType
       
   264 	{
       
   265 	ECamScreenDecorationBlendedBackground,
       
   266 	ECamScreenDecorationDVFBlanker, // Direct Viewfinder blanker
       
   267 	ECamScreenDecorationRecordingIcon
       
   268 	};
       
   269 
       
   270 enum TCamObserverEvent
       
   271     {
       
   272     ECamObserverEventDefault,
       
   273     ECamObserverEventRecordingIconUpdated,
       
   274     ECamObserverEventNaviModelUpdated,
       
   275 	ECamObserverEventCaptureProcessComplete 
       
   276     };
       
   277 
       
   278 enum TCamViewState
       
   279     {
       
   280     // ---------------------------------
       
   281     // Marker(s) - no new ids here!
       
   282     ECamViewStateRangeInternalMin,
       
   283 
       
   284     // ---------------------------------
       
   285     // "Internal"
       
   286     // - views inherited from CCamViewBase!!!
       
   287     ECamViewStatePreCapture,
       
   288     ECamViewStatePostCapture,
       
   289     ECamViewStateBurstThumbnail,
       
   290     ECamViewStateStandby,
       
   291     ECamViewStateUserSceneSetup,
       
   292     ECamViewStateWhiteBalanceUser,
       
   293     ECamViewStateColourFilterUser,
       
   294     ECamViewStateFlashUser,
       
   295     ECamViewStateSceneUser,
       
   296     ECamViewStateSceneStill,
       
   297     ECamViewStateCaptureSetupMenu,
       
   298     ECamViewStateSceneSettingList,
       
   299     ECamViewStateExposureUser,
       
   300     ECamViewStateCustomiseToolbar,
       
   301     ECamViewStatePrePortraitCapture,
       
   302     // ---------------------------------
       
   303     // Marker(s) - no new ids here!
       
   304     ECamViewStateRangeInternalMax,
       
   305     ECamViewStateRangeExternalMin,
       
   306 
       
   307     // ---------------------------------
       
   308     // "External" 
       
   309     // - non CCamViewBase inherited views.
       
   310     ECamViewStateSettings,  
       
   311     ECamViewStateViaPlayer,
       
   312     ECamViewStateGsCamcorderPlugin,
       
   313 
       
   314     // ---------------------------------
       
   315     // Marker(s) - no new ids here!
       
   316     ECamViewStateRangeExternalMax,
       
   317     ECamViewStateCount
       
   318     // ---------------------------------
       
   319     };
       
   320 
       
   321 /**
       
   322  * Custom messages for controlling view activation
       
   323  */
       
   324 enum TCamViewMessage
       
   325     {
       
   326     ECamViewMessageStandby = 1,
       
   327     ECamViewMessageCaptureSetupMenu,
       
   328     ECamViewMessageSceneSettingList,
       
   329     ECamViewMessageDeactivateFirst
       
   330     };
       
   331 
       
   332 /**
       
   333  * Exit codes for settings plug-in.
       
   334  */
       
   335 enum TCamSettingsPluginExitMessage
       
   336     {
       
   337     ECameraPluginExit = 0,
       
   338     ECameraInternalExit,
       
   339     ECameraCompleteExit
       
   340     };
       
   341 
       
   342 /** 
       
   343  * Cameraui error codes
       
   344  */
       
   345 
       
   346 enum TCamErrorCode
       
   347     {
       
   348     ECamMinErrCode = -16384,
       
   349     ECamErrMassStorageMode,
       
   350     ECamErrMemoryCardNotInserted
       
   351     };
       
   352 
       
   353 #endif // CAM_HRH
       
   354 
       
   355 // End of File