2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file FApp_IAppLaunchConditionEventListener.h
19 * @brief This is the header file of the _IAppLaunchConditionEventListener interface.
21 * This header file contains the declarations of the _IAppLaunchConditionEventListener interface.
23 #ifndef _FAPP_INTERNAL_IAPP_LAUNCH_CONDITION_EVENT_LISTENER_H_
24 #define _FAPP_INTERNAL_IAPP_LAUNCH_CONDITION_EVENT_LISTENER_H_
26 #include <FBaseRtIEventListener.h>
27 #include <FAppTypes.h>
28 #include <FBaseSysLog.h>
29 #include "FApp_AppLaunchCondition.h"
31 namespace Tizen { namespace App {
34 * @interface _IAppLaunchConditionEventListener
35 * @brief This interface implements the listener for app launch condition met event.
38 * The _IAppLaunchConditionEventListener interface is the listener interface for receiving condition occurred event, for example, OnAlarmExpired from AlarmConditonHandler.
40 class _IAppLaunchConditionEventListener
41 : virtual public Tizen::Base::Runtime::IEventListener
44 virtual ~_IAppLaunchConditionEventListener(void) {}
47 * Called when an app launch condition meets.
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)
54 virtual void OnAppLaunchConditionMet(const _AppLaunchCondition& operation, Tizen::Base::Collection::IMap* pExtraData = null) = 0 ;
56 }; //_IAppLaunchConditionEventListener
61 #endif // _FAPP_INTERNAL_IAPP_LAUNCH_CONDITION_EVENT_LISTENER_H_