Change source position of appfw-server
[platform/framework/native/appfw.git] / src / server / appfw / inc / FApp_AppManagerEvent.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_AppManagerEvent.h
19  * @brief       This is the header file of _AppManagerEvent
20  */
21
22 #ifndef _FAPP_INTERNAL_APP_MANAGER_EVENT_H_
23 #define _FAPP_INTERNAL_APP_MANAGER_EVENT_H_
24
25 #include <FOspConfig.h>
26 #include <FBaseRt_Event.h>
27
28 namespace Tizen { namespace App
29 {
30
31 /**
32 * @class        _AppManagerEvent
33 * @brief                This class contains application manager event
34 * @since 2.1
35 */
36 class _OSP_EXPORT_ _AppManagerEvent
37         : public Tizen::Base::Runtime::_Event
38 {
39 public:
40         enum _Type
41         {
42                 _APP_MANAGER_EVENT_INVALID = 0,
43                 _APP_MANAGER_EVENT_LAUNCHED,
44                 _APP_MANAGER_EVENT_TERMINATED,
45
46                 // for range check.
47                 _APP_MANAGER_EVENT_MAX
48         };
49
50         result Construct(void);
51
52 protected:
53         void FireImpl(Tizen::Base::Runtime::IEventListener& lstener, const Tizen::Base::Runtime::IEventArg& arg);
54
55 };      //_AppManagerEvent
56
57 } } // Tizen::App
58
59 #endif // _FAPP_INTERNAL_APP_MANAGER_EVENT_H_