2 // Open Service Platform
\r
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
\r
5 // Licensed under the Flora License, Version 1.0 (the License);
\r
6 // you may not use this file except in compliance with the License.
\r
7 // You may obtain a copy of the License at
\r
9 // http://floralicense.org/license/
\r
11 // Unless required by applicable law or agreed to in writing, software
\r
12 // distributed under the License is distributed on an AS IS BASIS,
\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 // See the License for the specific language governing permissions and
\r
15 // limitations under the License.
\r
19 * @file FUiIInputConnectionEventListenerF.h
\r
20 * @brief This is the header file for the %IInputConnectionEventListenerF class.
\r
22 * This header file contains the declarations of the %IInputConnectionEventListenerF class.
\r
27 #ifndef _FUI_IINPUT_CONNECTION_EVENT_LISTENER_F_H_
\r
28 #define _FUI_IINPUT_CONNECTION_EVENT_LISTENER_F_H_
\r
30 #include <FBaseRtIEventListener.h>
\r
31 #include <FLclLocale.h>
\r
32 #include <FUiInputConnectionTypes.h>
\r
34 namespace Tizen { namespace Base {
\r
38 namespace Tizen { namespace Graphics {
\r
39 class FloatRectangle;
\r
40 }} // Tizen::Graphics
\r
43 namespace Tizen { namespace Ui {
\r
45 class InputConnection;
\r
48 * @class IInputConnectionEventListenerF
\r
49 * @brief This is the header file for the %IInputConnectionEventListenerF class.
\r
50 * This header file contains the declarations of the %IInputConnectionEventListenerF class.
\r
51 * It's possible to not work the callback depending on the current InputMethod.
\r
54 * The %IInputConnectionEventListener interface defines methods for processing between the InputConnection and the input method.
\r
56 class _OSP_EXPORT_ IInputConnectionEventListenerF
\r
57 : virtual public Tizen::Base::Runtime::IEventListener
\r
61 * This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes are called when the destructor of this interface is called.
\r
65 virtual ~IInputConnectionEventListenerF(void) {}
\r
68 * Notifies when the show state of the InputPanel is changed.
\r
71 * @param[in] source The source of the event
\r
72 * @param[in] showState The state
\r
74 virtual void OnInputConnectionPanelShowStateChanged(Tizen::Ui::InputConnection& source, Tizen::Ui::InputPanelShowState showState) = 0;
\r
77 * Notifies when the language of the InputPanel is changed.
\r
80 * @param[in] source The source of the event
\r
81 * @param[in] language The language code
\r
83 virtual void OnInputConnectionPanelLanguageChanged(Tizen::Ui::InputConnection& source, Tizen::Locales::LanguageCode language) = 0;
\r
86 * Notifies when the size of the InputPanel is changed.
\r
89 * @param[in] source The source of the event
\r
90 * @param[in] bounds The size
\r
92 virtual void OnInputConnectionPanelBoundsChanged(Tizen::Ui::InputConnection& source, const Tizen::Graphics::FloatRectangle& bounds) = 0;
\r
95 * Notifies when the show state of the Text-Prediction is changed.
\r
98 * @param[in] source The source of the event
\r
99 * @param[in] isShown The state
\r
101 virtual void OnInputConnectionTextPredictionShowStateChanged(Tizen::Ui::InputConnection& source, bool isShown) = 0;
\r
104 * Notifies when the size of the Text-Prediction is changed.
\r
107 * @param[in] source The source of the event
\r
108 * @param[in] bounds The size
\r
110 virtual void OnInputConnectionTextPredictionBoundsChanged(Tizen::Ui::InputConnection& source, const Tizen::Graphics::FloatRectangle& bounds) = 0;
\r
113 * Notifies when the key of the InputPanel is selected.
\r
116 * @param[in] source The source of the event
\r
117 * @param[in] committedText The committed text.
\r
119 virtual void OnInputConnectionTextCommitted(Tizen::Ui::InputConnection& source, const Tizen::Base::String& committedText) = 0;
\r
122 * Notifies when the key of the InputPanel is selected during the composing.
\r
125 * @param[in] source The source of the event
\r
126 * @param[in] composingText The composing text.
\r
127 * @param[in] cursorPosition the current cursor position.
\r
129 virtual void OnInputConnectionComposingTextChanged(Tizen::Ui::InputConnection& source, const Tizen::Base::String& composingText, int cursorPosition) = 0;
\r
133 // This method is for internal use only. Using this method can cause behavioral, security-related,
\r
134 // and consistency-related issues in the application.
\r
136 // This method is reserved and may change its name at any time without
\r
139 virtual void IInputConnectionEventListenerF_Reserved1(void) {}
\r
142 // This method is for internal use only. Using this method can cause behavioral, security-related,
\r
143 // and consistency-related issues in the application.
\r
145 // This method is reserved and may change its name at any time without
\r
148 virtual void IInputConnectionEventListenerF_Reserved2(void) {}
\r
151 // This method is for internal use only. Using this method can cause behavioral, security-related,
\r
152 // and consistency-related issues in the application.
\r
154 // This method is reserved and may change its name at any time without
\r
157 virtual void IInputConnectionEventListenerF_Reserved3(void) {}
\r
160 // This method is for internal use only. Using this method can cause behavioral, security-related,
\r
161 // and consistency-related issues in the application.
\r
163 // This method is reserved and may change its name at any time without
\r
166 virtual void IInputConnectionEventListenerF_Reserved4(void) {}
\r
169 // This method is for internal use only. Using this method can cause behavioral, security-related,
\r
170 // and consistency-related issues in the application.
\r
172 // This method is reserved and may change its name at any time without
\r
175 virtual void IInputConnectionEventListenerF_Reserved5(void) {}
\r
176 }; // IInputConnectionEventListenerF
\r
179 #endif // _FUI_IINPUT_CONNECTION_EVENT_LISTENER_F_H_
\r