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_DISTRIBUTED_DTBABILITYMGR_IPC_INTERFACE_CODE_H 17 #define OHOS_DISTRIBUTED_DTBABILITYMGR_IPC_INTERFACE_CODE_H 18 19 namespace OHOS { 20 namespace DistributedSchedule { 21 enum class IDAbilityManagerInterfaceCode : uint32_t { 22 // request code for continuation manager 23 REGISTER = 500, 24 UNREGISTER = 501, 25 REGISTER_DEVICE_SELECTION_CALLBACK = 502, 26 UNREGISTER_DEVICE_SELECTION_CALLBACK = 503, 27 UPDATE_CONNECT_STATUS = 504, 28 START_DEVICE_MANAGER = 505, 29 }; 30 31 enum class IDRequestCallbackInterfaceCode : uint32_t { 32 EVENT_DEVICE_CONNECT = 1, 33 EVENT_DEVICE_DISCONNECT = 2, 34 EVENT_DEVICE_CANCEL = 3, 35 }; 36 37 enum class IDRequestInterfaceCode { 38 EVENT_DEVICE_CONNECT = 1, 39 EVENT_DEVICE_DISCONNECT = 2, 40 }; 41 } // namespace DistributedSchedule 42 } // namespace OHOS 43 #endif // OHOS_DISTRIBUTED_DTBABILITYMGR_IPC_INTERFACE_CODE_H 44