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