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 FUiIWindowEventListener.h
20 * @brief This is the header file for the %IWindowEventListener interface.
22 * This header file contains the declarations of the %IWindowEventListener interface. @n
23 * If a window event is generated, a method of this interface is called. @n
24 * So, if an application does some jobs related to the window event, use the methods of this interface.
28 #ifndef _FUI_IWINDOW_EVENT_LISTENER_H_
29 #define _FUI_IWINDOW_EVENT_LISTENER_H_
31 #include <FBaseRtIEventListener.h>
32 #include <FBaseTypes.h>
34 namespace Tizen {namespace Ui
40 * @interface IWindowEventListener
41 * @brief This interface implements the listener for the window event.
45 * The %IWindowEventListener interface for receiving window events. The class that processes a window event
46 * implements this interface, and the instance created with that class is registered with a Window using Window's
47 * AddWindowEventListener() method. When the window event occurs, the OnWindowActivated(), or OnWindowDeactivated() method of that instance is invoked.
49 class _OSP_EXPORT_ IWindowEventListener
50 : public Tizen::Base::Runtime::IEventListener
55 * 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.
60 virtual ~IWindowEventListener(void) {}
63 * Called when a window becomes the topmost window.
67 * @param[in] source The source of the event
70 virtual void OnWindowActivated(const Tizen::Ui::Window& source) = 0;
73 * Called when the window is no longer the topmost window.
77 * @param[in] source The source of the event
80 virtual void OnWindowDeactivated(const Tizen::Ui::Window& source) = 0;
84 // This method is for internal use only. Using this method can cause behavioral, security-related,
85 // and consistency-related issues in the application.
87 // This method is reserved and may change its name at any time without
90 virtual void IWindowEventListener_Reserved1(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
99 virtual void IWindowEventListener_Reserved2(void) {}
102 // This method is for internal use only. Using this method can cause behavioral, security-related,
103 // and consistency-related issues in the application.
105 // This method is reserved and may change its name at any time without
108 virtual void IWindowEventListener_Reserved3(void) {}
113 #endif // _FUI_IWINDOW_EVENT_LISTENER_H_