Internal issue Fixes
[apps/osp/Camera.git] / inc / CmCameraStarterThread.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://floralicense.org/license/
9 //
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.
15 //
16
17 /**
18  * @file                CmCameraStarterThread.h
19  * @brief               This is the header file for CameraStarterThread class.
20  */
21
22 #ifndef _CM_CAMERA_STARTER_THREAD_H_
23 #define _CM_CAMERA_STARTER_THREAD_H_
24
25 #include <FApp.h>
26 #include <FBase.h>
27 #include <FGraphics.h>
28 #include <FIo.h>
29 #include "CmCameraPresentationModel.h"
30 #include "CmTypes.h"
31
32 class CameraPresentationModel;
33 class Tizen::Graphics::BufferInfo;
34
35 class CameraStarterThread
36         : public Tizen::Base::Runtime::Thread
37 {
38 public:
39         virtual ~CameraStarterThread(void);
40
41         static CameraStarterThread* GetInstance(void);  
42         result SetBufferinfo(Tizen::Graphics::BufferInfo* bufferinfo);
43
44 private:
45         CameraStarterThread(void);
46         CameraStarterThread(const CameraStarterThread&);
47         CameraStarterThread& operator = (const CameraStarterThread&);
48
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;
57
58 private:
59         static CameraStarterThread* __pCameraStarterThread;
60         Tizen::Graphics::BufferInfo* __pBufferInfo;
61 };
62
63 #endif // _CM_CAMERA_STARTER_THREAD_H_