2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FLoc_ILocProviderEventListener.h
20 * @brief This is the header file for the %_ILocProviderEventListener interface.
22 * This header file contains the declarations of the %_ILocProviderEventListener interface. @n
25 #ifndef _FLOC_ILOC_PROVIDER_EVENT_LISTENER_H_
26 #define _FLOC_ILOC_PROVIDER_EVENT_LISTENER_H_
28 #include <FBaseRtIEventListener.h>
30 namespace Tizen { namespace Locations
36 * @interface _ILocationProviderListener
37 * @brief This interface provides a listener that receives location update event.
42 class _ILocProviderEventListener
43 : virtual public Tizen::Base::Runtime::IEventListener
47 * This is the destructor for this class.
51 virtual ~_ILocProviderEventListener(void) {}
54 * Called when the event is fired from the location provider impl class to break the context. @n
58 * @param[in] location The received %Location
60 virtual void OnLocationEventReceivedN(RequestId reqId, Tizen::Locations::Location& location) = 0;
63 * Called when the callback should be called from the provider context. @n
67 * @param[in] locSvcStatus The current status of the location udpates.
69 virtual void OnLocationUpdateStatusChanged(Tizen::Locations::LocationServiceStatus locSvcStatus) = 0;
72 * Called when the callback should be called from the provider context. @n
76 * @param[in] locSvcStatus The current status of the region monitoring.
78 virtual void OnRegionMonitoringStatusChanged(Tizen::Locations::LocationServiceStatus locSvcStatus) = 0;
80 }; //_ILocProviderEventListener
82 }} // Tizen::Locations
84 #endif // _FLOC_ILOC_PROVIDER_EVENT_LISTENER_H_