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_ScimDataConverter.h
\r
20 * @brief This is the header file for the %_ScimDataConverter class.
\r
22 * This header file contains the declarations of the %_ScimDataConverter class.
\r
25 #ifndef _FUI_IME_INTERNAL_SCIM_DATA_CONVERTER_H_
\r
26 #define _FUI_IME_INTERNAL_SCIM_DATA_CONVERTER_H_
\r
28 #include <string> // basic_string in scim_types.h
\r
30 #include <isf_control.h>
\r
31 #define Uses_SCIM_EVENT
\r
32 #define Uses_SCIM_TYPES
\r
37 #include <FBaseDataType.h>
\r
38 #include <FBaseString.h>
\r
39 #include <FGrpRectangle.h>
\r
40 #include <FGrpFloatRectangle.h>
\r
41 #include <FLclLocale.h>
\r
42 #include <FUiIKeyEventListener.h>
\r
43 #include <FUiImeTypes.h>
\r
45 namespace Tizen { namespace Ui { namespace Ime {
\r
48 * @class _ScimDataConverter
\r
49 * @brief This class is a concrete class of the %_ScimDataConverter class.
\r
53 class _ScimDataConverter
\r
56 static Tizen::Ui::Ime::InputMethodType ConvertType(ISE_TYPE_T type);
\r
58 static result ConvertKey(Tizen::Ui::KeyCode keyCode, Tizen::Ui::KeyState keyState, scim::KeyEvent& keyEvent);
\r
60 static char* ConvertLanguageN(const Tizen::Locales::Locale& language);
\r
62 static void ConvertRectangle(const Tizen::Graphics::Rectangle& src, scim::rectinfo& dest);
\r
63 static void ConvertRectangle(const Tizen::Graphics::FloatRectangle& src, scim::rectinfo& dest);
\r
65 static result ConvertString(const Tizen::Base::String& src, scim::String& dest);
\r
66 static result ConvertString(const Tizen::Base::String& src, scim::WideString& dest);
\r
67 static result ConvertString(const scim::String& src, Tizen::Base::String& dest);
\r
70 _ScimDataConverter();
\r
71 ~_ScimDataConverter();
\r
73 _ScimDataConverter(const _ScimDataConverter&);
\r
74 _ScimDataConverter& operator=(const _ScimDataConverter&);
\r
77 }}} // Tizen::Ui::Ime
\r
79 #endif//_FUI_IME_INTERNAL_SCIM_DATA_CONVERTER_H_
\r