• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_V1_0_GNSSCALLBACKIMPL_H
17 #define OHOS_HDI_LOCATION_GNSS_V1_0_GNSSCALLBACKIMPL_H
18 
19 #include <hdf_base.h>
20 #include <string>
21 #include <v1_0/ignss_callback.h>
22 
23 
24 namespace OHOS {
25 namespace HDI {
26 namespace Location {
27 namespace Gnss {
28 namespace V1_0 {
29 class GnssCallbackImpl : public IGnssCallback {
30 public:
GnssCallbackImpl()31     GnssCallbackImpl()
32     {}
~GnssCallbackImpl()33     virtual ~GnssCallbackImpl()
34     {}
35     int32_t ReportLocation(const LocationInfo& location) override;
36     int32_t ReportGnssWorkingStatus(GnssWorkingStatus status) override;
37     int32_t ReportNmea(int64_t timestamp, const std::string& nmea, int32_t length) override;
38     int32_t ReportGnssCapabilities(GnssCapabilities capabilities) override;
39     int32_t ReportSatelliteStatusInfo(const SatelliteStatusInfo& info) override;
40     int32_t RequestGnssReferenceInfo(GnssRefInfoType type) override;
41     int32_t RequestPredictGnssData() override;
42     int32_t ReportCachedLocation(const std::vector<LocationInfo>& gnssLocations) override;
43 };
44 } // V1_0
45 } // Gnss
46 } // Location
47 } // HDI
48 } // OHOS
49 
50 #endif // OHOS_HDI_LOCATION_GNSS_V1_0_GNSSCALLBACKIMPL_H
51 
52