Tizen 2.1 base
[platform/framework/native/ime.git] / src / FUiIme_InputServiceSignalListener.h
1 //\r
2 // Open Service Platform\r
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.\r
4 //\r
5 // Licensed under the Apache License, Version 2.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
8 //\r
9 //     http://www.apache.org/licenses/LICENSE-2.0\r
10 //\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
16 //\r
17 \r
18 /**\r
19  * @file FUiIme_InputServiceSignalListener.h\r
20  * @brief This is the header file for the %_InputServiceSignalListener class.\r
21  *\r
22  * This header file contains the declarations of the %_InputServiceSignalListener class.\r
23  */\r
24 \r
25 #ifndef _FUI_IME_INPUT_SERVICE_SIGNAL_LISTENER_H_\r
26 #define _FUI_IME_INPUT_SERVICE_SIGNAL_LISTENER_H_\r
27 \r
28 #define Uses_SCIM_HELPER\r
29 #define Uses_SCIM_TYPES\r
30 #undef null\r
31 #include <scim.h>\r
32 #define null 0\r
33 \r
34 #include <FBaseObject.h>\r
35 #include <FUiImeIInputMethodListener.h>\r
36 #include <FUiImeIInputMethodProvider.h>\r
37 \r
38 namespace Tizen { namespace Ui { namespace Ime {\r
39 \r
40 /**\r
41 * @class _InputServiceSignalListener\r
42 * @brief This class is a concrete class of the %_InputServiceSignalListener class.\r
43 * @since 2.0\r
44 *\r
45 */\r
46 class _InputServiceSignalListener\r
47         : public Tizen::Base::Object\r
48 {\r
49 public:\r
50         _InputServiceSignalListener();\r
51         virtual ~_InputServiceSignalListener();\r
52 \r
53         void SetInputMethodProvider(IInputMethodProvider* pProvider);\r
54         void SetInputMethodListener(IInputMethodListener* pListener);\r
55 \r
56         static void GetEnterKeyAction(const scim::HelperAgent* pHelperAgent, scim::uint32& action);\r
57         static void GetInputPanelBounds(const scim::HelperAgent* pHelperAgent, scim::rectinfo& bounds);\r
58         static void GetInputPanelStyle(const scim::HelperAgent* pHelperAgent, scim::uint32& style);\r
59 \r
60         static void SetCapsModeEnabled(const scim::HelperAgent* pHelperAgent, scim::uint32& mode);\r
61         static void SetEnterKeyAction(const scim::HelperAgent* pHelperAgent, scim::uint32& action);\r
62         static void SetEnterKeyActionEnabled(const scim::HelperAgent* pHelperAgent, scim::uint32& disable);\r
63         static void SetInputPanelStyle(const scim::HelperAgent* pHelperAgent, scim::uint32& style);\r
64         static void SetLanguage(const scim::HelperAgent* pHelperAgent, scim::uint32& language);\r
65 \r
66         static void HideInputPanel(const scim::HelperAgent* pHelperAgent, int inputContext, const scim::String& uuid);\r
67         static void IsEnterKeyActionEnabled(const scim::HelperAgent* pHelperAgent, scim::uint32& enable);\r
68         static void ShowInputPanel(const scim::HelperAgent* pHelperAgent, int inputContext, char* pBuffer, size_t& length);\r
69 \r
70         static void OnCursorPositionChanged(const scim::HelperAgent* pHelperAgent, int inputContext, const scim::String& uuid,\r
71                                                                                         int position);\r
72         static void OnSurroundingTextReceived(const scim::HelperAgent* pHelperAgent, int inputContext,\r
73                                                                                                 const scim::String& text, int cursorPosition);\r
74         static void OnTerminate(const scim::HelperAgent* pHelperAgent, int inputContext, const scim::String& uuid);\r
75 \r
76 private:\r
77         _InputServiceSignalListener(const _InputServiceSignalListener& rhs);\r
78         _InputServiceSignalListener& operator=(const _InputServiceSignalListener& rhs);\r
79 \r
80 private:\r
81         static IInputMethodProvider* __pIInputMethodProvider;\r
82         static IInputMethodListener* __pIInputMethodListener;\r
83 };\r
84 \r
85 }}} // Tizen::Ui::Ime\r
86 \r
87 #endif // _FUI_IME_INPUT_SERVICE_SIGNAL_LISTENER_H_\r