sync with tizen_2.0
[platform/framework/native/appfw.git] / src / app / inc / FApp_AppManagerEvent.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 /**
19  * @file        FApp_AppManagerEvent.h
20  * @brief       This is the header file of _AppManagerEvent
21  */
22
23 #ifndef _FAPP_INTERNAL_APP_MANAGER_EVENT_H_
24 #define _FAPP_INTERNAL_APP_MANAGER_EVENT_H_
25
26 #include <FOspConfig.h>
27 #include <FBaseRt_Event.h>
28
29 namespace Tizen { namespace App
30 {
31
32 /**
33 * @class        _AppManagerEvent
34 * @brief                This class contains application manager event
35 * @since 2.1
36 */
37 class _AppManagerEvent
38         : public Tizen::Base::Runtime::_Event
39 {
40 public:
41         enum _Type
42         {
43                 _APP_MANAGER_EVENT_INVALID = 0,
44                 _APP_MANAGER_EVENT_LAUNCHED,
45                 _APP_MANAGER_EVENT_TERMINATED,
46
47                 // for range check.
48                 _APP_MANAGER_EVENT_MAX
49         };
50
51         result Construct(void);
52
53 protected:
54         void FireImpl(Tizen::Base::Runtime::IEventListener& lstener, const Tizen::Base::Runtime::IEventArg& arg);
55
56 };      //_AppManagerEvent
57
58 } } // Tizen::App
59
60 #endif // _FAPP_INTERNAL_APP_MANAGER_EVENT_H_