Enable atspi
[platform/core/uifw/dali-adaptor.git] / dali / internal / sensor / common / tilt-sensor-impl.cpp
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
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
18 #include <dali/internal/sensor/common/tilt-sensor-impl.h>
19
20 namespace Dali
21 {
22
23 namespace Internal
24 {
25
26 namespace Adaptor
27 {
28
29 TiltSensor::TiltSensor() = default;
30
31 TiltSensor::~TiltSensor() = default;
32
33 bool TiltSensor::Start()
34 {
35   return false;
36 }
37
38 void TiltSensor::Stop()
39 {
40
41 }
42
43 bool TiltSensor::IsStarted() const
44 {
45   return false;
46 }
47
48 float TiltSensor::GetRoll() const
49 {
50   return 0.0f;
51 }
52
53 float TiltSensor::GetPitch() const
54 {
55   return 0.0f;
56 }
57
58 Quaternion TiltSensor::GetRotation() const
59 {
60   return Quaternion::IDENTITY;
61 }
62
63
64 TiltSensor::TiltedSignalType& TiltSensor::TiltedSignal()
65 {
66   static TiltSensor::TiltedSignalType signal;
67   return signal;
68 }
69
70
71 void TiltSensor::SetUpdateFrequency(float frequencyHertz)
72 {
73
74 }
75
76 float TiltSensor::GetUpdateFrequency() const
77 {
78   return 0.0f;
79 }
80
81 void TiltSensor::SetRotationThreshold(Radian rotationThreshold)
82 {
83
84 }
85
86 /**
87  * @copydoc Dali::TiltSensor::GetRotationThreshold()
88  */
89 Radian TiltSensor::GetRotationThreshold() const
90 {
91   return Radian();
92 }
93
94 /**
95  * Connects a callback function with the object's signals.
96  * @param[in] object The object providing the signal.
97  * @param[in] tracker Used to disconnect the signal.
98  * @param[in] signalName The signal to connect to.
99  * @param[in] functor A newly allocated FunctorDelegate.
100  * @return True if the signal was connected.
101  * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor.
102  */
103 bool TiltSensor::DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor )
104 {
105   return false;
106 }
107
108 } // namespace Adaptor
109
110 } // namespace Internal
111
112 } // namespace Dali