sync with tizen_2.0
[platform/framework/native/appfw.git] / src / app / inc / FApp_IAppLaunchConditionEventListener.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_IAppLaunchConditionEventListener.h
20  * @brief       This is the header file of the _IAppLaunchConditionEventListener interface.
21  *
22  * This header file contains the declarations of the _IAppLaunchConditionEventListener interface.
23  */
24 #ifndef _FAPP_INTERNAL_IAPP_LAUNCH_CONDITION_EVENT_LISTENER_H_
25 #define _FAPP_INTERNAL_IAPP_LAUNCH_CONDITION_EVENT_LISTENER_H_
26
27 #include <FBaseRtIEventListener.h>
28 #include <FAppTypes.h>
29 #include <FBaseSysLog.h>
30 #include "FApp_AppLaunchCondition.h"
31
32 namespace Tizen { namespace App {
33
34 /**
35  * @interface   _IAppLaunchConditionEventListener
36  * @brief               This interface implements the listener for app launch condition met event.
37  * @since 2.1
38  *
39  * The _IAppLaunchConditionEventListener interface is the listener interface for receiving condition occurred event, for example, OnAlarmExpired from AlarmConditonHandler.
40  */
41 class _IAppLaunchConditionEventListener
42         : virtual public Tizen::Base::Runtime::IEventListener
43 {
44 public:
45         virtual ~_IAppLaunchConditionEventListener(void) {}
46
47         /**
48          * Called when an app launch condition meets.
49          *
50          * @since 2.1
51          * @param[in]   The operation   related conditional operation, which contains current context.
52          * @see                 _AppLaunchConditionHandlerBase::Fire
53          */
54         virtual void OnAppLaunchConditionMet(const _AppLaunchCondition& operation) = 0 ;
55 }; //_IAppLaunchConditionEventListener
56
57
58 }}//Tizen::App
59
60 #endif // _FAPP_INTERNAL_IAPP_LAUNCH_CONDITION_EVENT_LISTENER_H_