CAF state bug fix
[platform/framework/native/media.git] / src / FMedia_RecorderSession.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file                        FMedia_RecorderSession.h
20  * @brief                       This header file contains the declarations of the %_RecorderSession class.
21  *
22  */
23
24 #ifndef _FMEDIA_INTERNAL_RECORDER_SESSION_H_
25 #define _FMEDIA_INTERNAL_RECORDER_SESSION_H_
26
27 #include <FBaseObject.h>
28 #include "FMedia_RecorderTypes.h"
29
30 namespace Tizen { namespace Media
31 {
32
33 class _CameraCoordinator;
34
35 /**
36 * @class        _RecorderSession
37 * @brief        This class is common for recorder session.
38 *
39 */
40 class _RecorderSession
41         : public Tizen::Base::Object
42 {
43 public:
44         _RecorderSession(void);
45         virtual ~_RecorderSession(void);
46
47         result Construct(_RecorderSourceType recorderSource);
48         result Construct(_RecorderDeviceType recorderDevice);
49         _RecorderHandle GetHandle(void);
50
51 private:
52         _CameraMode __previousCameraMode;
53         _RecorderDeviceType __recorderDevice;
54         _RecorderHandle __handle;
55         _CameraCoordinator* __pCoordinator;
56 };
57
58 }}// Tizen::Media
59
60 #endif