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