Change source position of appfw-server
[platform/framework/native/appfw.git] / src / server / appfw / inc / FApp_IAppManagerEventListener.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
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.
15 //
16
17 /**
18  * @file        FApp_IAppManagerEventListener.h
19  * @brief       This is the header file for _IAppManagerEventListener class.
20  */
21
22 #ifndef _FAPP_INTERNAL_IAPP_MANAGER_EVENT_LISTENER_H_
23 #define _FAPP_INTERNAL_IAPP_MANAGER_EVENT_LISTENER_H_
24
25 #include <FAppTypes.h>
26 #include <FApp_Types.h>
27 #include <FBaseRtIEventListener.h>
28
29 namespace Tizen { namespace App {
30
31 /**
32 * @interface _IAppManagerEventListener
33 * @brief This is a tagging interface that all event listeners must implement.
34 * @since 2.1
35 *
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.
38 *
39 */
40 class _IAppManagerEventListener
41         : virtual public Tizen::Base::Runtime::IEventListener
42 {
43 public:
44         /**
45        * This is the destructor for this class.
46        *
47        * @since 2.1
48        */
49         virtual ~_IAppManagerEventListener(){}
50
51         /**
52        * This method will be called when the application is launched.
53        *
54        * @since 2.1
55        */
56         virtual void OnApplicationLaunched(const AppId& appId, Tizen::App::_AppType type) = 0;
57
58         /**
59        * This method will be called when the application is terminated.
60        *
61        * @since 2.1
62        */
63         virtual void OnApplicationTerminated(const AppId& appId, Tizen::App::_AppType type) = 0;
64 }; // _IAppManagerEventListener
65
66 } } //Tizen::App
67
68 #endif // _FAPP_INTERNAL_IAPP_MANAGER_EVENT_LISTENER_H_