TryReturn(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO),"[%s] __pListViewQuality->SetItemChecked failed", GetErrorMessage(r));
__qualityIndex = index;
+
+ AppConfig::GetInstance()->SetValue(SECTION, KEY_QUALITY, __qualityIndex);
+ CreateDisplayString();
}
else if (&source == __pListViewCodec)
{
TryReturn(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO),"[%s] __pListViewCodec->SetItemChecked failed", GetErrorMessage(r));
__codecIndex = index;
+
+ CodecType tempCodecType;
+ __pCodecTypeList->GetAt(__codecIndex, tempCodecType);
+ AppConfig::GetInstance()->SetValue(SECTION, KEY_CODEC, tempCodecType);
+ CreateDisplayString();
}
else if (&source == __pListViewStreamCallback)
{
{
__isStreamCallback = false;
}
+
+ TryReturnVoid(__pAudioRecorder != null, "__pAudioRecorder handle is null");
+ if (__isStreamCallback == true)
+ {
+ __pAudioRecorder->AddAudioStreamFilter(*this);
+ }
+ else
+ {
+ __pAudioRecorder->RemoveAudioStreamFilter(*this);
+ }
}
Invalidate(true);
case ID_BUTTON_QUALITY_OK:
{
- AppConfig::GetInstance()->SetValue(SECTION, KEY_QUALITY, __qualityIndex);
HidePopUp(__pPopupQuality);
- CreateDisplayString();
DeletePopup(__pPopupQuality);
__pPopupQuality = null;
}
case ID_BUTTON_CODEC_OK:
{
- CodecType tempCodecType;
- __pCodecTypeList->GetAt(__codecIndex, tempCodecType);
- AppConfig::GetInstance()->SetValue(SECTION, KEY_CODEC, tempCodecType);
HidePopUp(__pPopupCodec);
- CreateDisplayString();
DeletePopup(__pPopupCodec);
__pPopupCodec = null;
}
HidePopUp(__pPopupStreamCallback);
DeletePopup(__pPopupStreamCallback);
__pPopupStreamCallback = null;
-
- TryReturnVoid(__pAudioRecorder != null, "__pAudioRecorder handle is null");
- if (__isStreamCallback == true)
- {
- __pAudioRecorder->AddAudioStreamFilter(*this);
- }
- else
- {
- __pAudioRecorder->RemoveAudioStreamFilter(*this);
- }
}
break;
, __pPopupZoom(null)
, __pPopupFlip(null)
, __pSupportedCodecPopup(null)
- , __pShownPopup(null)
, __pPopupAudioStreamCallback(null)
, __pPopupVideoStreamCallback(null)
+ , __pShownPopup(null)
, __pListViewEffect(null)
, __pListViewFocusMode(null)
, __pListViewIso(null)
{
(*__pShownPopup)->RemoveAllControls();
(*__pShownPopup)->SetShowState(false);
- AppLog(" Removing the control");
delete *__pShownPopup;
*__pShownPopup = null;
__pShownPopup = null;
{
_pErrorMessagePopup->RemoveAllControls();
_pErrorMessagePopup->SetShowState(false);
- AppLog(" Removing the control");
+
SAFE_DELETE(_pErrorMessagePopup);
_isProcessedEvent = true;
_inErrorState = false;
void
VideoRecorderForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
- result r = E_SUCCESS;
AppLog("Enter action id = %d", actionId);
switch (actionId)
{
HidePopUp(__pPopupAudioStreamCallback);
DeletePopup(&__pPopupAudioStreamCallback);
-
- TryReturnVoid(__pVideoRecorder != null, "__pVideoRecorder handle is null");
- if (__isAudioStreamCallback == true)
- {
- __pVideoRecorder->AddAudioStreamFilter(*this);
- }
- else
- {
- __pVideoRecorder->RemoveAudioStreamFilter(*this);
- }
}
break;
{
HidePopUp(__pPopupVideoStreamCallback);
DeletePopup(&__pPopupVideoStreamCallback);
-
- TryReturnVoid(__pCamera != null, "__pCamera handle is null");
- if (__isVideoStreamCallback == true)
- {
- __pCamera->AddVideoStreamFilter(*this);
- }
- else
- {
- __pCamera->RemoveVideoStreamFilter(*this);
- }
-
- r = __pCamera->StopPreview();
- TryReturnVoid(r == E_SUCCESS,"[%s] __pCamera->StopPreview()", GetErrorMessage(r));
-
- r = __pOverlay->GetBackgroundBufferInfo(__bufferInfo);
- TryReturnVoid(r == E_SUCCESS,"[%s] __pOverlay->GetBackgroundBufferInfo", GetErrorMessage(r));
-
- if (__previewByCallback == 1)
- {
- r = __pCamera->StartPreview(null, true);
- TryReturnVoid(r == E_SUCCESS, "[%s] __pCamera->StartPreview", GetErrorMessage(r));
- }
- else
- {
- r = __pCamera->StartPreview(&__bufferInfo, false);
- TryReturnVoid(r == E_SUCCESS, "[%s] __pCamera->StartPreview", GetErrorMessage(r));
- }
}
break;
HidePopUp(__pPopupExposure);
DeletePopup(&__pPopupExposure);
__pExposureSlider = null;
- ShowFooterItems();
}
break;
HidePopUp(__pPopupBrightness);
DeletePopup(&__pPopupBrightness);
__pBrightnessSlider = null;
- ShowFooterItems();
}
break;
HidePopUp(__pPopupContrast);
DeletePopup(&__pPopupContrast);
__pContrastSlider = null;
- ShowFooterItems();
}
break;
HidePopUp(__pPopupZoom);
DeletePopup(&__pPopupZoom);
__pZoomLevelSlider = null;
- ShowFooterItems();
}
break;
case ID_BUTTON_FLIP_OK:
{
- CameraFlipType flipType = __pCamera->GetFlip();
HidePopUp(__pPopupFlip);
- if (flipType != __flipType)
- {
- r = __pCamera->StopPreview();
- TryReturn(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] __pCamera->StopPreview", GetErrorMessage(r));
- r = __pCamera->SetFlip(__flipType);
- TryReturn(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] __pCamera->SetFlip", GetErrorMessage(r));
- AppLog("Set Flip return = %s value = %d", GetErrorMessage(r), __flipType);
- if (__previewByCallback == 1)
- {
- r = __pCamera->StartPreview(null, true);
- TryReturn(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] __pCamera->StartPreview", GetErrorMessage(r));
- }
- else
- {
- r = __pCamera->StartPreview(&__bufferInfo, false);
- TryReturn(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] __pCamera->StartPreview", GetErrorMessage(r));
- }
- }
DeletePopup(&__pPopupFlip);
}
break;
{
__isAudioStreamCallback = false;
}
+
+ TryReturnVoid(__pVideoRecorder != null, "__pVideoRecorder handle is null");
+ if (__isAudioStreamCallback == true)
+ {
+ __pVideoRecorder->AddAudioStreamFilter(*this);
+ }
+ else
+ {
+ __pVideoRecorder->RemoveAudioStreamFilter(*this);
+ }
}
else if (&source == __pListViewVideoStreamCallback)
{
{
__isVideoStreamCallback = false;
}
+
+ TryReturnVoid(__pCamera != null, "__pCamera handle is null");
+ if (__isVideoStreamCallback == true)
+ {
+ __pCamera->AddVideoStreamFilter(*this);
+ }
+ else
+ {
+ __pCamera->RemoveVideoStreamFilter(*this);
+ }
+
+ r = __pCamera->StopPreview();
+ TryReturnVoid(r == E_SUCCESS,"[%s] __pCamera->StopPreview()", GetErrorMessage(r));
+
+ r = __pOverlay->GetBackgroundBufferInfo(__bufferInfo);
+ TryReturnVoid(r == E_SUCCESS,"[%s] __pOverlay->GetBackgroundBufferInfo", GetErrorMessage(r));
+
+ if (__previewByCallback == 1)
+ {
+ r = __pCamera->StartPreview(null, true);
+ TryReturnVoid(r == E_SUCCESS, "[%s] __pCamera->StartPreview", GetErrorMessage(r));
+ }
+ else
+ {
+ r = __pCamera->StartPreview(&__bufferInfo, false);
+ TryReturnVoid(r == E_SUCCESS, "[%s] __pCamera->StartPreview", GetErrorMessage(r));
+ }
}
else if (&source == __pListViewVideoCodec)
{
TryCatch(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO),"[%s] __pListViewFlipType->SetItemChecked", GetErrorMessage(r));
__flipType = (CameraFlipType) index;
- AppLog("flip type = %d selected", index);
+
+ CameraFlipType flipType = __pCamera->GetFlip();
+ if (flipType != __flipType)
+ {
+ r = __pCamera->StopPreview();
+ TryReturn(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] __pCamera->StopPreview", GetErrorMessage(r));
+ r = __pCamera->SetFlip(__flipType);
+ TryReturn(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] __pCamera->SetFlip", GetErrorMessage(r));
+ AppLog("Set Flip return = %s value = %d", GetErrorMessage(r), __flipType);
+ if (__previewByCallback == 1)
+ {
+ r = __pCamera->StartPreview(null, true);
+ TryReturn(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] __pCamera->StartPreview", GetErrorMessage(r));
+ }
+ else
+ {
+ r = __pCamera->StartPreview(&__bufferInfo, false);
+ TryReturn(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] __pCamera->StartPreview", GetErrorMessage(r));
+ }
+ }
+
}
else if (&source == __pListViewSetting)
{
Invalidate(true);
+ ShowFooterItems();
+
return;
CATCH:
__cameraError = CAMERA_ERROR_DEVICE_INTERRUPTED;