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.
18 * @file FAppIActiveAppEventListener.h
19 * @brief This is the header file for the %IActiveAppEventListener interface.
21 * This header file contains the declarations of the %IActiveAppEventListener interface.
24 #ifndef _FAPP_IACTIVE_APP_EVENT_LISTENER_H_
25 #define _FAPP_IACTIVE_APP_EVENT_LISTENER_H_
27 #include <FBaseTypes.h>
28 #include <FAppTypes.h>
29 #include <FBaseRtIEventListener.h>
32 namespace Tizen { namespace App
36 * @interface IActiveAppEventListener
37 * @brief This interface is the listener interface for receiving the AppId of active application.
42 * The %IActiveAppEventListener interface is the listener interface for receiving the active application change events.
43 * The class that processes an active application change event implements this interface and registers using
44 * the AppManager::AddActiveAppEventListener() method.
47 class _OSP_EXPORT_ IActiveAppEventListener
48 : virtual public Tizen::Base::Runtime::IEventListener
52 * This polymorphic destructor should be overridden if required. This way,
53 * the destructors of the derived classes are called when the destructor of this interface is called.
58 virtual ~IActiveAppEventListener(void) {}
61 * Called when the active application is changed.
65 * @param[in] appId The AppId of the active application
67 virtual void OnActiveAppChanged(const AppId& appId) = 0;
71 // This method is for internal use only. Using this method can cause behavioral,
72 // security-related, and consistency-related issues in the application.
76 virtual void IActiveAppEventListener_Reserved1(void) {}
79 // This method is for internal use only. Using this method can cause behavioral,
80 // security-related, and consistency-related issues in the application.
84 virtual void IActiveAppEventListener_Reserved2(void) {}
87 // This method is for internal use only. Using this method can cause behavioral,
88 // security-related, and consistency-related issues in the application.
92 virtual void IActiveAppEventListener_Reserved3(void) {}
94 }; // IActiveAppEventListener
97 #endif // _FAPP_IACTIVE_APP_EVENT_LISTENER_H_