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.
19 * @file FUiITextBlockEventListener.h
20 * @brief This is the header file for the %ITextBlockEventListener interface.
22 * This header file contains the declarations of the %ITextBlockEventListener interface.
24 #ifndef _FUI_ITEXT_BLOCK_EVENT_LISTENER_H_
25 #define _FUI_ITEXT_BLOCK_EVENT_LISTENER_H_
28 #include <FBaseRtIEventListener.h>
30 // Forward declaration
31 namespace Tizen { namespace Ui
36 // Namespace declaration
37 namespace Tizen { namespace Ui
40 * @interface ITextBlockEventListener
41 * @brief This interface implements the listener for the text block events.
45 * The %ITextBlockEventListener interface is the listener interface for receiving text block selection events, for example, from EditFields.
46 * The class that processes a text block selection event implements this interface, and the instance created with that class is
47 * registered with a UI control, using the control's AddTextBlockEventListener() method. When the text block selection event
48 * occurs, the OnTextBlockSelected() method of that instance is invoked.
50 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/ui/implementing_editfield_editarea.htm">EditArea and EditField</a>.
53 class _OSP_EXPORT_ ITextBlockEventListener
54 : public Tizen::Base::Runtime::IEventListener
59 * 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.
63 virtual ~ITextBlockEventListener(void) {}
69 * Called when a text block is selected.
73 * @param[in] source The source of the event
74 * @param[in] start The start index of the selected text block
75 * @param[in] end The end index of the selected text block
77 virtual void OnTextBlockSelected(Tizen::Ui::Control& source, int start, int end) = 0;
83 // This method is for internal use only. Using this method can cause behavioral,
84 // security-related, and consistency-related issues in the application.
86 // This method is reserved and may change its name at any time without prior notice.
88 virtual void ITextBlockEventListener_Reserved1(void) { }
91 // This method is for internal use only. Using this method can cause behavioral,
92 // security-related, and consistency-related issues in the application.
94 // This method is reserved and may change its name at any time without prior notice.
96 virtual void ITextBlockEventListener_Reserved2(void) { }
99 // This method is for internal use only. Using this method can cause behavioral,
100 // security-related, and consistency-related issues in the application.
102 // This method is reserved and may change its name at any time without prior notice.
104 virtual void ITextBlockEventListener_Reserved3(void) { }
107 // This method is for internal use only. Using this method can cause behavioral,
108 // security-related, and consistency-related issues in the application.
110 // This method is reserved and may change its name at any time without prior notice.
112 virtual void ITextBlockEventListener_Reserved4(void) { }
115 // This method is for internal use only. Using this method can cause behavioral,
116 // security-related, and consistency-related issues in the application.
118 // This method is reserved and may change its name at any time without prior notice.
120 virtual void ITextBlockEventListener_Reserved5(void) { }
121 }; // ITextBlockEventListener
125 #endif // _FUI_ITEXT_BLOCK_EVENT_LISTENER_H_