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_InputMethodImpl.h
\r
20 * @brief This is the header file for the %_InputMethodImpl class.
\r
22 * This header file contains the declarations of the %_InputMethodImpl class.
\r
25 #ifndef _FUI_IME_INTERNAL_INPUT_METHOD_IMPL_H_
\r
26 #define _FUI_IME_INTERNAL_INPUT_METHOD_IMPL_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
39 #include <FBaseString.h>
\r
40 #include <FGrpRectangle.h>
\r
41 #include <FUiImeIInputMethodListener.h>
\r
42 #include <FUiImeIInputMethodProvider.h>
\r
43 #include <FUiImeInputMethod.h>
\r
44 #include <FUiKeyTypes.h>
\r
46 #include "FUiIme_InputServiceBinder.h"
\r
48 namespace Tizen { namespace Ui { namespace Ime {
\r
50 class _EcoreEventHandler;
\r
51 class _EcoreFdHandler;
\r
54 * @class _InputMethodImpl
\r
55 * @brief This class is a concrete class of the %_InputMethodImpl class.
\r
59 class _InputMethodImpl
\r
60 : public Tizen::Base::Object
\r
63 static _InputMethodImpl* GetInstance(InputMethod& inputMethod);
\r
65 void SetInputMethodProvider(IInputMethodProvider* pProvider);
\r
66 void SetInputMethodListener(IInputMethodListener* pListener);
\r
68 result DeleteText(int cursorOffset, int length);
\r
69 result NotifyInputPanelState(Tizen::Ui::InputPanelShowState state);
\r
70 result NotifyLanguageChanged(void);
\r
71 result RequestSurroundingText(int lengthBeforeCursor, int lengthAfterCursor);
\r
72 result SendCompositeText(const Tizen::Base::String& text);
\r
73 result SendKeyEvent(Tizen::Ui::KeyCode code, Tizen::Ui::KeyState state);
\r
74 result SendText(const Tizen::Base::String& text);
\r
77 _InputMethodImpl(void);
\r
78 virtual ~_InputMethodImpl(void);
\r
80 _InputMethodImpl(const _InputMethodImpl& rhs);
\r
81 _InputMethodImpl& operator=(const _InputMethodImpl& rhs);
\r
83 result Construct(void);
\r
85 result SetEcoreEvasAttribute(void);
\r
86 void SetInputServiceSignalCallback(void);
\r
88 void HideInputPanel(void);
\r
89 void ShowInputPanel(void);
\r
92 friend class InputMethod;
\r
94 scim::HelperAgent* __pHelperAgent;
\r
96 _EcoreEventHandler* __pEcoreEventHandler;
\r
97 _EcoreFdHandler* __pEcoreFdHandler;
\r
98 _InputServiceBinder* __pInputServiceBinder;
\r
101 }}} // Tizen::Ui::Ime
\r
103 #endif // _FUI_IME_INTERNAL_INPUT_METHOD_IMPL_H_
\r