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