camerauis/cameraapp/generic/common/inc/Cam.hrh
changeset 0 1ddebce53859
child 1 f5ec9446e5bf
equal deleted inserted replaced
-1:000000000000 0:1ddebce53859
       
     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   
       
   136   ECamCmdToggleVideoFlash, 
       
   137   ECamCmdCaptureSetupFlashVideo,
       
   138   ECamCmdPrintIntent,
       
   139   ECamCmdPrintPlugin,
       
   140   ECamCmdOneClickUpload,
       
   141   
       
   142   ECamCmdCaptureSetupLightSensitivityUser,
       
   143   
       
   144   ECamCmdRaiseCourtesyUI,
       
   145   ECamCmdSwitchToPrecapture,
       
   146   
       
   147   ECamCmdActivateFreeMemoryView,
       
   148   ECamCmdCaptureSetupSelfTimer,
       
   149   ECamCmdCaptureSetupLightSensitivityStill,
       
   150   ECamCmdCaptureSetupLightSensitivityVideo,
       
   151   
       
   152   ECamCmdViewfinderGrid, // Viewfinder grid on/off
       
   153   ECamCmdSwitchUserMode, // Toggle advanced/novice user mode
       
   154   ECamCmdHistogram,      // Histogram on/off
       
   155 
       
   156   // Customise toolbar view commands
       
   157   ECamCmdCustomiseToolbar, // Open customise toolbar view
       
   158   ECamCmdCustomiseToolbarChange,
       
   159   ECamCmdCustomiseToolbarAdd,
       
   160   ECamCmdCustomiseToolbarRemove,
       
   161   ECamCmdCustomiseToolbarUp,
       
   162   ECamCmdCustomiseToolbarDown,
       
   163   ECamCmdCustomiseToolbarReset,
       
   164   
       
   165   ECamCmdSend, // NOTE any new commands should be placed before this
       
   166                // with the exception of the AIW command below
       
   167   ECamCmdAIWCommands = 200, // AIW needs to have its own area
       
   168   ECamCmdEditPhoto,
       
   169   ECamCmdEditVideo,
       
   170   ECamCmdPrint,
       
   171   ECamCmdShareOnOvi,
       
   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   };
       
   185 
       
   186 enum TCamWaitNoteCtrls
       
   187     {
       
   188     ESavingVideoWaitNote = 1,
       
   189     ESavingImagesProgressNote,
       
   190     ELoadingImageWaitNote,
       
   191     ESavingImageWaitNote,
       
   192     EFreeingMemoryWaitNote,
       
   193     EGenProcessingWaitNote
       
   194     };
       
   195 
       
   196 // indicators are in different orders for different products
       
   197 
       
   198 enum TCamIndicatorIds
       
   199     {
       
   200     ECamIndicatorScene = 0,
       
   201     ECamIndicatorFlash,
       
   202     ECamIndicatorSelfTimer,
       
   203     ECamIndicatorBurstMode,
       
   204     ECamIndicatorVideoStabiliser,
       
   205     ECamIndicatorImageShakeWarning,
       
   206     ECamIndicatorAudioMute,
       
   207     ECamIndicatorFaceTracking,
       
   208     ECamIndicatorVideoFileType,
       
   209 	ECamIndicatorCaptureMode,
       
   210     ECamIndicatorVideoFlash,
       
   211 	ECamIndicatorFocus,
       
   212 	ECamIndicatorGenericSetup,
       
   213 	ECamIndicatorResolution,
       
   214 	ECamIndicatorTotal // This MUST be last in the enum!
       
   215     };
       
   216 
       
   217 enum TCamSoundId
       
   218     {
       
   219     ECamVideoStartSoundId = 1,
       
   220     ECamVideoStopSoundId,
       
   221     ECamVideoPauseSoundId,
       
   222     ECamVideoResumeSoundId,
       
   223     ECamInCallToneId,
       
   224     ECamStillCaptureSoundId1,
       
   225     ECamStillCaptureSoundId2,
       
   226     ECamStillCaptureSoundId3,
       
   227     ECamStillCaptureSoundId4,
       
   228     ECamSelfTimerSoundId,
       
   229     ECamAutoFocusComplete,
       
   230     ECamAutoFocusFailed, 
       
   231     ECamBurstCaptureSoundId1,
       
   232     ECamBurstCaptureSoundId2,
       
   233     ECamBurstCaptureSoundId3,
       
   234     ECamBurstCaptureSoundId4
       
   235     };
       
   236     
       
   237 enum TCamSliderLegendItem
       
   238     {
       
   239     ECamSliderLegendItemText,
       
   240     ECamSliderLegendItemIcon
       
   241     };
       
   242 
       
   243 enum TCamActivePaletteItemType
       
   244 	{
       
   245 	// Item with fixed tooltip and icon.
       
   246 	// Does not have any particular setting associated with it.
       
   247 	ECamActivePaletteItemTypeCommand,
       
   248 	ECamActivePaletteItemTypePreCapture,
       
   249 	ECamActivePaletteItemTypePreCaptureNonSetting,
       
   250 	ECamActivePaletteItemTypePostCapture,
       
   251 	ECamActivePaletteItemTypePostCapturePrintIntent
       
   252 	};
       
   253 	
       
   254 enum TCamExtAutoFocus
       
   255     {
       
   256     ECamExtAutoFocusFocusing,
       
   257     ECamExtAutoFocusFailed,
       
   258     ECamExtAutoFocusFocused
       
   259     };
       
   260 
       
   261 enum TScreenDecorationType
       
   262 	{
       
   263 	ECamScreenDecorationBlendedBackground,
       
   264 	ECamScreenDecorationDVFBlanker, // Direct Viewfinder blanker
       
   265 	ECamScreenDecorationRecordingIcon
       
   266 	};
       
   267 
       
   268 enum TCamObserverEvent
       
   269     {
       
   270     ECamObserverEventDefault,
       
   271     ECamObserverEventRecordingIconUpdated,
       
   272     ECamObserverEventNaviModelUpdated,
       
   273 	ECamObserverEventCaptureProcessComplete 
       
   274     };
       
   275 
       
   276 enum TCamViewState
       
   277     {
       
   278     // ---------------------------------
       
   279     // Marker(s) - no new ids here!
       
   280     ECamViewStateRangeInternalMin,
       
   281 
       
   282     // ---------------------------------
       
   283     // "Internal"
       
   284     // - views inherited from CCamViewBase!!!
       
   285     ECamViewStatePreCapture,
       
   286     ECamViewStatePostCapture,
       
   287     ECamViewStateBurstThumbnail,
       
   288     ECamViewStateStandby,
       
   289     ECamViewStateUserSceneSetup,
       
   290     ECamViewStateWhiteBalanceUser,
       
   291     ECamViewStateColourFilterUser,
       
   292     ECamViewStateFlashUser,
       
   293     ECamViewStateSceneUser,
       
   294     ECamViewStateSceneStill,
       
   295     ECamViewStateCaptureSetupMenu,
       
   296     ECamViewStateSceneSettingList,
       
   297     ECamViewStateExposureUser,
       
   298     ECamViewStateCustomiseToolbar,
       
   299     ECamViewStatePrePortraitCapture,
       
   300     // ---------------------------------
       
   301     // Marker(s) - no new ids here!
       
   302     ECamViewStateRangeInternalMax,
       
   303     ECamViewStateRangeExternalMin,
       
   304 
       
   305     // ---------------------------------
       
   306     // "External" 
       
   307     // - non CCamViewBase inherited views.
       
   308     ECamViewStateSettings,  
       
   309     ECamViewStateViaPlayer,
       
   310     ECamViewStateGsCamcorderPlugin,
       
   311 
       
   312     // ---------------------------------
       
   313     // Marker(s) - no new ids here!
       
   314     ECamViewStateRangeExternalMax,
       
   315     ECamViewStateCount
       
   316     // ---------------------------------
       
   317     };
       
   318 
       
   319 /**
       
   320  * Custom messages for controlling view activation
       
   321  */
       
   322 enum TCamViewMessage
       
   323     {
       
   324     ECamViewMessageStandby = 1,
       
   325     ECamViewMessageCaptureSetupMenu,
       
   326     ECamViewMessageSceneSettingList,
       
   327     ECamViewMessageDeactivateFirst
       
   328     };
       
   329 
       
   330 /**
       
   331  * Exit codes for settings plug-in.
       
   332  */
       
   333 enum TCamSettingsPluginExitMessage
       
   334     {
       
   335     ECameraPluginExit = 0,
       
   336     ECameraInternalExit,
       
   337     ECameraCompleteExit
       
   338     };
       
   339 
       
   340 #endif // CAM_HRH
       
   341 
       
   342 // End of File