Merge "seek expection handling bug" into tizen_2.2
[platform/framework/native/media.git] / src / FMedia_CameraRefHelper.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_CameraRefHelper.h
20  *
21  * This header file contains the declarations of the %_CameraRefHelper class.
22  */
23
24 #ifndef _FMEDIA_INTERNAL_CAMERA_REF_HELPER_H_
25 #define _FMEDIA_INTERNAL_CAMERA_REF_HELPER_H_
26
27 #include <FBaseObject.h>
28
29 namespace Tizen { namespace Media
30 {
31
32 /**
33  * @class       _CameraRefHelper
34  * @brief       This class implements the _CameraRefHelper class.
35  *
36  */
37 class _CameraRefHelper
38         : public Tizen::Base::Object
39 {
40 public:
41         /**
42          * Increments the reference count by one.
43          */
44         int AddRefCount(void);
45
46         /**
47         * Decrements the reference count by one.
48         *
49         * @return               The reference count after decrement
50         */
51         int ReleaseRefCount(void);
52
53 protected:
54         /**
55          * This is the default constructor for this class.
56          */
57         _CameraRefHelper(void);
58
59         /**
60          * This is the destructor for this class. @n
61          */
62         virtual ~_CameraRefHelper(void);
63
64 private:
65         int __refCount;
66 };
67
68 }}
69 #endif
70