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 FUiCtrlITokenFilter.h
19 * @brief This is the header file for the %ITokenFilter interface.
21 * This header file contains the declarations of the %ITokenFilter interface.
23 #ifndef _FUI_CTRL_ITOKEN_FILTER_H_
24 #define _FUI_CTRL_ITOKEN_FILTER_H_
27 #include <FBaseRtIEventListener.h>
29 // namespace declaration
30 namespace Tizen { namespace Ui { namespace Controls
33 * @interface ITokenFilter
34 * @brief This interface defines the token filter.
38 * The %ITokenFilter interface is the listener interface for replacing tokenized input in the ExpandableEditArea.
40 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/ui/implementing_exp_editarea.htm">ExpandableEditArea</a>.
43 class _OSP_EXPORT_ ITokenFilter
48 * This is the destructor for this class.
51 virtual ~ITokenFilter(void) {}
56 * Checks whether the text tokenized by the ExpandableEditArea instance must be replaced.
60 * @return @c true if the text of the current token needs to be replaced, @n
62 * @param[in] token The text of the current token
63 * @param[out] replacement The user-defined replacement text
65 virtual bool ReplaceToken(const Tizen::Base::String& token, Tizen::Base::String& replacement) = 0;
71 // This method is for internal use only. Using this method can cause behavioral, security-related,
72 // and consistency-related issues in the application.
74 // This method is reserved and may change its name at any time without
79 virtual void ITokenFilter_Reserved1(void) { }
82 // This method is for internal use only. Using this method can cause behavioral, security-related,
83 // and consistency-related issues in the application.
85 // This method is reserved and may change its name at any time without
90 virtual void ITokenFilter_Reserved2(void) { }
93 // This method is for internal use only. Using this method can cause behavioral, security-related,
94 // and consistency-related issues in the application.
96 // This method is reserved and may change its name at any time without
101 virtual void ITokenFilter_Reserved3(void) { }
104 }}} //Tizen::Ui::Controls
105 #endif //_FUI_CTRL_ITOKEN_FILTER_H_