[4.0] Create Widget Application
[platform/core/uifw/dali-adaptor.git] / adaptors / widget / widget-data.cpp
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include "widget-data.h"
20
21 // EXTERNAL INCLUDES
22 #include <dali/integration-api/debug.h>
23
24 // INTERNAL INCLUDES
25 #include <widget-data-impl.h>
26
27 namespace Dali
28 {
29
30 WidgetData WidgetData::New( const char* instanceId, bundle* args, char* content )
31 {
32   return Internal::Adaptor::WidgetData::New( instanceId, args, content );
33 }
34
35 WidgetData::~WidgetData()
36 {
37 }
38
39 WidgetData::WidgetData()
40 {
41 }
42
43 WidgetData::WidgetData(const WidgetData& widgetData)
44 : BaseHandle(widgetData)
45 {
46 }
47
48 WidgetData& WidgetData::operator=(const WidgetData& widgetData)
49 {
50   if( *this != widgetData )
51   {
52     BaseHandle::operator=( widgetData );
53   }
54   return *this;
55 }
56
57 const char* WidgetData::GetInstanceId()
58 {
59   return Internal::Adaptor::GetImplementation(*this).GetInstanceId();
60 }
61
62 bundle* WidgetData::GetArgs()
63 {
64   return Internal::Adaptor::GetImplementation(*this).GetArgs();
65 }
66
67 char* WidgetData::GetContent()
68 {
69   return Internal::Adaptor::GetImplementation(*this).GetContent();
70 }
71
72 Window WidgetData::GetWindow()
73 {
74   return Internal::Adaptor::GetImplementation(*this).GetWindow();
75 }
76
77 void WidgetData::SetArgs( bundle* args )
78 {
79   Internal::Adaptor::GetImplementation(*this).SetArgs(args);
80 }
81
82 void WidgetData::SetContent( char* content )
83 {
84   Internal::Adaptor::GetImplementation(*this).SetContent(content);
85 }
86
87 void WidgetData::SetWindow( Window window )
88 {
89   Internal::Adaptor::GetImplementation(*this).SetWindow(window);
90 }
91
92 WidgetData::WidgetData(Internal::Adaptor::WidgetData* widgetData)
93 : BaseHandle(widgetData)
94 {
95 }
96
97 } // namespace Dali