1 /* 2 * Copyright (c) 2021-2022 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_GNSS_V2_0_GNSSCALLBACKIMPL_H 17 #define OHOS_HDI_LOCATION_GNSS_V2_0_GNSSCALLBACKIMPL_H 18 19 #ifdef FEATURE_GNSS_SUPPORT 20 #include <hdf_base.h> 21 #include <string> 22 #include <v2_0/ignss_callback.h> 23 24 25 namespace OHOS { 26 namespace HDI { 27 namespace Location { 28 namespace Gnss { 29 namespace V2_0 { 30 class GnssCallbackImpl : public IGnssCallback { 31 public: GnssCallbackImpl()32 GnssCallbackImpl() 33 {} ~GnssCallbackImpl()34 virtual ~GnssCallbackImpl() 35 {} 36 int32_t ReportLocation(const LocationInfo& location) override; 37 int32_t ReportGnssWorkingStatus(GnssWorkingStatus status) override; 38 int32_t ReportNmea(int64_t timestamp, const std::string& nmea, int32_t length) override; 39 int32_t ReportGnssCapabilities(unsigned int capabilities) override; 40 int32_t ReportSatelliteStatusInfo(const SatelliteStatusInfo& info) override; 41 int32_t RequestGnssReferenceInfo(GnssRefInfoType type) override; 42 int32_t RequestPredictGnssData() override; 43 int32_t ReportCachedLocation(const std::vector<LocationInfo>& gnssLocations) override; 44 int32_t ReportGnssNiNotification(const GnssNiNotificationRequest& notification) override; 45 }; 46 } // V2_0 47 } // Gnss 48 } // Location 49 } // HDI 50 } // OHOS 51 #endif 52 #endif // OHOS_HDI_LOCATION_GNSS_V2_0_GNSSCALLBACKIMPL_H 53 54