2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FUiILanguageEventListener.h
19 * @brief This is the header file for the %ILanguageEventListener interface.
21 * This header file contains the declarations of the %ILanguageEventListener interface.
24 #ifndef _FUI_ILANGUAGE_EVENT_LISTENER_H_
25 #define _FUI_ILANGUAGE_EVENT_LISTENER_H_
27 #include <FBaseRtIEventListener.h>
28 #include <FLclLocale.h>
30 namespace Tizen {namespace Ui
36 * @interface ILanguageEventListener
37 * @brief This interface implements the listener for the language event.
41 * The %ILanguageEventListener interface receives language events. The class that processes a language event
42 * implements this interface, and the instance created with that class is registered with a UI control, using the control's
43 * AddLanguageEventListener() method.
45 * When the current input language is changed (for example, when the user toggles the input language from the virtual
46 * keypad), the listener's OnLanguageChanged() method is invoked.
49 class _OSP_EXPORT_ ILanguageEventListener
50 : public Tizen::Base::Runtime::IEventListener
57 * This is the default constructor for this class.
61 ILanguageEventListener(void) {};
64 * This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes are called when the destructor of this interface is called.
68 virtual ~ILanguageEventListener(void) {}
71 * Called when the input language is changed.
75 * @param[in] source The source of the event
76 * @param[in] oldLanguage The previous input language
77 * @param[in] newLanguage The current input language
79 virtual void OnLanguageChanged(const Tizen::Ui::Control& source, Tizen::Locales::LanguageCode oldLanguage, Tizen::Locales::LanguageCode newLanguage) = 0;
84 // This method is for internal use only. Using this method can cause behavioral,
85 // security-related, and consistency-related issues in the application.
87 // This method is reserved and may change its name at any time without prior notice.
89 virtual void ILanguageEventListener_Reserved1(void) { }
92 // This method is for internal use only. Using this method can cause behavioral,
93 // security-related, and consistency-related issues in the application.
95 // This method is reserved and may change its name at any time without prior notice.
97 virtual void ILanguageEventListener_Reserved2(void) { }
100 // This method is for internal use only. Using this method can cause behavioral,
101 // security-related, and consistency-related issues in the application.
103 // This method is reserved and may change its name at any time without prior notice.
105 virtual void ILanguageEventListener_Reserved3(void) { }
106 }; // ILanguageEventListener