1 /* 2 * Copyright (c) 2023-2024 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 COORDINATION_MESSAGE_H 17 #define COORDINATION_MESSAGE_H 18 19 namespace OHOS { 20 namespace Msdp { 21 enum class CoordinationMessage { 22 UNKNOW = -1, 23 PREPARE = 0, 24 UNPREPARE = 1, 25 ACTIVATE = 2, 26 ACTIVATE_SUCCESS = 3, 27 ACTIVATE_FAIL = 4, 28 DEACTIVATE_SUCCESS = 5, 29 DEACTIVATE_FAIL = 6, 30 SESSION_CLOSED = 7, 31 COORDINATION_SUCCESS = 8 32 }; 33 34 enum class CoordinationErrCode { 35 COORDINATION_OK = 0, 36 OPEN_SESSION_FAILED = 1, 37 SEND_PACKET_FAILED = 2, 38 UNEXPECTED_START_CALL = 3, 39 WORKER_THREAD_TIMEOUT = 4 40 }; 41 42 struct CoordinationMsgInfo { 43 CoordinationMessage msg; 44 int32_t errCode; 45 }; 46 47 enum class HotAreaType { 48 AREA_LEFT = 0, 49 AREA_RIGHT = 1, 50 AREA_TOP = 2, 51 AREA_BOTTOM = 3, 52 AREA_NONE = 4 53 }; 54 } // namespace Msdp 55 } // namespace OHOS 56 #endif // COORDINATION_MESSAGE_H