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. @n
49 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
53 virtual ~ITextSearchListener(void) {}
56 * Called when the text is found.
60 * @param[in] totalCount The total count of the matches
61 * @param[in] currentOrdinal The ordinal of the currently selected match @n
62 * If there is no match, it is set to zero.
64 virtual void OnTextFound(int totalCount, int currentOrdinal) = 0;
69 // This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
71 // Gets the Impl instance.
75 virtual void ITextSearchListener_Reserved1(void) {};
78 // This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
80 // Gets the Impl instance.
84 virtual void ITextSearchListener_Reserved2(void) {};
87 }}} // Tizen::Web::Controls
88 #endif // _FWEB_CTRL_ITEXT_SEARCH_LISTENER_H_