merge with master
[framework/osp/ime.git] / src / FUiIme_EcoreEventHandler.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_EcoreEventHandler.h\r
20  * @brief This is the header file for the %_EcoreEventHandler class.\r
21  *\r
22  * This header file contains the declarations of the %_EcoreEventHandler class.\r
23  */\r
24 \r
25 #ifndef _FUI_IME_INTERNAL_ECORE_EVENT_HANDLER_H_\r
26 #define _FUI_IME_INTERNAL_ECORE_EVENT_HANDLER_H_\r
27 \r
28 #include <Ecore.h>\r
29 #include <Eina.h>\r
30 \r
31 #include <FBaseDataType.h>\r
32 #include <FBaseObject.h>\r
33 \r
34 namespace Tizen { namespace Ui { namespace Ime {\r
35 \r
36 /**\r
37 * @class _EcoreEventHandler\r
38 * @brief This class is a concrete class of the %_EcoreEventHandler class.\r
39 * @since 2.1\r
40 *\r
41 */\r
42 class _EcoreEventHandler\r
43         : public Tizen::Base::Object\r
44 {\r
45 public:\r
46         static _EcoreEventHandler* GetInstance(void);\r
47 \r
48         result Activate(void);\r
49         result Deactivate(void);\r
50 \r
51 private:\r
52         _EcoreEventHandler();\r
53         virtual ~_EcoreEventHandler(void);\r
54 \r
55         _EcoreEventHandler(const _EcoreEventHandler& rhs);\r
56         _EcoreEventHandler& operator=(const _EcoreEventHandler& rhs);\r
57 \r
58         static Eina_Bool ClientMessageCallback(void* pData, int type, void* pEvent);\r
59 \r
60 private:\r
61         static _EcoreEventHandler* __pEcoreEventHandler;\r
62 \r
63         Ecore_Event_Handler* __pClientMessageHandler;\r
64 };\r
65 \r
66 }}} // Tizen::Ui::Ime\r
67 \r
68 #endif // _FUI_IME_INTERNAL_ECORE_EVENT_HANDLER_H_\r