[4.0] Add Finalize api for imf-manager
[platform/core/uifw/dali-adaptor.git] / adaptors / devel-api / adaptor-framework / imf-manager.cpp
1 /*
2  * Copyright (c) 2015 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 <imf-manager.h>
20
21 // INTERNAL INCLUDES
22 #include <imf-manager-impl.h>
23 #include <adaptor-impl.h>
24
25 namespace Dali
26 {
27
28 ImfManager::ImfManager()
29 {
30 }
31
32 ImfManager::~ImfManager()
33 {
34 }
35
36 void ImfManager::Finalize()
37 {
38   Internal::Adaptor::ImfManager::GetImplementation(*this).Finalize();
39 }
40
41 ImfManager ImfManager::Get()
42 {
43   return Internal::Adaptor::ImfManager::Get();
44 }
45
46 void ImfManager::Activate()
47 {
48   Internal::Adaptor::ImfManager::GetImplementation(*this).Activate();
49 }
50
51 void ImfManager::Deactivate()
52 {
53   Internal::Adaptor::ImfManager::GetImplementation(*this).Deactivate();
54 }
55
56 bool ImfManager::RestoreAfterFocusLost() const
57 {
58   return Internal::Adaptor::ImfManager::GetImplementation(*this).RestoreAfterFocusLost();
59 }
60
61 void ImfManager::SetRestoreAfterFocusLost( bool toggle )
62 {
63   Internal::Adaptor::ImfManager::GetImplementation(*this).SetRestoreAfterFocusLost( toggle );
64 }
65
66 void ImfManager::Reset()
67 {
68   Internal::Adaptor::ImfManager::GetImplementation(*this).Reset();
69 }
70
71 void ImfManager::NotifyCursorPosition()
72 {
73   Internal::Adaptor::ImfManager::GetImplementation(*this).NotifyCursorPosition();
74 }
75
76 void ImfManager::SetCursorPosition( unsigned int SetCursorPosition )
77 {
78   Internal::Adaptor::ImfManager::GetImplementation(*this).SetCursorPosition( SetCursorPosition );
79 }
80
81 unsigned int ImfManager::GetCursorPosition() const
82 {
83   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetCursorPosition();
84 }
85
86 void ImfManager::SetSurroundingText( const std::string& text )
87 {
88   Internal::Adaptor::ImfManager::GetImplementation(*this).SetSurroundingText( text );
89 }
90
91 const std::string& ImfManager::GetSurroundingText() const
92 {
93   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetSurroundingText();
94 }
95
96 void ImfManager::NotifyTextInputMultiLine( bool multiLine )
97 {
98   Internal::Adaptor::ImfManager::GetImplementation(*this).NotifyTextInputMultiLine( multiLine );
99 }
100
101 ImfManager::TextDirection ImfManager::GetTextDirection()
102 {
103   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetTextDirection();
104 }
105
106 Rect<int> ImfManager::GetInputMethodArea()
107 {
108   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetInputMethodArea();
109 }
110
111 void ImfManager::ApplyOptions( const InputMethodOptions& options )
112 {
113   Internal::Adaptor::ImfManager::GetImplementation(*this).ApplyOptions( options );
114 }
115
116 void ImfManager::SetInputPanelData( const std::string& data )
117 {
118   Internal::Adaptor::ImfManager::GetImplementation(*this).SetInputPanelData( data );
119 }
120
121 void ImfManager::GetInputPanelData( std::string& data )
122 {
123   Internal::Adaptor::ImfManager::GetImplementation(*this).GetInputPanelData( data );
124 }
125
126 Dali::ImfManager::State ImfManager::GetInputPanelState()
127 {
128   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetInputPanelState();
129 }
130
131 void ImfManager::SetReturnKeyState( bool visible )
132 {
133   Internal::Adaptor::ImfManager::GetImplementation(*this).SetReturnKeyState( visible );
134 }
135
136 void ImfManager::AutoEnableInputPanel( bool enabled )
137 {
138   Internal::Adaptor::ImfManager::GetImplementation(*this).AutoEnableInputPanel( enabled );
139 }
140
141 void ImfManager::ShowInputPanel()
142 {
143   Internal::Adaptor::ImfManager::GetImplementation(*this).ShowInputPanel();
144 }
145
146 void ImfManager::HideInputPanel()
147 {
148   Internal::Adaptor::ImfManager::GetImplementation(*this).HideInputPanel();
149 }
150
151 Dali::ImfManager::KeyboardType ImfManager::GetKeyboardType()
152 {
153   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetKeyboardType();
154 }
155
156 std::string ImfManager::GetInputPanelLocale()
157 {
158   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetInputPanelLocale();
159 }
160
161 ImfManager::ImfManagerSignalType& ImfManager::ActivatedSignal()
162 {
163   return Internal::Adaptor::ImfManager::GetImplementation(*this).ActivatedSignal();
164 }
165
166 ImfManager::ImfEventSignalType& ImfManager::EventReceivedSignal()
167 {
168   return Internal::Adaptor::ImfManager::GetImplementation(*this).EventReceivedSignal();
169 }
170
171 ImfManager::StatusSignalType& ImfManager::StatusChangedSignal()
172 {
173   return Internal::Adaptor::ImfManager::GetImplementation(*this).StatusChangedSignal();
174 }
175
176 ImfManager::VoidSignalType& ImfManager::ResizedSignal()
177 {
178   return Internal::Adaptor::ImfManager::GetImplementation(*this).ResizedSignal();
179 }
180
181 ImfManager::VoidSignalType& ImfManager::LanguageChangedSignal()
182 {
183   return Internal::Adaptor::ImfManager::GetImplementation(*this).LanguageChangedSignal();
184 }
185
186 ImfManager::KeyboardTypeSignalType& ImfManager::KeyboardTypeChangedSignal()
187 {
188   return Internal::Adaptor::ImfManager::GetImplementation(*this).KeyboardTypeChangedSignal();
189 }
190
191 ImfManager::ImfManager(Internal::Adaptor::ImfManager *impl)
192   : BaseHandle(impl)
193 {
194 }
195
196 } // namespace Dali