2 // Open Service Platform
3 // Copyright (c) 2012 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 FWebCtrlITextSearchListener.h
20 * @brief This is the header file for the %ITextSearchListener interface.
22 * This header file contains the declarations of the %ITextSearchListener interface.
24 #ifndef _FWEB_CTRL_ITEXT_SEARCH_LISTENER_H_
25 #define _FWEB_CTRL_ITEXT_SEARCH_LISTENER_H_
27 #include <FBaseRtIEventListener.h>
29 namespace Tizen { namespace Web { namespace Controls
33 * @interface ITextSearchListener
34 * @brief This interface is for receiving the result of the search operation made by asynchronous methods.
38 * The %ITextSearchListener interface receives the result of the search operation made by asynchronous methods.
40 class _OSP_EXPORT_ ITextSearchListener
41 : public virtual Tizen::Base::Runtime::IEventListener
48 * 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.
52 virtual ~ITextSearchListener(void) {}
55 * Called when the text is found.
59 * @param[in] totalCount The total count of matches
60 * @param[in] currentOrdinal The ordinal of currently selected match @n
61 * If there is no match, it will be set to zero.
63 virtual void OnTextFound(int totalCount, int currentOrdinal) = 0;
68 // This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
70 // Gets the Impl instance.
74 virtual void ITextSearchListener_Reserved1(void) {};
77 // This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
79 // Gets the Impl instance.
83 virtual void ITextSearchListener_Reserved2(void) {};
86 }}} // Tizen::Web::Controls
87 #endif // _FWEB_CTRL_ITEXT_SEARCH_LISTENER_H_