camerauis/cameraapp/generic/common/inc/Cam.hrh
changeset 19 d9aefe59d544
parent 3 8b2d6d0384b0
child 21 fa6d9f75d6a6
child 28 3075d9b614e6
equal deleted inserted replaced
3:8b2d6d0384b0 19:d9aefe59d544
     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   ECamCmdEditPhoto,
       
   165   ECamCmdEditVideo,
       
   166   ECamCmdPrint,
       
   167   ECamCmdShareOnOvi,
       
   168   ECamMSKCmdAppChange,
       
   169   ECamMSKCmdAppCapture,
       
   170   ECamMSKCmdAppRecord,
       
   171   ECamMSKCmdSelect,
       
   172   ECamCmdRestoreCameraSettings,
       
   173   
       
   174   ECamCmdCaptureImage,
       
   175   ECamCmdRecord,
       
   176   ECamCmdToolbarExtension,  // Command ID for toolbar extension button
       
   177   ECamCmdToolbarMarkUnmark, // for sequence post capture view
       
   178   ECamCmdToggleActiveToolbar, // switches activepalette visibility
       
   179   
       
   180   ECamCmdSend, // NOTE any new commands should be placed before this
       
   181                // with the exception of the AIW command below
       
   182   ECamCmdAIWCommands = 200 // AIW needs to have its own area
       
   183   };
       
   184 
       
   185 enum TCamWaitNoteCtrls
       
   186     {
       
   187     ESavingVideoWaitNote = 1,
       
   188     ESavingImagesProgressNote,
       
   189     ELoadingImageWaitNote,
       
   190     ESavingImageWaitNote,
       
   191     EFreeingMemoryWaitNote,
       
   192     EGenProcessingWaitNote
       
   193     };
       
   194 
       
   195 // indicators are in different orders for different products
       
   196 
       
   197 enum TCamIndicatorIds
       
   198     {
       
   199     ECamIndicatorScene = 0,
       
   200     ECamIndicatorFlash,
       
   201     ECamIndicatorSelfTimer,
       
   202     ECamIndicatorBurstMode,
       
   203     ECamIndicatorVideoStabiliser,
       
   204     ECamIndicatorImageShakeWarning,
       
   205     ECamIndicatorAudioMute,
       
   206     ECamIndicatorFaceTracking,
       
   207     ECamIndicatorVideoFileType,
       
   208 	ECamIndicatorCaptureMode,
       
   209     ECamIndicatorVideoFlash,
       
   210 	ECamIndicatorFocus,
       
   211 	ECamIndicatorGenericSetup,
       
   212 	ECamIndicatorResolution,
       
   213 	ECamIndicatorTotal // This MUST be last in the enum!
       
   214     };
       
   215 
       
   216 enum TCamSoundId
       
   217     {
       
   218     ECamVideoStartSoundId = 1,
       
   219     ECamVideoStopSoundId,
       
   220     ECamVideoPauseSoundId,
       
   221     ECamVideoResumeSoundId,
       
   222     ECamInCallToneId,
       
   223     ECamStillCaptureSoundId1,
       
   224     ECamStillCaptureSoundId2,
       
   225     ECamStillCaptureSoundId3,
       
   226     ECamStillCaptureSoundId4,
       
   227     ECamSelfTimerSoundId,
       
   228     ECamAutoFocusComplete,
       
   229     ECamAutoFocusFailed, 
       
   230     ECamBurstCaptureSoundId1,
       
   231     ECamBurstCaptureSoundId2,
       
   232     ECamBurstCaptureSoundId3,
       
   233     ECamBurstCaptureSoundId4
       
   234     };
       
   235     
       
   236 enum TCamSliderLegendItem
       
   237     {
       
   238     ECamSliderLegendItemText,
       
   239     ECamSliderLegendItemIcon
       
   240     };
       
   241 
       
   242 enum TCamActivePaletteItemType
       
   243 	{
       
   244 	// Item with fixed tooltip and icon.
       
   245 	// Does not have any particular setting associated with it.
       
   246 	ECamActivePaletteItemTypeCommand,
       
   247 	ECamActivePaletteItemTypePreCapture,
       
   248 	ECamActivePaletteItemTypePreCaptureNonSetting,
       
   249 	ECamActivePaletteItemTypePostCapture,
       
   250 	ECamActivePaletteItemTypePostCapturePrintIntent
       
   251 	};
       
   252 	
       
   253 enum TCamExtAutoFocus
       
   254     {
       
   255     ECamExtAutoFocusFocusing,
       
   256     ECamExtAutoFocusFailed,
       
   257     ECamExtAutoFocusFocused
       
   258     };
       
   259 
       
   260 enum TScreenDecorationType
       
   261 	{
       
   262 	ECamScreenDecorationBlendedBackground,
       
   263 	ECamScreenDecorationDVFBlanker, // Direct Viewfinder blanker
       
   264 	ECamScreenDecorationRecordingIcon
       
   265 	};
       
   266 
       
   267 enum TCamObserverEvent
       
   268     {
       
   269     ECamObserverEventDefault,
       
   270     ECamObserverEventRecordingIconUpdated,
       
   271     ECamObserverEventNaviModelUpdated,
       
   272 	ECamObserverEventCaptureProcessComplete 
       
   273     };
       
   274 
       
   275 enum TCamViewState
       
   276     {
       
   277     // ---------------------------------
       
   278     // Marker(s) - no new ids here!
       
   279     ECamViewStateRangeInternalMin,
       
   280 
       
   281     // ---------------------------------
       
   282     // "Internal"
       
   283     // - views inherited from CCamViewBase!!!
       
   284     ECamViewStatePreCapture,
       
   285     ECamViewStatePostCapture,
       
   286     ECamViewStateBurstThumbnail,
       
   287     ECamViewStateStandby,
       
   288     ECamViewStateUserSceneSetup,
       
   289     ECamViewStateWhiteBalanceUser,
       
   290     ECamViewStateColourFilterUser,
       
   291     ECamViewStateFlashUser,
       
   292     ECamViewStateSceneUser,
       
   293     ECamViewStateSceneStill,
       
   294     ECamViewStateCaptureSetupMenu,
       
   295     ECamViewStateSceneSettingList,
       
   296     ECamViewStateExposureUser,
       
   297     ECamViewStateCustomiseToolbar,
       
   298     ECamViewStatePrePortraitCapture,
       
   299     // ---------------------------------
       
   300     // Marker(s) - no new ids here!
       
   301     ECamViewStateRangeInternalMax,
       
   302     ECamViewStateRangeExternalMin,
       
   303 
       
   304     // ---------------------------------
       
   305     // "External" 
       
   306     // - non CCamViewBase inherited views.
       
   307     ECamViewStateSettings,  
       
   308     ECamViewStateViaPlayer,
       
   309     ECamViewStateGsCamcorderPlugin,
       
   310 
       
   311     // ---------------------------------
       
   312     // Marker(s) - no new ids here!
       
   313     ECamViewStateRangeExternalMax,
       
   314     ECamViewStateCount
       
   315     // ---------------------------------
       
   316     };
       
   317 
       
   318 /**
       
   319  * Custom messages for controlling view activation
       
   320  */
       
   321 enum TCamViewMessage
       
   322     {
       
   323     ECamViewMessageStandby = 1,
       
   324     ECamViewMessageCaptureSetupMenu,
       
   325     ECamViewMessageSceneSettingList,
       
   326     ECamViewMessageDeactivateFirst
       
   327     };
       
   328 
       
   329 /**
       
   330  * Exit codes for settings plug-in.
       
   331  */
       
   332 enum TCamSettingsPluginExitMessage
       
   333     {
       
   334     ECameraPluginExit = 0,
       
   335     ECameraInternalExit,
       
   336     ECameraCompleteExit
       
   337     };
       
   338 
       
   339 #endif // CAM_HRH
       
   340 
       
   341 // End of File