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_IAppEventListener.h
19 * @brief This is the header file for _IAppEventListener class.
22 #ifndef _FAPP_INTERNAL_IAPP_EVENT_LISTENER_H_
23 #define _FAPP_INTERNAL_IAPP_EVENT_LISTENER_H_
25 #include <FAppTypes.h>
26 #include <FBaseRtIEventListener.h>
28 namespace Tizen { namespace App {
31 * @interface _IAppEventListener
32 * @brief This is a tagging interface that all event listeners must implement.
34 * The event listener can listen when the specific event is fired. The event listener
35 * has several methods, and each method will be called when the specific event is fired.
38 class _IAppEventListener
39 : virtual public Tizen::Base::Runtime::IEventListener
43 * This is the destructor for this class.
45 virtual ~_IAppEventListener() {}
48 * This method will be called when the application is launched.
50 virtual void OnApplicationLaunched(const AppId& appId, int pid) = 0;
53 * This method will be called when the application is terminated.
55 virtual void OnApplicationTerminated(const AppId& appId, int pid) = 0;
57 }; // _IAppEventListener
61 #endif // _FAPP_INTERNAL_IAPP_EVENT_LISTENER_H_