Merge "Add Dali::DevelWindowSystem::GetScreenSize" into tizen_7.0
[platform/core/uifw/dali-adaptor.git] / dali / internal / accessibility / bridge / bridge-value.h
1 #ifndef DALI_INTERNAL_ACCESSIBILITY_BRIDGE_VALUE_H
2 #define DALI_INTERNAL_ACCESSIBILITY_BRIDGE_VALUE_H
3
4 /*
5  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <array>
23 #include <string>
24 #include <tuple>
25 #include <unordered_map>
26 #include <vector>
27
28 // INTERNAL INCLUDES
29 #include <dali/devel-api/atspi-interfaces/value.h>
30 #include <dali/internal/accessibility/bridge/bridge-base.h>
31
32 /**
33  * @brief The BridgeValue class is to correspond with Dali::Accessibility::Value.
34  */
35 class BridgeValue : public virtual BridgeBase
36 {
37 protected:
38   /**
39    * @brief Constructor.
40    */
41   BridgeValue();
42
43   /**
44    * @brief Registers Value functions to dbus interfaces.
45    */
46   void RegisterInterfaces();
47
48   /**
49    * @brief Returns Value Action object of the currently executed DBus method call.
50    *
51    * @return The Value object
52    */
53   Dali::Accessibility::Value* FindSelf() const;
54
55 public:
56   /**
57    * @copydoc Dali::Accessibility::Value::GetCurrent()
58    */
59   double GetCurrentValue();
60
61   /**
62    * @copydoc Dali::Accessibility::Value::SetCurrent()
63    */
64   void SetCurrentValue(double newValue);
65
66   /**
67    * @copydoc Dali::Accessibility::Value::GetValueText()
68    */
69   std::string GetCurrentValueText();
70
71   /**
72    * @copydoc Dali::Accessibility::Value::GetMaximum()
73    */
74   double GetMaximumValue();
75
76   /**
77    * @copydoc Dali::Accessibility::Value::GetMinimumIncrement()
78    */
79   double GetMinimumIncrement();
80
81   /**
82    * @copydoc Dali::Accessibility::Value::GetMinimum()
83    */
84   double GetMinimumValue();
85 };
86
87 #endif // DALI_INTERNAL_ACCESSIBILITY_BRIDGE_VALUE_H