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 FUiCtrlIEditTextFilter.h
\r
20 * @brief This is the header file for the %IEditTextFilter interface.
\r
22 * This header file contains the declarations of the %IEditTextFilter interface.
\r
25 #ifndef _FUI_CTRL_IEDIT_TEXT_FILTER_H_
\r
26 #define _FUI_CTRL_IEDIT_TEXT_FILTER_H_
\r
28 #include <FOspConfig.h>
\r
30 namespace Tizen {namespace Ui { namespace Controls
\r
34 * @interface IEditTextFilter
\r
35 * @brief This interface defines the text filter.
\r
39 * The %IEditTextFilter interface is the listener interface for handling texts, for example, from EditFields.
\r
40 * The class that processes a text event implements this interface, and the instance created with that class is registered with a
\r
41 * UI control, using the control's SetEditTextFilter() method.
\r
45 class _OSP_EXPORT_ IEditTextFilter
\r
49 * This polymorphic destructor should be overridden if required.
\r
50 * This way, the destructors of the derived classes are called
\r
51 * when the destructor of this interface is called.
\r
55 virtual ~IEditTextFilter(void) {}
\r
58 * Checks whether the text to be pasted from the %Clipboard needs to be replaced by other text.
\r
62 * @return @c true if the pasted text needs to be replaced, @n
\r
64 * @param[in] pastedText The pasted text
\r
65 * @param[out] replacedText The user-defined replacement text
\r
67 virtual bool ValidatePastedText(const Tizen::Base::String& pastedText, Tizen::Base::String& replacedText) = 0;
\r
71 // This method is for internal use only. Using this method can cause behavioral, security-related,
\r
72 // and consistency-related issues in the application.
\r
74 // This method is reserved and may change its name at any time without
\r
77 virtual void IEditTextFilter_Reserved1(void) {}
\r
80 // This method is for internal use only. Using this method can cause behavioral, security-related,
81 // and consistency-related issues in the application.
83 // This method is reserved and may change its name at any time without
86 virtual void IEditTextFilter_Reserved2(void) {}
\r
89 // This method is for internal use only. Using this method can cause behavioral, security-related,
90 // and consistency-related issues in the application.
92 // This method is reserved and may change its name at any time without
95 virtual void IEditTextFilter_Reserved3(void) {}
\r
98 // This method is for internal use only. Using this method can cause behavioral, security-related,
\r
99 // and consistency-related issues in the application.
\r
101 // This method is reserved and may change its name at any time without
\r
104 virtual void IEditTextFilter_Reserved4(void) {}
\r
107 // This method is for internal use only. Using this method can cause behavioral, security-related,
\r
108 // and consistency-related issues in the application.
\r
110 // This method is reserved and may change its name at any time without
\r
113 virtual void IEditTextFilter_Reserved5(void) {}
\r
114 }; // IEditTextFilter
\r
116 }}} // Tizen::Ui::Controls
\r
118 #endif // _FUI_CTRL_IEDIT_TEXT_FILTER_H_
\r