fix gbs/obs build failure
[framework/osp/web.git] / inc / FWebCtrlITextSearchListener.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 /**
19  * @file                FWebCtrlITextSearchListener.h
20  * @brief               This is the header file for the %ITextSearchListener interface.
21  *
22  * This header file contains the declarations of the %ITextSearchListener interface.
23  */
24 #ifndef _FWEB_CTRL_ITEXT_SEARCH_LISTENER_H_
25 #define _FWEB_CTRL_ITEXT_SEARCH_LISTENER_H_
26
27 #include <FBaseRtIEventListener.h>
28
29 namespace Tizen { namespace Web { namespace Controls
30 {
31
32 /**
33  * @interface   ITextSearchListener
34  * @brief               This interface is for receiving the result of the search operation made by asynchronous methods.
35  *
36  * @since               2.0
37  *
38  * The %ITextSearchListener interface receives the result of the search operation made by asynchronous methods.
39  */
40 class _OSP_EXPORT_ ITextSearchListener
41              : public virtual Tizen::Base::Runtime::IEventListener
42
43 {
44
45 public:
46
47         /**
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.
49          *
50          * @since               2.0
51          */
52         virtual ~ITextSearchListener(void) {}
53
54         /**
55          * Called when the text is found.
56          *
57          * @since               2.0
58          *
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.
62          */
63         virtual void OnTextFound(int totalCount, int currentOrdinal) = 0;
64
65 protected:
66
67         //
68         // This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
69         //
70         // Gets the Impl instance.
71         //
72         // @since               2.0
73         //
74         virtual void ITextSearchListener_Reserved1(void) {};
75
76         //
77         // This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
78         //
79         // Gets the Impl instance.
80         //
81         // @since               2.0
82         //
83         virtual void ITextSearchListener_Reserved2(void) {};
84 };
85
86 }}} // Tizen::Web::Controls
87 #endif // _FWEB_CTRL_ITEXT_SEARCH_LISTENER_H_