static result CreateInstance(void);
static void DestroyInstance(void);
static void DestroyCameraStarterThreadInstance(void);
+ virtual bool OnStart(void);
+ virtual void OnStop(void);
virtual Tizen::Base::Object* Run(void);
friend class CameraApp;
, __settingWhiteBalance(0)
, __settingTimeInterval(0)
, __settingExposure(0)
-
, __recordTimeCount(0)
, __recordingMaxTime(0)
, _closeTimerValue(0)
-
, __previewResolutionWidth(0)
, __previewResolutionHeight(0)
, __pRecordingResolutionWidth(0)
, __isOrientationChanged(false)
, __doRecording(false)
,__recorderStopped(false)
-
, __pSettingPanel(null)
, __pActionPanel(null)
, __dir(ORIENTATION_STATUS_NONE)
, __uri(L"")
, __mime(L"")
, __isCapacityBelow(false)
-
, __pCancelPopup(null)
, __setTimerInterval(false)
, __pRecordPauseBitmap(null)
{
__recorderStopped = true;
DoStopRecording();
- __recorderStopped = false;
ShowMemoryFull();
ReInitialise();
Update(false);
{
DoStopRecording();
ShowMemoryFull();
+ }
+ else
+ {
__recorderStopped = false;
}
AppLogDebug("DoStopRecording");
__recorderStopped = true;
DoStopRecording();
- __recorderStopped = false;
}
}
IList* pKeyList = pExtraData->GetKeysN();
int loopCount = pKeyList->GetCount();
+ AppLogDebug("Loopcount is %d",loopCount);
+
for (int i = 0; i < loopCount; ++i)
{
pKey = static_cast<const String*>(pKeyList->GetAt(i));
pValue = static_cast<const String*>(pExtraData->GetValue(*pKey));
+ AppLogDebug("Key is %ls",pKey->GetPointer());
+ AppLogDebug("pValue is %ls",pValue->GetPointer());
+
AppLogDebug("(%ls:%ls)", pKey == null ? L"(null)" : pKey->GetPointer(), pValue == null ? L"(null)" : pValue->GetPointer());
pArguments->Add(new (std::nothrow) String(*pKey), new (std::nothrow) String(*pValue));
}
}
else
{
+ AppLogDebug("pAllowSwitch is not null");
const String* pAllowSwitch = static_cast<const String*>(pArguments->GetValue(String(ALLOW_SWITCH)));
if (pAllowSwitch->Equals(ALLOW_SWITCH_TRUE, false) == true)
{
if (IsFailed(r))
{
AppLogDebug("IsFailed");
+ __pCameraStarterThread->Stop();
+ __pCameraStarterThread->Join();
delete __pCameraStarterThread;
__pCameraStarterThread = null;
return r;
CameraStarterThread::DestroyInstance(void)
{
AppLogDebug("ENTER");
+
+ __pCameraStarterThread->Stop();
+ __pCameraStarterThread->Join();
delete __pCameraStarterThread;
__pCameraStarterThread = null;
AppLogDebug("EXIT");
return E_SUCCESS;
}
+bool
+CameraStarterThread::OnStart(void)
+{
+ return true;
+}
+
+void
+CameraStarterThread::OnStop(void)
+{
+ //empty implementation
+}
+
Object*
CameraStarterThread::Run(void)
{