881dfcbdf5fbae03a23d0e0679a35dbc5202dde5
[framework/web/wrt-plugins-common.git] / src / modules / API / Camera / ICameraFeature.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Apache License, Version 2.0 (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://www.apache.org/licenses/LICENSE-2.0
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  * @author      Karol Majewski (k.majewski@samsung.com)
18  * @version     0.1
19  * @brief
20  */
21
22 #ifndef WRTDEVICEAPIS_CAMERA_API_ICAMERAFEATURE_H_
23 #define WRTDEVICEAPIS_CAMERA_API_ICAMERAFEATURE_H_
24
25 #include <string>
26 #include "IFeatureValue.h"
27
28 namespace WrtDeviceApis {
29 namespace Camera {
30 namespace Api {
31
32 class ICameraFeature
33 {
34     enum Types
35     {
36         //camera feature is represented by an interval.
37         FEATURETYPE_INTERVAL = 0,
38         //camera feature is represented binary.
39         FEATURETYPE_BINARY = 1,
40         //camera feature is represented by an enumeration.
41         FEATURETYPE_ENUMERATION = 2
42     };
43
44   private:
45     //A optional description of the feature.
46     std::string m_description;
47
48     //The unique feature identifier.
49     long m_id;
50
51     //The type of the camera feature.
52     Types m_type;
53
54     //The current value of the camera feature.
55     IFeatureValue m_value;
56
57     //The default value of the camera feature.
58     IFeatureValue m_default;
59
60     //A set of feature values that represents the allowed feature configurations
61     //IFeatureValue *m_possibleValues;
62
63   public:
64     ICameraFeature();
65     virtual ~ICameraFeature();
66 };
67
68 }
69 }
70 }
71 #endif /* WRTPLUGINSICAMERAFEATURE_H_ */