Tizen 2.1 base
[platform/framework/native/ime.git] / src / FUiIme_InputServiceBinder.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_InputServiceBinder.h\r
20  * @brief This is the header file for the %_InputServiceBinder class.\r
21  *\r
22  * This header file contains the declarations of the %_InputServiceBinder class.\r
23  */\r
24 \r
25 #ifndef _FUI_IME_INTERNAL_INPUT_SERVICE_BINDER_H_\r
26 #define _FUI_IME_INTERNAL_INPUT_SERVICE_BINDER_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 <FBaseDataType.h>\r
35 #include <FBaseObject.h>\r
36 \r
37 namespace Tizen { namespace Ui { namespace Ime {\r
38 \r
39 class _ScimDataConverter;\r
40 \r
41 /**\r
42  * ID of a binding with the input service\r
43  *\r
44  * @since 2.0\r
45  */\r
46 typedef int BindingId;\r
47 \r
48 /**\r
49 * @class _InputServiceBinder\r
50 * @brief This class is a concrete class of the %_InputServiceBinder class.\r
51 * @since 2.0\r
52 *\r
53 */\r
54 class _InputServiceBinder\r
55         : public Tizen::Base::Object\r
56 {\r
57 public:\r
58         virtual ~_InputServiceBinder(void);\r
59 \r
60         static _InputServiceBinder* GetInstance(void);\r
61 \r
62         scim::HelperAgent* GetHelperAgent(void) const;\r
63 \r
64         BindingId Bind(void);\r
65         result Unbind(void);\r
66         bool IsBound(void) const;\r
67         BindingId GetBindingId(void) const;\r
68 \r
69 private:\r
70         _InputServiceBinder(void);\r
71 \r
72         _InputServiceBinder(const _InputServiceBinder& rhs);\r
73         _InputServiceBinder& operator=(const _InputServiceBinder& rhs);\r
74 \r
75         result Construct(void);\r
76 \r
77 private:\r
78         static _InputServiceBinder* __pInputServiceBinder;\r
79 \r
80         scim::HelperAgent* __pHelperAgent;\r
81         _ScimDataConverter* __pScimDataConverter;\r
82 };\r
83 \r
84 }}} // Tizen::Ui::Ime\r
85 \r
86 #endif // _FUI_IME_INTERNAL_INPUT_SERVICE_BINDER_H_\r