branch | RCL_3 |
changeset 12 | 8c55c525d5d7 |
parent 11 | 792dfc98fb3b |
child 16 | d486e5e3cc9a |
11:792dfc98fb3b | 12:8c55c525d5d7 |
---|---|
1939 } |
1939 } |
1940 } |
1940 } |
1941 } |
1941 } |
1942 iFirstVFStart = EFalse; |
1942 iFirstVFStart = EFalse; |
1943 |
1943 |
1944 PRINT( _L( "Camera <> CCamAppUi::HandleCameraEventL updating CBA") ); |
|
1945 UpdateCba(); |
|
1944 break; |
1946 break; |
1945 } |
1947 } |
1946 // ----------------------------------------------------- |
1948 // ----------------------------------------------------- |
1947 case ECamCameraEventVideoAsyncStop: // Audio and video streams are stopped |
1949 case ECamCameraEventVideoAsyncStop: // Audio and video streams are stopped |
1948 { |
1950 { |
1950 // Stop View finder if not needed to left run |
1952 // Stop View finder if not needed to left run |
1951 if ( iController.IntegerSettingValue( ECamSettingItemVideoShowCapturedVideo ) == ECamSettOn ) |
1953 if ( iController.IntegerSettingValue( ECamSettingItemVideoShowCapturedVideo ) == ECamSettOn ) |
1952 { |
1954 { |
1953 iController.StopViewFinderEcam(); |
1955 iController.StopViewFinderEcam(); |
1954 } |
1956 } |
1957 // Check if currently selected storagemedia has available memory for next capturing |
|
1958 // unless incoming call has stopped recording |
|
1959 if ( !iController.InCallOrRinging() && !iController.InVideocallOrRinging() ) |
|
1960 { |
|
1961 CheckMemoryAvailableForCapturing(); |
|
1962 } |
|
1955 break; |
1963 break; |
1956 } |
1964 } |
1957 // ----------------------------------------------------- |
1965 // ----------------------------------------------------- |
1958 case ECamCameraEventPowerOnRequested: |
1966 case ECamCameraEventPowerOnRequested: |
1959 case ECamCameraEventReserveRequested: |
1967 case ECamCameraEventReserveRequested: |
1974 } |
1982 } |
1975 else |
1983 else |
1976 { |
1984 { |
1977 //load settings in case they were changed via GS |
1985 //load settings in case they were changed via GS |
1978 iController.LoadStaticSettingsL( IsEmbedded() ); |
1986 iController.LoadStaticSettingsL( IsEmbedded() ); |
1987 iStillCaptureView->UpdateToolbarIconsL(); |
|
1979 // and check the availability of the memory to be used |
1988 // and check the availability of the memory to be used |
1980 iController.CheckMemoryToUseL(); |
1989 iController.CheckMemoryToUseL(); |
1981 } |
1990 } |
1982 break; |
1991 break; |
1983 } |
1992 } |
2511 |
2520 |
2512 // ----------------------------------------------------- |
2521 // ----------------------------------------------------- |
2513 case ECamEventSaveComplete: |
2522 case ECamEventSaveComplete: |
2514 { |
2523 { |
2515 PRINT( _L( "Camera <> case ECamEventSaveComplete" ) ) |
2524 PRINT( _L( "Camera <> case ECamEventSaveComplete" ) ) |
2525 // Check if currently selected storagemedia has available memory for next capturing |
|
2526 // unless saving just started |
|
2527 if( !iController.IsSaveStarted() ) |
|
2528 { |
|
2529 CheckMemoryAvailableForCapturing(); |
|
2530 } |
|
2516 if ( ECamImageCaptureSingle == iImageMode ) |
2531 if ( ECamImageCaptureSingle == iImageMode ) |
2517 { |
2532 { |
2518 if( iController.CaptureKeyPressedWhileImageSaving() && |
2533 if( iController.CaptureKeyPressedWhileImageSaving() && |
2519 ShowPostCaptureView()) |
2534 ShowPostCaptureView()) |
2520 { |
2535 { |
2635 if( IsInternalView( iViewState ) ) |
2650 if( IsInternalView( iViewState ) ) |
2636 { |
2651 { |
2637 |
2652 |
2638 if ( aStatus != KErrInUse && |
2653 if ( aStatus != KErrInUse && |
2639 iPreCaptureMode == ECamPreCapCaptureSetup || |
2654 iPreCaptureMode == ECamPreCapCaptureSetup || |
2640 iPreCaptureMode == ECamPreCapSceneSetting ) |
2655 iPreCaptureMode == ECamPreCapSceneSetting |
2656 || iPreCaptureMode == ECamPreCapGenericSetting |
|
2657 ) |
|
2641 { |
2658 { |
2642 // VF settings does not go to standby state, VF is stopped instead |
2659 // VF settings does not go to standby state, VF is stopped instead |
2643 // Screen saver releases resources |
2660 // Screen saver releases resources |
2644 iViewFinderStopped = ETrue; |
2661 iViewFinderStopped = ETrue; |
2645 PRINT( _L( "Camera <> CCamAppUi::HandleStandbyEventL: in one of settings view. Release camera") ); |
2662 PRINT( _L( "Camera <> CCamAppUi::HandleStandbyEventL: in one of settings view. Release camera") ); |
2674 return; |
2691 return; |
2675 } |
2692 } |
2676 |
2693 |
2677 // VF settings does not go to standby state, VF is stopped instead |
2694 // VF settings does not go to standby state, VF is stopped instead |
2678 if ( aStatus == KErrInUse || iPreCaptureMode != ECamPreCapCaptureSetup && |
2695 if ( aStatus == KErrInUse || iPreCaptureMode != ECamPreCapCaptureSetup && |
2679 iPreCaptureMode != ECamPreCapSceneSetting ) |
2696 iPreCaptureMode != ECamPreCapSceneSetting |
2697 && iPreCaptureMode != ECamPreCapGenericSetting ) |
|
2680 { |
2698 { |
2681 PRINT( _L( "Camera <> CCamAppUi::HandleStandbyEventL: Set standby status..") ); |
2699 PRINT( _L( "Camera <> CCamAppUi::HandleStandbyEventL: Set standby status..") ); |
2682 SetStandbyStatus( aStatus ); |
2700 SetStandbyStatus( aStatus ); |
2683 if ( iController.InVideocallOrRinging() && iScreenClearer ) |
2701 if ( iController.InVideocallOrRinging() && iScreenClearer ) |
2684 { |
2702 { |
2966 // ----------------------------------------------------- |
2984 // ----------------------------------------------------- |
2967 // the camera app has regained the focus |
2985 // the camera app has regained the focus |
2968 case EEventFocusGained: |
2986 case EEventFocusGained: |
2969 { |
2987 { |
2970 PRINT( _L("Camera <> CCamAppUi::HandleWsEventL: case EEventFocusGained") ); |
2988 PRINT( _L("Camera <> CCamAppUi::HandleWsEventL: case EEventFocusGained") ); |
2989 iReturningFromPretendExit = iPretendExit; |
|
2990 |
|
2971 TBool uiOverride = iController.UiConfigManagerPtr() && iController.UiConfigManagerPtr()->IsUIOrientationOverrideSupported(); |
2991 TBool uiOverride = iController.UiConfigManagerPtr() && iController.UiConfigManagerPtr()->IsUIOrientationOverrideSupported(); |
2972 |
2992 |
2973 if ( !iSendAsInProgress ) |
2993 if ( !iSendAsInProgress ) |
2974 { |
2994 { |
2975 // if we've regained focus assume we're not embedding anything |
2995 // if we've regained focus assume we're not embedding anything |
3073 // video & common settings as there is a possibility that |
3093 // video & common settings as there is a possibility that |
3074 // some settings might have changed from the GS application |
3094 // some settings might have changed from the GS application |
3075 // by the user. |
3095 // by the user. |
3076 iController.LoadStaticSettingsL( IsEmbedded() ); |
3096 iController.LoadStaticSettingsL( IsEmbedded() ); |
3077 } |
3097 } |
3078 |
3098 PRINT( _L("Camera <> CCamAppUi::HandleWsEvent ECamEventFocusGained calling UpdateToolbarIconsL") ); |
3099 if ( iPretendExit ) |
|
3079 iStillCaptureView->UpdateToolbarIconsL(); |
3100 iStillCaptureView->UpdateToolbarIconsL(); |
3080 if( !uiOverride ) |
3101 if( !uiOverride ) |
3081 { |
3102 { |
3082 //check for silent profile whenever we come to foreground. |
3103 //check for silent profile whenever we come to foreground. |
3083 iController.IsProfileSilent(); |
3104 iController.IsProfileSilent(); |
3255 } |
3276 } |
3256 |
3277 |
3257 // force side pane and active palette to update if simulating app |
3278 // force side pane and active palette to update if simulating app |
3258 // launch this has to be done after the call to TrySwitchViewL() to |
3279 // launch this has to be done after the call to TrySwitchViewL() to |
3259 // ensure that IsBurstEnabled() returns the correct value. |
3280 // ensure that IsBurstEnabled() returns the correct value. |
3260 if ( returningFromPretendExit ) |
3281 if ( iReturningFromPretendExit ) |
3261 { |
3282 { |
3262 /*if ( iController.UiConfigManagerPtr() && |
|
3263 iController.UiConfigManagerPtr()->IsLocationSupported() ) |
|
3264 { |
|
3265 // If record location setting is on, start location trail, |
|
3266 // provided, primary camera and pre-capture view |
|
3267 if ( ECamLocationOn == iController.IntegerSettingValue( ECamSettingItemRecLocation ) |
|
3268 && ECamActiveCameraPrimary == ActiveCamera() |
|
3269 && ECamViewStatePreCapture == iViewState |
|
3270 ) |
|
3271 { |
|
3272 iController.StartLocationTrailL(); |
|
3273 } |
|
3274 }*/ |
|
3275 |
|
3276 iCamSidePane->SetCaptureMode( iMode ); |
3283 iCamSidePane->SetCaptureMode( iMode ); |
3277 // The active palette is always switched on when simulating |
3284 // The active palette is always switched on when simulating |
3278 // app launch |
3285 // app launch |
3279 iPreventActivePaletteDisplay = EFalse; |
3286 iPreventActivePaletteDisplay = EFalse; |
3280 |
3287 |
3283 { |
3290 { |
3284 iVideoCaptureView->UpdateToolbarIconsL(); |
3291 iVideoCaptureView->UpdateToolbarIconsL(); |
3285 } |
3292 } |
3286 } |
3293 } |
3287 |
3294 |
3288 if ( uiOverride && ( returningFromPretendExit || iFirstBoot ) ) |
3295 if ( uiOverride && ( iReturningFromPretendExit || iFirstBoot ) ) |
3289 { |
3296 { |
3290 SetActivePaletteVisibility( EFalse ); |
3297 SetActivePaletteVisibility( EFalse ); |
3291 } |
3298 } |
3292 else if ( !TimeLapseSliderShown() && |
3299 else if ( !TimeLapseSliderShown() && |
3293 iViewState == ECamViewStatePreCapture && |
3300 iViewState == ECamViewStatePreCapture && |
4302 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, CCAMAPPUI_CHECKMEMORYL, |
4309 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, CCAMAPPUI_CHECKMEMORYL, |
4303 "e_CCamAppUi_CheckMemoryL 1" ); |
4310 "e_CCamAppUi_CheckMemoryL 1" ); |
4304 PRINT( _L("Camera => CCamAppUi::CheckMemoryL") ); |
4311 PRINT( _L("Camera => CCamAppUi::CheckMemoryL") ); |
4305 TBool capture = ETrue; |
4312 TBool capture = ETrue; |
4306 |
4313 |
4307 TCamMediaStorage storeToCheck = ECamMediaStorageCurrent; |
4314 if ( IsMemoryAvailableForCapturing() ) |
4308 |
4315 { |
4309 if ( ECamControllerVideo == iController.CurrentMode() && |
4316 capture = ETrue; |
4310 ECamMediaStorageCard == iController.IntegerSettingValue( ECamSettingItemVideoMediaStorage ) && |
4317 } |
4311 IsMemoryFullOrUnavailable( ECamMediaStorageCard ) ) |
4318 else |
4312 { |
4319 { |
4313 storeToCheck = ECamMediaStorageCard; |
4320 TCamMediaStorage storeToCheck = ECamMediaStorageCurrent; |
4314 } |
4321 |
4315 if(AllMemoriesFullOrUnavailable()) |
4322 if ( ECamControllerVideo == iController.CurrentMode() && |
4316 { |
4323 ECamMediaStorageCard == iController. |
4317 HBufC* text = StringLoader::LoadLC(R_NOTE_TEXT_ALLMEMORY_FULL); |
4324 IntegerSettingValue( ECamSettingItemVideoMediaStorage ) && |
4318 TInt ret = ShowOOMNoteL( *text, EFalse); |
4325 IsMemoryFullOrUnavailable( ECamMediaStorageCard ) ) |
4319 capture = EFalse; |
4326 { |
4320 CleanupStack::PopAndDestroy(text); |
4327 storeToCheck = ECamMediaStorageCard; |
4321 } |
4328 } |
4322 else if(IsMemoryFullOrUnavailable( storeToCheck )) |
4329 if(AllMemoriesFullOrUnavailable()) |
4323 { |
4330 { |
4324 HBufC* text = StringLoader::LoadLC(R_NOTE_TEXT_MEMORY_FULL); |
4331 HBufC* text = StringLoader::LoadLC(R_NOTE_TEXT_ALLMEMORY_FULL); |
4325 CAknStaticNoteDialog* note = new( ELeave ) CAknStaticNoteDialog; |
4332 TInt ret = ShowOOMNoteL( *text, EFalse); |
4326 note->PrepareLC( R_CAM_OOM_NOTE_OK_CANCEL); |
4333 capture = EFalse; |
4327 note->SetTextL( *text ); |
4334 CleanupStack::PopAndDestroy(text); |
4328 iController.StopIdleTimer(); |
4335 } |
4329 TInt ret = note->RunDlgLD(); |
4336 else if(IsMemoryFullOrUnavailable( storeToCheck )) |
4330 CleanupStack::PopAndDestroy( text ); |
4337 { |
4331 if(EAknSoftkeyOk == ret) |
4338 HBufC* text = StringLoader::LoadLC(R_NOTE_TEXT_MEMORY_FULL); |
4332 { |
4339 CAknStaticNoteDialog* note = new( ELeave ) CAknStaticNoteDialog; |
4333 //when memoryDialog showed, redraw background |
4340 note->PrepareLC( R_CAM_OOM_NOTE_OK_CANCEL); |
4334 if ( IsDirectViewfinderActive() ) |
4341 note->SetTextL( *text ); |
4335 { |
4342 iController.StopIdleTimer(); |
4336 TRAP_IGNORE( HandleCommandL( ECamCmdRedrawScreen ) ); |
4343 TInt ret = note->RunDlgLD(); |
4337 } |
4344 CleanupStack::PopAndDestroy( text ); |
4345 if(EAknSoftkeyOk == ret) |
|
4346 { |
|
4347 //when memoryDialog showed, redraw background |
|
4348 if ( IsDirectViewfinderActive() ) |
|
4349 { |
|
4350 TRAP_IGNORE( HandleCommandL( ECamCmdRedrawScreen ) ); |
|
4351 } |
|
4338 |
4352 |
4339 TInt supportedMemTypes = 0; |
4353 TInt supportedMemTypes = 0; |
4340 TCamMediaStorage currentLocation; |
4354 TCamMediaStorage currentLocation; |
4341 TInt key = ( ECamControllerVideo == iMode ) |
4355 TInt key = ( ECamControllerVideo == iMode ) |
4342 ? ECamSettingItemVideoMediaStorage |
4356 ? ECamSettingItemVideoMediaStorage |
4343 : ECamSettingItemPhotoMediaStorage; |
4357 : ECamSettingItemPhotoMediaStorage; |
4344 |
4358 |
4345 if ( iMMCRemoveNoteRequiredOnCapture ) |
4359 if ( iMMCRemoveNoteRequiredOnCapture ) |
4346 { |
4360 { |
4347 iMMCRemoveNoteRequiredOnCapture = EFalse; |
4361 iMMCRemoveNoteRequiredOnCapture = EFalse; |
4348 currentLocation = static_cast<TCamMediaStorage>( |
4362 currentLocation = static_cast<TCamMediaStorage>( |
4349 iController. |
4363 iController. |
4350 IntegerSettingValueUnfiltered( key ) ); |
4364 IntegerSettingValueUnfiltered( key ) ); |
4351 } |
4365 } |
4352 else |
4366 else |
4353 { |
4367 { |
4354 currentLocation = static_cast<TCamMediaStorage>( |
4368 currentLocation = static_cast<TCamMediaStorage>( |
4355 iController.IntegerSettingValue( key ) ); |
4369 iController.IntegerSettingValue( key ) ); |
4356 } |
4370 } |
4357 if(currentLocation != ECamMediaStoragePhone && |
4371 if(currentLocation != ECamMediaStoragePhone && |
4358 !IsMemoryFullOrUnavailable(ECamMediaStoragePhone)) |
4372 !IsMemoryFullOrUnavailable(ECamMediaStoragePhone)) |
4359 { |
4373 { |
4360 supportedMemTypes |= AknCommonDialogsDynMem::EMemoryTypePhone; |
4374 supportedMemTypes |= |
4361 } |
4375 AknCommonDialogsDynMem::EMemoryTypePhone; |
4362 if(currentLocation != ECamMediaStorageCard && |
4376 } |
4363 !IsMemoryFullOrUnavailable(ECamMediaStorageCard)) |
4377 if(currentLocation != ECamMediaStorageCard && |
4364 { |
4378 !IsMemoryFullOrUnavailable(ECamMediaStorageCard)) |
4365 supportedMemTypes |= AknCommonDialogsDynMem::EMemoryTypeMMCExternal; |
4379 { |
4366 } |
4380 supportedMemTypes |= |
4367 if(currentLocation != ECamMediaStorageMassStorage && |
4381 AknCommonDialogsDynMem::EMemoryTypeMMCExternal; |
4368 !IsMemoryFullOrUnavailable(ECamMediaStorageMassStorage)) |
4382 } |
4369 { |
4383 if(currentLocation != ECamMediaStorageMassStorage && |
4370 supportedMemTypes |= |
4384 !IsMemoryFullOrUnavailable(ECamMediaStorageMassStorage)) |
4371 AknCommonDialogsDynMem::EMemoryTypeInternalMassStorage; |
4385 { |
4372 } |
4386 supportedMemTypes |= |
4373 |
4387 AknCommonDialogsDynMem::EMemoryTypeInternalMassStorage; |
4374 CAknMemorySelectionDialogMultiDrive* memoryDialog = |
4388 } |
4375 CAknMemorySelectionDialogMultiDrive::NewL( |
4389 |
4376 ECFDDialogTypeSelect, |
4390 CAknMemorySelectionDialogMultiDrive* memoryDialog = |
4377 R_CAM_MEMORY_SELECT_DIALOG, |
4391 CAknMemorySelectionDialogMultiDrive::NewL( |
4378 EFalse, |
4392 ECFDDialogTypeSelect, |
4379 supportedMemTypes ); |
4393 R_CAM_MEMORY_SELECT_DIALOG, |
4380 TDriveNumber driveNumber = static_cast<TDriveNumber>(KErrNotFound); |
4394 EFalse, |
4381 CAknCommonDialogsBase::TReturnKey result = |
4395 supportedMemTypes ); |
4382 memoryDialog->ExecuteL( driveNumber ); |
4396 TDriveNumber driveNumber = static_cast<TDriveNumber>(KErrNotFound); |
4383 |
4397 CAknCommonDialogsBase::TReturnKey result = |
4384 if ( result != CAknCommonDialogsBase::TReturnKey( |
4398 memoryDialog->ExecuteL( driveNumber ); |
4385 CAknCommonDialogsBase::ERightSoftkey) ) |
4399 |
4386 { |
4400 if ( result != CAknCommonDialogsBase::TReturnKey( |
4387 DriveInfo::TDefaultDrives memVal = |
4401 CAknCommonDialogsBase::ERightSoftkey) ) |
4388 static_cast<DriveInfo::TDefaultDrives>( |
4402 { |
4389 CamUtility::GetDriveTypeFromDriveNumber(driveNumber)); |
4403 DriveInfo::TDefaultDrives memVal = |
4390 TInt settingValue = |
4404 static_cast<DriveInfo::TDefaultDrives>( |
4391 CamUtility::MapFromSettingsListMemory( memVal ); |
4405 CamUtility::GetDriveTypeFromDriveNumber(driveNumber)); |
4392 iController.SetIntegerSettingValueL(key,settingValue); |
4406 TInt settingValue = |
4393 } |
4407 CamUtility::MapFromSettingsListMemory( memVal ); |
4394 else |
4408 iController.SetIntegerSettingValueL(key,settingValue); |
4395 { |
4409 } |
4396 //No impl. |
4410 else |
4397 } |
4411 { |
4398 capture = EFalse; |
4412 //No impl. |
4399 } |
4413 } |
4400 else |
4414 capture = EFalse; |
4401 { |
4415 } |
4402 capture = EFalse; |
4416 else |
4403 } |
4417 { |
4404 iController.StartIdleTimer(); |
4418 capture = EFalse; |
4405 } |
4419 } |
4406 |
4420 iController.StartIdleTimer(); |
4421 |
|
4422 UpdateCba(); // Make sure that softkeys are visible. |
|
4423 } |
|
4424 } |
|
4407 PRINT1( _L("Camera <= CCamAppUi::CheckMemoryL, capture ok: %d"), capture ); |
4425 PRINT1( _L("Camera <= CCamAppUi::CheckMemoryL, capture ok: %d"), capture ); |
4408 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, DUP1_CCAMAPPUI_CHECKMEMORYL, |
4426 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, DUP1_CCAMAPPUI_CHECKMEMORYL, |
4409 "e_CCamAppUi_CheckMemoryL 0" ); |
4427 "e_CCamAppUi_CheckMemoryL 0" ); |
4410 return capture; |
4428 return capture; |
4411 } |
4429 } |
5982 TBool CCamAppUi::IsInPretendExit() const |
6000 TBool CCamAppUi::IsInPretendExit() const |
5983 { |
6001 { |
5984 return iPretendExit; |
6002 return iPretendExit; |
5985 } |
6003 } |
5986 |
6004 |
6005 // --------------------------------------------------------- |
|
6006 // CCamAppUi::ReturningFromPretendExit |
|
6007 // Indicates whether or not the application was in a simulated exit situation |
|
6008 // --------------------------------------------------------- |
|
6009 // |
|
6010 TBool CCamAppUi::ReturningFromPretendExit() const |
|
6011 { |
|
6012 return iReturningFromPretendExit; |
|
6013 } |
|
6014 |
|
6015 // --------------------------------------------------------- |
|
6016 // CCamAppUi::IsFirstBoot |
|
6017 // Indicates whether or not the application started the first time |
|
6018 // --------------------------------------------------------- |
|
6019 // |
|
6020 TBool CCamAppUi::IsFirstBoot() const |
|
6021 { |
|
6022 return iFirstBoot; |
|
6023 } |
|
6024 |
|
5987 // --------------------------------------------------------------------------- |
6025 // --------------------------------------------------------------------------- |
5988 // CCamAppUi::SendCameraAppToBackgroundL |
6026 // CCamAppUi::SendCameraAppToBackgroundL |
5989 // Sends the camera application to the background, to pretend we're closing |
6027 // Sends the camera application to the background, to pretend we're closing |
5990 // --------------------------------------------------------------------------- |
6028 // --------------------------------------------------------------------------- |
5991 // |
6029 // |
8135 if ( iMode == iTargetMode && |
8173 if ( iMode == iTargetMode && |
8136 ( ( iMode == ECamControllerVideo && iView == iVideoCaptureView ) || |
8174 ( ( iMode == ECamControllerVideo && iView == iVideoCaptureView ) || |
8137 ( iMode == ECamControllerImage && iView == iStillCaptureView ) ) && |
8175 ( iMode == ECamControllerImage && iView == iStillCaptureView ) ) && |
8138 ( iPreCaptureMode != ECamPreCapCaptureSetup ) && |
8176 ( iPreCaptureMode != ECamPreCapCaptureSetup ) && |
8139 ( iPreCaptureMode != ECamPreCapGenericSetting ) && |
8177 ( iPreCaptureMode != ECamPreCapGenericSetting ) && |
8140 ( iPreCaptureMode != ECamPreCapSceneSetting ) ) |
8178 ( iPreCaptureMode != ECamPreCapSceneSetting ) && |
8179 ( iPreCaptureMode != ECamPreCapStandby ) ) |
|
8141 { |
8180 { |
8142 fixedToolbar->SetToolbarVisibility( ETrue ); |
8181 fixedToolbar->SetToolbarVisibility( ETrue ); |
8143 } |
8182 } |
8144 else |
8183 else |
8145 { |
8184 { |
8148 } |
8187 } |
8149 else |
8188 else |
8150 { |
8189 { |
8151 if( (iPreCaptureMode != ECamPreCapCaptureSetup) && |
8190 if( (iPreCaptureMode != ECamPreCapCaptureSetup) && |
8152 (iPreCaptureMode != ECamPreCapGenericSetting) && |
8191 (iPreCaptureMode != ECamPreCapGenericSetting) && |
8153 (iPreCaptureMode != ECamPreCapSceneSetting ) ) |
8192 (iPreCaptureMode != ECamPreCapSceneSetting) && |
8193 (iPreCaptureMode != ECamPreCapStandby) ) |
|
8154 { |
8194 { |
8155 fixedToolbar->SetToolbarVisibility( ETrue ); |
8195 fixedToolbar->SetToolbarVisibility( ETrue ); |
8156 } |
8196 } |
8157 else |
8197 else |
8158 { |
8198 { |
8453 // |
8493 // |
8454 void CCamAppUi::SetViewFinderInTransit(TBool aInTransit) |
8494 void CCamAppUi::SetViewFinderInTransit(TBool aInTransit) |
8455 { |
8495 { |
8456 iViewFinderInTransit = aInTransit; |
8496 iViewFinderInTransit = aInTransit; |
8457 } |
8497 } |
8498 |
|
8499 // ----------------------------------------------------------------------------- |
|
8500 // CCamAppUi::CheckMemoryAvailableForCapturing |
|
8501 // ----------------------------------------------------------------------------- |
|
8502 // |
|
8503 void |
|
8504 CCamAppUi::CheckMemoryAvailableForCapturing() |
|
8505 { |
|
8506 PRINT( _L("Camera => CCamAppUi::CheckMemoryAvailableForCapturing") ) |
|
8507 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, CCAMAPPUI_CHECKMEMORYAVAILABLEFORCAPTURING, "e_CCamAppUi_CheckMemoryAvailableForCapturing 1" ); |
|
8508 if ( ( ECamControllerVideo == iController.CurrentMode() || |
|
8509 ECamControllerVideo == iController.TargetMode() ) && |
|
8510 ECamMediaStorageCard == iController. |
|
8511 IntegerSettingValue( ECamSettingItemVideoMediaStorage ) ) |
|
8512 { |
|
8513 iMemoryAvailableForCapturing = !IsMemoryFullOrUnavailable( ECamMediaStorageCard ); |
|
8514 } |
|
8515 else |
|
8516 { |
|
8517 iMemoryAvailableForCapturing = !IsMemoryFullOrUnavailable( ECamMediaStorageCurrent ); |
|
8518 } |
|
8519 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, DUP1_CCAMAPPUI_CHECKMEMORYAVAILABLEFORCAPTURING, "e_CCamAppUi_CheckMemoryAvailableForCapturing 0" ); |
|
8520 PRINT1( _L("Camera <= CCamAppUi::CheckMemoryAvailableForCapturing iMemoryAvailableForCapturing:%d"), iMemoryAvailableForCapturing ) |
|
8521 } |
|
8522 |
|
8523 // ----------------------------------------------------------------------------- |
|
8524 // CCamAppUi::IsMemoryAvailableForCapturing |
|
8525 // ----------------------------------------------------------------------------- |
|
8526 // |
|
8527 TBool |
|
8528 CCamAppUi::IsMemoryAvailableForCapturing() const |
|
8529 { |
|
8530 return iMemoryAvailableForCapturing; |
|
8531 } |
|
8532 |
|
8458 // End of File |
8533 // End of File |