virtual void OnDeviceStateChanged(Tizen::System::DeviceType deviceType, const Tizen::Base::String& state);
virtual void OnContentScanCompleted (RequestId reqId, const Tizen::Base::String &scanPath, result r);
+ void UpdateContentFile(void);
private:
CameraPresentationModel(void);
|| __pCamcorderPresentationModel->GetRecorderState() == RECORDER_STATE_PAUSED
)
{
- AppLogDebug("RECORDING");
+ AppLogDebug("StopRecord::GetRecorderState() = %d", __pCamcorderPresentationModel->GetRecorderState());
- DrawThumbnail();
-
- if (__setTimerInterval == false)
- {
- InitElapsedTimeLable();
- __pCamcorderPresentationModel->StopRecord();
- }
- __pCameraInfoPanel->SetDrawPopupTimerUpdate(false);
- __pCameraInfoPanel->SetDrawPopupTimerCount(0);
- __pCameraInfoPanel->Invalidate(true);
-
- if (__pCameraInfoPanel->GetDrawPopupTimer() == true)
- {
- __pCameraInfoPanel->SetDrawPopupTimer(false);
- __pCameraInfoPanel->Invalidate(true);
- }
-
- __isRecording = false;
- __setTimerInterval = false;
- __pCamcorderPresentationModel->SetIntervalTimerRun(false);
-
- __isRecordingPause = false;
-
- r = SetRecordButton(false);
- AppLogDebug("SetRecordButton() fail[%s]", GetErrorMessage(r));
-
- __timeCount = 0;
+ __pCamcorderPresentationModel->StopRecord();
+ __pCamcorderPresentationModel->UpdateContentFile();
+ r = TerminateApp();
}
else
{
__startPreviewException = status;
}
+void
+CameraPresentationModel::UpdateContentFile(void)
+{
+ AppLogDebug("Ravi: latest content name is %ls",__lastestContentName.GetPointer());
+ ContentManager::ScanFile(__lastestContentName);
+ SetAppControlRequestType(APP_CONTROL_REQUEST_TYPE_SUCCEEDED);
+}