[dali_2.3.35] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / dali / internal / system / common / widget-controller.h
1 #ifndef DALI_WIDGET_CONTROLLER_H
2 #define DALI_WIDGET_CONTROLLER_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 <dali/public-api/signals/connection-tracker.h>
23
24 // INTERNAL INCLUDES
25 #include <dali/public-api/adaptor-framework/widget-impl.h>
26
27 namespace Dali
28 {
29 namespace Internal
30 {
31 namespace Adaptor
32 {
33 /**
34  * @brief Holds the Implementation for the internal WidgetImpl class
35  */
36 class Widget::Impl : public Dali::ConnectionTracker
37 {
38 public:
39   /**
40    * Set content information to widget framework
41    */
42   virtual void SetContentInfo(const std::string& contentInfo) = 0;
43
44   /**
45    * Check Widget is using key
46    */
47   virtual bool IsKeyEventUsing() const = 0;
48
49   /**
50    * Set the flag that widget is using keyEvent
51    */
52   virtual void SetUsingKeyEvent(bool flag) = 0;
53
54   /**
55    * Set the Information of widget
56    */
57   virtual void SetInformation(Dali::Window window, const std::string& widgetId) = 0;
58
59   /**
60    * Get the window
61    */
62   virtual Dali::Window GetWindow() const = 0;
63
64   /**
65    * Get the widget id
66    */
67   virtual std::string GetWidgetId() const = 0;
68 };
69
70 } // namespace Adaptor
71
72 } // namespace Internal
73
74 } // namespace Dali
75
76 #endif // DALI_WIDGET_CONTROLLER_H