15c735df2Sopenharmony_ci/*
25c735df2Sopenharmony_ci * Copyright (C) 2023 Huawei Device Co., Ltd.
35c735df2Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
45c735df2Sopenharmony_ci * you may not use this file except in compliance with the License.
55c735df2Sopenharmony_ci * You may obtain a copy of the License at
65c735df2Sopenharmony_ci *
75c735df2Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
85c735df2Sopenharmony_ci *
95c735df2Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
105c735df2Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
115c735df2Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
125c735df2Sopenharmony_ci * See the License for the specific language governing permissions and
135c735df2Sopenharmony_ci * limitations under the License.
145c735df2Sopenharmony_ci */
155c735df2Sopenharmony_ci
165c735df2Sopenharmony_ci#ifndef LOCATIONHUB_IPC_INTERFACE_CODE_H
175c735df2Sopenharmony_ci#define LOCATIONHUB_IPC_INTERFACE_CODE_H
185c735df2Sopenharmony_ci
195c735df2Sopenharmony_ci/* SAID: 2801 */
205c735df2Sopenharmony_ci/* SAID: 2802 */
215c735df2Sopenharmony_ci/* SAID: 2803 */
225c735df2Sopenharmony_ci/* SAID: 2804 */
235c735df2Sopenharmony_ci/* SAID: 2805 */
245c735df2Sopenharmony_cinamespace OHOS {
255c735df2Sopenharmony_cinamespace Location {
265c735df2Sopenharmony_cienum class LocatorInterfaceCode {
275c735df2Sopenharmony_ci    GET_SWITCH_STATE = 1,
285c735df2Sopenharmony_ci    REG_SWITCH_CALLBACK = 2,
295c735df2Sopenharmony_ci    START_LOCATING = 3,
305c735df2Sopenharmony_ci    STOP_LOCATING = 4,
315c735df2Sopenharmony_ci    GET_CACHE_LOCATION = 5,
325c735df2Sopenharmony_ci    ENABLE_ABILITY = 9,
335c735df2Sopenharmony_ci    UPDATE_SA_ABILITY = 10,
345c735df2Sopenharmony_ci    GEO_IS_AVAILABLE = 11,
355c735df2Sopenharmony_ci    GET_FROM_COORDINATE = 12,
365c735df2Sopenharmony_ci    GET_FROM_LOCATION_NAME = 13,
375c735df2Sopenharmony_ci    UNREG_SWITCH_CALLBACK = 15,
385c735df2Sopenharmony_ci    REG_GNSS_STATUS_CALLBACK = 16,
395c735df2Sopenharmony_ci    UNREG_GNSS_STATUS_CALLBACK = 17,
405c735df2Sopenharmony_ci    REG_NMEA_CALLBACK = 18,
415c735df2Sopenharmony_ci    UNREG_NMEA_CALLBACK = 19,
425c735df2Sopenharmony_ci    IS_PRIVACY_COMFIRMED = 20,
435c735df2Sopenharmony_ci    SET_PRIVACY_COMFIRM_STATUS = 21,
445c735df2Sopenharmony_ci    REG_CACHED_CALLBACK = 22,
455c735df2Sopenharmony_ci    UNREG_CACHED_CALLBACK = 23,
465c735df2Sopenharmony_ci    GET_CACHED_LOCATION_SIZE = 24,
475c735df2Sopenharmony_ci    FLUSH_CACHED_LOCATIONS = 25,
485c735df2Sopenharmony_ci    SEND_COMMAND = 26,
495c735df2Sopenharmony_ci    ADD_FENCE = 27,
505c735df2Sopenharmony_ci    REMOVE_FENCE = 28,
515c735df2Sopenharmony_ci    GET_ISO_COUNTRY_CODE = 29,
525c735df2Sopenharmony_ci    ENABLE_LOCATION_MOCK = 30,
535c735df2Sopenharmony_ci    DISABLE_LOCATION_MOCK = 31,
545c735df2Sopenharmony_ci    SET_MOCKED_LOCATIONS = 32,
555c735df2Sopenharmony_ci    ENABLE_REVERSE_GEOCODE_MOCK = 33,
565c735df2Sopenharmony_ci    DISABLE_REVERSE_GEOCODE_MOCK = 34,
575c735df2Sopenharmony_ci    SET_REVERSE_GEOCODE_MOCKINFO = 35,
585c735df2Sopenharmony_ci    REG_COUNTRY_CODE_CALLBACK = 36,
595c735df2Sopenharmony_ci    UNREG_COUNTRY_CODE_CALLBACK = 37,
605c735df2Sopenharmony_ci    PROXY_PID_FOR_FREEZE = 38,
615c735df2Sopenharmony_ci    RESET_ALL_PROXY = 39,
625c735df2Sopenharmony_ci    REG_NMEA_CALLBACK_V9 = 40,
635c735df2Sopenharmony_ci    UNREG_NMEA_CALLBACK_V9 = 41,
645c735df2Sopenharmony_ci    REPORT_LOCATION = 42,
655c735df2Sopenharmony_ci    REG_LOCATING_REQUIRED_DATA_CALLBACK = 43,
665c735df2Sopenharmony_ci    UNREG_LOCATING_REQUIRED_DATA_CALLBACK = 44,
675c735df2Sopenharmony_ci    ADD_GNSS_GEOFENCE = 45,
685c735df2Sopenharmony_ci    REMOVE_GNSS_GEOFENCE = 46,
695c735df2Sopenharmony_ci    GET_GEOFENCE_SUPPORT_COORDINATE_SYSTEM_TYPE = 47,
705c735df2Sopenharmony_ci    REG_LOCATION_ERROR = 48,
715c735df2Sopenharmony_ci    UNREG_LOCATION_ERROR = 49,
725c735df2Sopenharmony_ci    REPORT_LOCATION_ERROR = 50,
735c735df2Sopenharmony_ci    ENABLE_ABILITY_BY_USERID = 51
745c735df2Sopenharmony_ci};
755c735df2Sopenharmony_ci
765c735df2Sopenharmony_cienum class GeoConvertInterfaceCode {
775c735df2Sopenharmony_ci    IS_AVAILABLE = 11,
785c735df2Sopenharmony_ci    GET_FROM_COORDINATE = 12,
795c735df2Sopenharmony_ci    GET_FROM_LOCATION_NAME_BY_BOUNDARY = 13,
805c735df2Sopenharmony_ci    ENABLE_REVERSE_GEOCODE_MOCK = 33,
815c735df2Sopenharmony_ci    DISABLE_REVERSE_GEOCODE_MOCK = 34,
825c735df2Sopenharmony_ci    SET_REVERSE_GEOCODE_MOCKINFO = 35,
835c735df2Sopenharmony_ci};
845c735df2Sopenharmony_ci
855c735df2Sopenharmony_cienum class GnssInterfaceCode {
865c735df2Sopenharmony_ci    SEND_LOCATION_REQUEST = 1,
875c735df2Sopenharmony_ci    GET_CACHED_LOCATION = 2,
885c735df2Sopenharmony_ci    SET_ENABLE = 3,
895c735df2Sopenharmony_ci    SELF_REQUEST = 4,
905c735df2Sopenharmony_ci    HANDLE_REMOTE_REQUEST = 5,
915c735df2Sopenharmony_ci    REFRESH_REQUESTS = 6,
925c735df2Sopenharmony_ci    REG_GNSS_STATUS = 7,
935c735df2Sopenharmony_ci    UNREG_GNSS_STATUS = 8,
945c735df2Sopenharmony_ci    REG_NMEA = 9,
955c735df2Sopenharmony_ci    UNREG_NMEA = 10,
965c735df2Sopenharmony_ci    REG_CACHED = 11,
975c735df2Sopenharmony_ci    UNREG_CACHED = 12,
985c735df2Sopenharmony_ci    GET_CACHED_SIZE = 13,
995c735df2Sopenharmony_ci    FLUSH_CACHED = 14,
1005c735df2Sopenharmony_ci    SEND_COMMANDS = 15,
1015c735df2Sopenharmony_ci    ADD_FENCE_INFO = 16,
1025c735df2Sopenharmony_ci    REMOVE_FENCE_INFO = 17,
1035c735df2Sopenharmony_ci    REPORT_GNSS_SESSION_STATUS = 18,
1045c735df2Sopenharmony_ci    REPORT_SV = 19,
1055c735df2Sopenharmony_ci    REPORT_NMEA = 20,
1065c735df2Sopenharmony_ci    GET_ISO_COUNTRY_CODE = 21,
1075c735df2Sopenharmony_ci    ENABLE_LOCATION_MOCK = 22,
1085c735df2Sopenharmony_ci    DISABLE_LOCATION_MOCK = 23,
1095c735df2Sopenharmony_ci    SET_MOCKED_LOCATIONS = 24,
1105c735df2Sopenharmony_ci    ENABLE_REV_GEOCODE_MOCK = 25,
1115c735df2Sopenharmony_ci    DISABLE_REV_GEOCODE_MOCK = 26,
1125c735df2Sopenharmony_ci    ADD_GNSS_GEOFENCE = 27,
1135c735df2Sopenharmony_ci    REMOVE_GNSS_GEOFENCE = 28,
1145c735df2Sopenharmony_ci    GET_GEOFENCE_SUPPORT_COORDINATE_SYSTEM_TYPE = 29,
1155c735df2Sopenharmony_ci    SEND_NETWORK_LOCATION = 30,
1165c735df2Sopenharmony_ci};
1175c735df2Sopenharmony_ci
1185c735df2Sopenharmony_cienum class NetworkInterfaceCode {
1195c735df2Sopenharmony_ci    SEND_LOCATION_REQUEST = 1,
1205c735df2Sopenharmony_ci    GET_CACHED_LOCATION = 2,
1215c735df2Sopenharmony_ci    SET_ENABLE = 3,
1225c735df2Sopenharmony_ci    SELF_REQUEST = 4,
1235c735df2Sopenharmony_ci    HANDLE_REMOTE_REQUEST = 5,
1245c735df2Sopenharmony_ci    REFRESH_REQUESTS = 6,
1255c735df2Sopenharmony_ci    REG_GNSS_STATUS = 7,
1265c735df2Sopenharmony_ci    UNREG_GNSS_STATUS = 8,
1275c735df2Sopenharmony_ci    REG_NMEA = 9,
1285c735df2Sopenharmony_ci    UNREG_NMEA = 10,
1295c735df2Sopenharmony_ci    REG_CACHED = 11,
1305c735df2Sopenharmony_ci    UNREG_CACHED = 12,
1315c735df2Sopenharmony_ci    GET_CACHED_SIZE = 13,
1325c735df2Sopenharmony_ci    FLUSH_CACHED = 14,
1335c735df2Sopenharmony_ci    SEND_COMMANDS = 15,
1345c735df2Sopenharmony_ci    ADD_FENCE_INFO = 16,
1355c735df2Sopenharmony_ci    REMOVE_FENCE_INFO = 17,
1365c735df2Sopenharmony_ci    REPORT_GNSS_SESSION_STATUS = 18,
1375c735df2Sopenharmony_ci    REPORT_SV = 19,
1385c735df2Sopenharmony_ci    REPORT_NMEA = 20,
1395c735df2Sopenharmony_ci    GET_ISO_COUNTRY_CODE = 21,
1405c735df2Sopenharmony_ci    ENABLE_LOCATION_MOCK = 22,
1415c735df2Sopenharmony_ci    DISABLE_LOCATION_MOCK = 23,
1425c735df2Sopenharmony_ci    SET_MOCKED_LOCATIONS = 24,
1435c735df2Sopenharmony_ci    ENABLE_REV_GEOCODE_MOCK = 25,
1445c735df2Sopenharmony_ci    DISABLE_REV_GEOCODE_MOCK = 26,
1455c735df2Sopenharmony_ci};
1465c735df2Sopenharmony_ci
1475c735df2Sopenharmony_cienum class PassiveInterfaceCode {
1485c735df2Sopenharmony_ci    SEND_LOCATION_REQUEST = 1,
1495c735df2Sopenharmony_ci    GET_CACHED_LOCATION = 2,
1505c735df2Sopenharmony_ci    SET_ENABLE = 3,
1515c735df2Sopenharmony_ci    SELF_REQUEST = 4,
1525c735df2Sopenharmony_ci    HANDLE_REMOTE_REQUEST = 5,
1535c735df2Sopenharmony_ci    REFRESH_REQUESTS = 6,
1545c735df2Sopenharmony_ci    REG_GNSS_STATUS = 7,
1555c735df2Sopenharmony_ci    UNREG_GNSS_STATUS = 8,
1565c735df2Sopenharmony_ci    REG_NMEA = 9,
1575c735df2Sopenharmony_ci    UNREG_NMEA = 10,
1585c735df2Sopenharmony_ci    REG_CACHED = 11,
1595c735df2Sopenharmony_ci    UNREG_CACHED = 12,
1605c735df2Sopenharmony_ci    GET_CACHED_SIZE = 13,
1615c735df2Sopenharmony_ci    FLUSH_CACHED = 14,
1625c735df2Sopenharmony_ci    SEND_COMMANDS = 15,
1635c735df2Sopenharmony_ci    ADD_FENCE_INFO = 16,
1645c735df2Sopenharmony_ci    REMOVE_FENCE_INFO = 17,
1655c735df2Sopenharmony_ci    REPORT_GNSS_SESSION_STATUS = 18,
1665c735df2Sopenharmony_ci    REPORT_SV = 19,
1675c735df2Sopenharmony_ci    REPORT_NMEA = 20,
1685c735df2Sopenharmony_ci    GET_ISO_COUNTRY_CODE = 21,
1695c735df2Sopenharmony_ci    ENABLE_LOCATION_MOCK = 22,
1705c735df2Sopenharmony_ci    DISABLE_LOCATION_MOCK = 23,
1715c735df2Sopenharmony_ci    SET_MOCKED_LOCATIONS = 24,
1725c735df2Sopenharmony_ci    ENABLE_REV_GEOCODE_MOCK = 25,
1735c735df2Sopenharmony_ci    DISABLE_REV_GEOCODE_MOCK = 26,
1745c735df2Sopenharmony_ci};
1755c735df2Sopenharmony_ci} // namespace Location
1765c735df2Sopenharmony_ci} // namespace OHOS
1775c735df2Sopenharmony_ci#endif // LOCATIONHUB_IPC_INTERFACE_CODE_H