1 /* 2 * Copyright (C) 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 I_LOCATOR_H 17 #define I_LOCATOR_H 18 19 #include "iremote_broker.h" 20 21 namespace OHOS { 22 namespace Location { 23 class ILocator : public IRemoteBroker { 24 public: 25 enum { 26 GET_SWITCH_STATE = 1, 27 REG_SWITCH_CALLBACK = 2, 28 START_LOCATING = 3, 29 STOP_LOCATING = 4, 30 GET_CACHE_LOCATION = 5, 31 ENABLE_ABILITY = 9, 32 UPDATE_SA_ABILITY = 10, 33 GEO_IS_AVAILABLE = 11, 34 GET_FROM_COORDINATE = 12, 35 GET_FROM_LOCATION_NAME = 13, 36 UNREG_SWITCH_CALLBACK = 15, 37 REG_GNSS_STATUS_CALLBACK = 16, 38 UNREG_GNSS_STATUS_CALLBACK = 17, 39 REG_NMEA_CALLBACK = 18, 40 UNREG_NMEA_CALLBACK = 19, 41 IS_PRIVACY_COMFIRMED = 20, 42 SET_PRIVACY_COMFIRM_STATUS = 21, 43 REG_CACHED_CALLBACK = 22, 44 UNREG_CACHED_CALLBACK = 23, 45 GET_CACHED_LOCATION_SIZE = 24, 46 FLUSH_CACHED_LOCATIONS = 25, 47 SEND_COMMAND = 26, 48 ADD_FENCE = 27, 49 REMOVE_FENCE = 28, 50 GET_ISO_COUNTRY_CODE = 29, 51 ENABLE_LOCATION_MOCK = 30, 52 DISABLE_LOCATION_MOCK = 31, 53 SET_MOCKED_LOCATIONS = 32, 54 ENABLE_REVERSE_GEOCODE_MOCK = 33, 55 DISABLE_REVERSE_GEOCODE_MOCK = 34, 56 SET_REVERSE_GEOCODE_MOCKINFO = 35, 57 REG_COUNTRY_CODE_CALLBACK = 36, 58 UNREG_COUNTRY_CODE_CALLBACK = 37, 59 PROXY_UID_FOR_FREEZE = 38, 60 RESET_ALL_PROXY = 39, 61 REG_NMEA_CALLBACK_v9 = 40, 62 UNREG_NMEA_CALLBACK_v9 = 41, 63 }; 64 DECLARE_INTERFACE_DESCRIPTOR(u"location.ILocator"); 65 }; 66 } // namespace Location 67 } // namespace OHOS 68 #endif // I_LOCATOR_H 69