ca1e417c533a327821e05e3db605d3022a5b318b
[platform/core/uifw/dali-adaptor.git] / dali / internal / accessibility / bridge / bridge-application.h
1 #ifndef DALI_INTERNAL_ACCESSIBILITY_BRIDGE_APPLICATION_H
2 #define DALI_INTERNAL_ACCESSIBILITY_BRIDGE_APPLICATION_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 // INTERNAL INCLUDES
22 #include <dali/internal/accessibility/bridge/bridge-base.h>
23
24 /**
25  * @brief The BridgeApplication class is to correspond with Dali::Accessibility::Application.
26  *
27  * Implementation of org.a11y.atspi.Application interface
28  */
29 class BridgeApplication : public virtual BridgeBase
30 {
31 protected:
32   BridgeApplication() = default;
33
34   /**
35    * @brief Registers Application functions to dbus interfaces.
36    */
37   void RegisterInterfaces();
38
39   /**
40    * @brief Returns the Application object of the currently executed DBus method call.
41    *
42    * @return The Application object
43    */
44   Dali::Accessibility::Application* FindSelf() const;
45
46 public:
47   /**
48    * @brief Gets name of graphic user interface framework used by an application.
49    *
50    * @return String with name
51    */
52   std::string GetToolkitName();
53
54   /**
55    * @brief Gets version of graphic user interface framework used by an application.
56    *
57    * @return String with version
58    */
59   std::string GetVersion();
60 };
61
62 #endif // DALI_INTERNAL_ACCESSIBILITY_BRIDGE_APPLICATION_H