Tizen 2.1 base
[platform/framework/native/ime.git] / src / FUiIme_InputMethodManagerImpl.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_InputMethodManagerImpl.h\r
20  * @brief This is the header file for the %_InputMethodManagerImpl class.\r
21  *\r
22  * This header file contains the declarations of the %_InputMethodManagerImpl class.\r
23  */\r
24 \r
25 #ifndef _FUI_IME_INTERNAL_INPUT_METHOD_MANAGER_IMPL_H_\r
26 #define _FUI_IME_INTERNAL_INPUT_METHOD_MANAGER_IMPL_H_\r
27 \r
28 #include <libxml/tree.h>\r
29 #include <pkgmgr-info.h>\r
30 \r
31 #include <FAppTypes.h>\r
32 #include <FBaseColIList.h>\r
33 #include <FBaseDataType.h>\r
34 #include <FBaseObject.h>\r
35 #include <FUiImeInputMethodInfo.h>\r
36 #include <FUiImeInputMethodManager.h>\r
37 \r
38 namespace Tizen { namespace Base { namespace Collection {\r
39 \r
40 class ArrayList;\r
41 \r
42 }}} // Tizen::Base::Collection\r
43 \r
44 namespace Tizen { namespace Ui { namespace Ime {\r
45 \r
46 /**\r
47 * @class _InputMethodManagerImpl\r
48 * @brief This class is a concrete class of the %_InputMethodManagerImpl class.\r
49 * @since 2.0\r
50 *\r
51 */\r
52 class _InputMethodManagerImpl\r
53         : public Tizen::Base::Object\r
54 {\r
55 public:\r
56         virtual ~_InputMethodManagerImpl(void);\r
57 \r
58         static _InputMethodManagerImpl* GetInstance(InputMethodManager& inputMethodManager);\r
59 \r
60         static InputMethodInfo* GetInputMethodInfoN(const char* pAppRootPath);\r
61         static result ParseInputMethodInfo(const xmlNodePtr pXmlRootElement, InputMethodInfo* pInfo);\r
62         static int PackageManagerAppIdHandler(pkgmgrinfo_appinfo_h handle, void* pUserData);\r
63 \r
64         InputMethodInfo* GetCurrentInputMethodInfoN(void) const;\r
65         Tizen::Base::Collection::IList* GetInputMethodAppIdList(void) const;\r
66         Tizen::Base::Collection::IList* GetInputMethodInfoListN(void) const;\r
67 \r
68         result SetInputMethod(Tizen::App::AppId id);\r
69 \r
70 private:\r
71         _InputMethodManagerImpl(void);\r
72 \r
73         _InputMethodManagerImpl(const _InputMethodManagerImpl& rhs);\r
74         _InputMethodManagerImpl& operator=(const _InputMethodManagerImpl& rhs);\r
75 \r
76         result Construct(void);\r
77 \r
78         Tizen::Base::Collection::IList* GetInputMethodLanguageListN(const char* pLanguageList) const;\r
79         result RequestInputMethodAppIdList(void) const;\r
80 \r
81 private:\r
82         static _InputMethodManagerImpl* __pInputMethodManagerImpl;\r
83 \r
84         InputMethodManager* __pInputMethodManager;\r
85         Tizen::Base::Collection::ArrayList* __pInputMethodAppIdList;\r
86 };\r
87 \r
88 }}} // Tizen::Ui::Ime\r
89 \r
90 #endif // _FUI_IME_INTERNAL_INPUT_METHOD_MANAGER_IMPL_H_\r