f1a087c594a51c1b80d3064dfd07a8e2c151a01d
[platform/framework/native/uix.git] / inc / FUixSensorAccelerationSensorData.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     FUixSensorAccelerationSensorData.h
20  * @brief    This is the header file for the %AccelerationSensorData class.
21  *
22  * This header file contains the declarations of the %AccelerationSensorData class.
23  */
24
25 #ifndef _FUIX_SENSOR_ACCELERATION_SENSOR_DATA_H_
26 #define _FUIX_SENSOR_ACCELERATION_SENSOR_DATA_H_
27
28 #include <FOspConfig.h>
29 #include <FUixSensorSensorData.h>
30
31 namespace Tizen { namespace Uix { namespace Sensor
32 {
33 /**
34  * @class    AccelerationSensorData
35  * @brief    This class stores acceleration sensor data, including a time stamp.
36  *
37  * @since 2.0
38  *
39  * @remarks      @b Header @b %file: @b \#include @b <FUix.h> @n
40  *               @b Library : @b osp-uix
41  *
42  * The %AccelerationSensorData class stores acceleration sensor data, including a time stamp.
43  * @n
44  * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/uix/sensor_manager.htm">Sensor Manager</a>.
45  */
46 class _OSP_EXPORT_ AccelerationSensorData
47         : public Tizen::Uix::Sensor::SensorData
48 {
49 public:
50         /**
51          * This is the default constructor for this class.
52          *
53          * @since 2.0
54          */
55         AccelerationSensorData(void);
56
57         /**
58          * This is the destructor for this class.
59          *
60          * @since 2.0
61          */
62         virtual ~AccelerationSensorData(void);
63
64 private:
65         virtual result GetValue(SensorDataKey dataKey, long& value) const;
66         virtual result GetValue(SensorDataKey dataKey, float& value) const;
67         virtual result GetValue(SensorDataKey dataKey, bool& value) const;
68
69 public:
70         /**
71          * The x-axis value of the acceleration sensor data
72          *
73          * @since 2.0
74          */
75         float x;
76
77         /**
78          * The y-axis value of the acceleration sensor data
79          *
80          * @since 2.0
81          */
82         float y;
83
84         /**
85          * The z-axis value of the acceleration sensor data
86          *
87          * @since 2.0
88          */
89         float z;
90 }; // AccelerationSensorData
91 } } } // Tizen::Uix::Sensor
92
93 #endif // _FUIX_SENSOR_ACCELERATION_SENSOR_DATA_H_