Support Widget Application
[platform/core/uifw/dali-adaptor.git] / adaptors / tizen / widget-controller.h
1 #ifndef DALI_WIDGET_CONTROLLER_H
2 #define DALI_WIDGET_CONTROLLER_H
3
4 /*
5  * Copyright (c) 2017 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 #ifdef WIDGET_SUPPOERTED
26 #include <widget_base.h>
27 #endif
28 #include <widget-impl.h>
29
30 namespace Dali
31 {
32
33 namespace Internal
34 {
35
36 namespace Adaptor
37 {
38
39 /**
40  * @brief Holds the Implementation for the internal WidgetImpl class
41  */
42 class Widget::Impl : public ConnectionTracker
43 {
44 public:
45
46 #ifndef WIDGET_SUPPOERTED
47   typedef void* widget_base_instance_h;
48 #endif
49
50   /**
51    * Constructor
52    */
53   Impl( widget_base_instance_h instanceHandle );
54
55   /**
56    * Destructor
57    */
58   ~Impl();
59
60 public:
61
62   /**
63    * Set content information to widget framework
64    */
65   void SetContentInfo( const std::string& contentInfo );
66
67 private:
68
69   widget_base_instance_h mInstanceHandle;
70 };
71
72 } // namespace Adaptor
73
74 } // namespace Internal
75
76 } // namespace Dali
77
78 #endif // DALI_WIDGET_CONTROLLER_H