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