2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0/
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 FUiCtrlITokenFilter.h
20 * @brief This is the header file for the %ITokenFilter interface.
22 * This header file contains the declarations of the %ITokenFilter interface.
24 #ifndef _FUI_CTRL_ITOKEN_FILTER_H_
25 #define _FUI_CTRL_ITOKEN_FILTER_H_
28 #include <FBaseRtIEventListener.h>
30 // namespace declaration
31 namespace Tizen { namespace Ui { namespace Controls
34 * @interface ITokenFilter
35 * @brief This interface defines the token filter.
39 * The %ITokenFilter interface is the listener interface for replacing tokenized input in the ExpandableEditArea.
41 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/ui/implementing_exp_editarea.htm">ExpandableEditArea</a>.
44 class _OSP_EXPORT_ ITokenFilter
49 * This is the destructor for this class.
52 virtual ~ITokenFilter(void) {}
57 * Checks whether the text tokenized by the ExpandableEditArea instance must be replaced.
61 * @return @c true if the text of the current token needs to be replaced, @n
63 * @param[in] token The text of the current token
64 * @param[out] replacement The user-defined replacement text
66 virtual bool ReplaceToken(const Tizen::Base::String& token, Tizen::Base::String& replacement) = 0;
72 // This method is for internal use only. Using this method can cause behavioral, security-related,
73 // and consistency-related issues in the application.
75 // This method is reserved and may change its name at any time without
80 virtual void ITokenFilter_Reserved1(void) { }
83 // This method is for internal use only. Using this method can cause behavioral, security-related,
84 // and consistency-related issues in the application.
86 // This method is reserved and may change its name at any time without
91 virtual void ITokenFilter_Reserved2(void) { }
94 // This method is for internal use only. Using this method can cause behavioral, security-related,
95 // and consistency-related issues in the application.
97 // This method is reserved and may change its name at any time without
102 virtual void ITokenFilter_Reserved3(void) { }
105 }}} //Tizen::Ui::Controls
106 #endif //_FUI_CTRL_ITOKEN_FILTER_H_