2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FApp_IAppManagerEventListener.h
19 * @brief This is the header file for _IAppManagerEventListener class.
22 #ifndef _FAPP_INTERNAL_IAPP_MANAGER_EVENT_LISTENER_H_
23 #define _FAPP_INTERNAL_IAPP_MANAGER_EVENT_LISTENER_H_
25 #include <FAppTypes.h>
26 #include <FApp_Types.h>
27 #include <FBaseRtIEventListener.h>
29 namespace Tizen { namespace App {
32 * @interface _IAppManagerEventListener
33 * @brief This is a tagging interface that all event listeners must implement.
36 * The event listener can listen when the specific event is fired. The event listener
37 * has several methods, and each method will be called when the specific event is fired.
40 class _IAppManagerEventListener
41 : virtual public Tizen::Base::Runtime::IEventListener
45 * This is the destructor for this class.
49 virtual ~_IAppManagerEventListener(){}
52 * This method will be called when the application is launched.
56 virtual void OnApplicationLaunched(const AppId& appId, Tizen::App::_AppType type) = 0;
59 * This method will be called when the application is terminated.
63 virtual void OnApplicationTerminated(const AppId& appId, Tizen::App::_AppType type) = 0;
64 }; // _IAppManagerEventListener
68 #endif // _FAPP_INTERNAL_IAPP_MANAGER_EVENT_LISTENER_H_