1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef OHOS_HDI_LOCATION_GEOFENCE_V2_0_GEOFENCECALLBACKIMPL_H
17 #define OHOS_HDI_LOCATION_GEOFENCE_V2_0_GEOFENCECALLBACKIMPL_H
18 
19 #ifdef HDF_DRIVERS_INTERFACE_GEOFENCE_ENABLE
20 #include <hdf_base.h>
21 #include <v2_0/igeofence_callback.h>
22 
23 namespace OHOS {
24 namespace HDI {
25 namespace Location {
26 namespace Geofence {
27 namespace V2_0 {
28 class GeofenceCallbackImpl : public IGeofenceCallback {
29 public:
GeofenceCallbackImpl()30     GeofenceCallbackImpl() {}
~GeofenceCallbackImpl()31     virtual ~GeofenceCallbackImpl() {}
32     int32_t ReportGeofenceAvailability(bool isAvailable) override;
33     int32_t ReportGeofenceEvent(int32_t fenceIndex, const LocationInfo &location, GeofenceEvent event,
34                                 int64_t timestamp) override;
35     int32_t ReportGeofenceOperateResult(int32_t fenceIndex, GeofenceOperateType type,
36                                         GeofenceOperateResult result) override;
37 };
38 } // namespace V2_0
39 } // namespace Geofence
40 } // namespace Location
41 } // namespace HDI
42 } // namespace OHOS
43 #endif
44 #endif