2 // Open Service Platform
\r
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
\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
9 // http://www.apache.org/licenses/LICENSE-2.0
\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
19 * @file FUiIme_EcoreFdHander.h
\r
20 * @brief This is the header file for the %_EcoreFdHander class.
\r
22 * This header file contains the declarations of the %_EcoreFdHander class.
\r
25 #ifndef _FUI_IME_INTERNAL_ECORE_FD_HANDLER_H_
\r
26 #define _FUI_IME_INTERNAL_ECORE_FD_HANDLER_H_
\r
28 #include <Ecore.h> // Ecore_Fd_Handler
\r
29 #include <Eina.h> // Eina_Bool
\r
31 #define Uses_SCIM_HELPER
\r
32 #define Uses_SCIM_TYPES
\r
37 #include <FBaseDataType.h>
\r
38 #include <FBaseObject.h>
\r
40 namespace Tizen { namespace Ui { namespace Ime {
\r
43 * @class _EcoreFdHander
\r
44 * @brief This class is a concrete class of the %_EcoreFdHander class.
\r
48 class _EcoreFdHandler
\r
49 : public Tizen::Base::Object
\r
52 virtual ~_EcoreFdHandler(void);
\r
54 static _EcoreFdHandler* GetInstance(int fd, scim::HelperAgent& helperAgent);
\r
56 result Activate(void);
\r
57 result Deactivate(void);
\r
62 _EcoreFdHandler(const _EcoreFdHandler& rhs);
\r
63 _EcoreFdHandler& operator=(const _EcoreFdHandler& rhs);
\r
65 result Construct(int fd, scim::HelperAgent& helperAgent);
\r
67 static Eina_Bool FdHandler(void *data, Ecore_Fd_Handler *fdHandler);
\r
69 bool HasPendingEvent(void) const;
\r
70 result ProcessEvent(void);
\r
73 static _EcoreFdHandler* __pEcoreFdHandler;
\r
76 scim::HelperAgent* __pHelperAgent;
\r
78 Ecore_Fd_Handler* __pFdHandler;
\r
81 }}} // Tizen::Ui::Ime
\r
83 #endif // _FUI_IME_INTERNAL_ECORE_FD_HANDLER_H_
\r