2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file CmCameraStarterThread.h
19 * @brief This is the header file for CameraStarterThread class.
22 #ifndef _CM_CAMERA_STARTER_THREAD_H_
23 #define _CM_CAMERA_STARTER_THREAD_H_
27 #include <FGraphics.h>
29 #include "CmCameraPresentationModel.h"
32 class CameraPresentationModel;
33 class Tizen::Graphics::BufferInfo;
35 class CameraStarterThread
36 : public Tizen::Base::Runtime::Thread
39 virtual ~CameraStarterThread(void);
41 static CameraStarterThread* GetInstance(void);
42 result SetBufferinfo(Tizen::Graphics::BufferInfo* bufferinfo);
45 CameraStarterThread(void);
46 CameraStarterThread(const CameraStarterThread&);
47 CameraStarterThread& operator = (const CameraStarterThread&);
49 result Construct(void);
50 static result CreateInstance(void);
51 static void DestroyInstance(void);
52 static void DestroyCameraStarterThreadInstance(void);
53 virtual bool OnStart(void);
54 virtual void OnStop(void);
55 virtual Tizen::Base::Object* Run(void);
56 friend class CameraApp;
59 static CameraStarterThread* __pCameraStarterThread;
60 Tizen::Graphics::BufferInfo* __pBufferInfo;
63 #endif // _CM_CAMERA_STARTER_THREAD_H_