9bc6d2585f3aaf3a822b005baf70c240d60b4317
[framework/osp/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 <FUiImeIInputMethodListener.h>\r
35 #include <FUiImeIInputMethodProvider.h>\r
36 \r
37 namespace Tizen { namespace Ui { namespace Ime {\r
38 \r
39 /**\r
40 * @class _InputServiceSignalListener\r
41 * @brief This class is a concrete class of the %_InputServiceSignalListener class.\r
42 * @since 2.1\r
43 *\r
44 */\r
45 class _InputServiceSignalListener\r
46 {\r
47 public:\r
48         static void SetInputMethodProvider(IInputMethodProvider* pProvider);\r
49         static void SetInputMethodListener(IInputMethodListener* pListener);\r
50 \r
51         static void GetEnterKeyAction(const scim::HelperAgent* pHelperAgent, scim::uint32& action);\r
52         static void GetInputPanelBounds(const scim::HelperAgent* pHelperAgent, scim::rectinfo& bounds);\r
53         static void GetInputPanelStyle(const scim::HelperAgent* pHelperAgent, scim::uint32& style);\r
54         static void GetLanguage(const scim::HelperAgent* pHelperAgent, int inputContext, char** pLocale);\r
55 \r
56         static void SetCapsModeEnabled(const scim::HelperAgent* pHelperAgent, scim::uint32& mode);\r
57         static void SetEnterKeyAction(const scim::HelperAgent* pHelperAgent, scim::uint32& action);\r
58         static void SetEnterKeyActionEnabled(const scim::HelperAgent* pHelperAgent, scim::uint32& disable);\r
59         static void SetInputPanelStyle(const scim::HelperAgent* pHelperAgent, scim::uint32& style);\r
60         static void SetLanguage(const scim::HelperAgent* pHelperAgent, scim::uint32& language);\r
61 \r
62         static void HideInputPanel(const scim::HelperAgent* pHelperAgent, int inputContext, const scim::String& uuid);\r
63         static void IsEnterKeyActionEnabled(const scim::HelperAgent* pHelperAgent, scim::uint32& enable);\r
64         static void ShowInputPanel(const scim::HelperAgent* pHelperAgent, int inputContext, char* pBuffer, size_t& length);\r
65 \r
66         static void OnCursorPositionChanged(const scim::HelperAgent* pHelperAgent, int inputContext, const scim::String& uuid,\r
67                                                                                         int position);\r
68         static void OnOpaqueCommandReceived(const scim::HelperAgent* pHelperAgent, char* pBuffer, size_t& length);\r
69         static void OnSurroundingTextReceived(const scim::HelperAgent* pHelperAgent, int inputContext,\r
70                                                                                                 const scim::String& text, int cursorPosition);\r
71         static void OnTerminate(const scim::HelperAgent* pHelperAgent, int inputContext, const scim::String& uuid);\r
72 \r
73 private:\r
74         _InputServiceSignalListener();\r
75         ~_InputServiceSignalListener();\r
76 \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