build option cahnged
[platform/framework/native/locations.git] / src / FLoc_ILocProviderEventListener.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         FLoc_ILocProviderEventListener.h
20 * @brief        This is the header file for the %_ILocProviderEventListener interface.
21 *
22 * This header file contains the declarations of the %_ILocProviderEventListener interface. @n
23 */
24
25 #ifndef _FLOC_ILOC_PROVIDER_EVENT_LISTENER_H_
26 #define _FLOC_ILOC_PROVIDER_EVENT_LISTENER_H_
27
28 #include <FBaseRtIEventListener.h>
29
30 namespace Tizen { namespace Locations
31 {
32
33 class Location;
34
35 /**
36 * @interface    _ILocationProviderListener
37 * @brief        This interface provides a listener that receives location update event.
38 *
39 * @since 2.0
40 */
41
42 class _ILocProviderEventListener
43         : virtual public Tizen::Base::Runtime::IEventListener
44 {
45 public:
46         /**
47          * This is the destructor for this class.
48          *
49          * @since 2.0
50          */
51         virtual ~_ILocProviderEventListener(void)  {}
52
53         /**
54          * Called when the event is fired from the location provider impl class to break the context. @n
55          *
56          * @since 2.0
57          *
58          * @param[in]   location        The received %Location
59          */
60         virtual void OnLocationEventReceivedN(RequestId reqId, Tizen::Locations::Location& location) = 0;
61
62         /**
63          * Called when the callback should be called from the provider context. @n
64          *
65          * @since 2.0
66          *
67          * @param[in]   locSvcStatus    The current status of the location udpates.
68          */
69         virtual void OnLocationUpdateStatusChanged(Tizen::Locations::LocationServiceStatus locSvcStatus) = 0;
70
71         /**
72          * Called when the callback should be called from the provider context. @n
73          *
74          * @since 2.0
75          *
76          * @param[in]   locSvcStatus    The current status of the region monitoring.
77          */
78         virtual void OnRegionMonitoringStatusChanged(Tizen::Locations::LocationServiceStatus locSvcStatus) = 0;
79
80 }; //_ILocProviderEventListener
81
82 }} // Tizen::Locations
83
84 #endif // _FLOC_ILOC_PROVIDER_EVENT_LISTENER_H_