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.
19 * @file FUiCtrl_IUiLinkEventListener.h
20 * @brief This file defines the _IUiLinkEventListener interface.
23 * This file contains the declarations of _IUiLinkEventListener interface.
26 #ifndef _FUI_CTRL_INTERNAL_IUI_LINK_EVENT_LISTENER_H_
27 #define _FUI_CTRL_INTERNAL_IUI_LINK_EVENT_LISTENER_H_
30 #include <FBaseRtIEventListener.h>
31 #include <FBaseUtilTypes.h>
33 namespace Tizen { namespace Ui
38 // namespace declaration
39 namespace Tizen { namespace Ui { namespace Controls
43 * @interface _IUiLinkEventListener
44 * @brief This interface implements the listener for link events.
47 * The _IUiLinkEventListener interface enables the implementer to receive the
50 class _IUiLinkEventListener
51 : virtual public Tizen::Base::Runtime::IEventListener
56 * This is the destructor for this class.
60 virtual ~_IUiLinkEventListener(void) {}
65 * Notifies that a link is clicked.
68 * @param[in] source The source of the event
69 * @param[in] text The text.
70 * @param[in] linkType The link type.
71 * @param[in] link The optional link text.
72 * @remarks If clicked link does not contain optional link text then, the value of @c text and @c link will be the same.
74 virtual void OnLinkClicked(Tizen::Ui::_Control& source, const Tizen::Base::String& text, Tizen::Base::Utility::LinkType linkType, const Tizen::Base::String& link) = 0;
75 }; // _IUiLinkEventListener
77 }}} // Tizen::Ui::Controls
79 #endif // _FUI_CTRL_INTERNAL_IUI_LINK_EVENT_LISTENER_H_