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 NETWORKSHARE_CONSTANTS_H 17 #define NETWORKSHARE_CONSTANTS_H 18 19 #include "net_manager_ext_constants.h" 20 21 namespace OHOS { 22 namespace NetManagerStandard { 23 // Share Return 24 constexpr int NETWORKSHARE_IS_SUPPORTED = 1; 25 constexpr int NETWORKSHARE_IS_UNSUPPORTED = 0; 26 constexpr int NETWORKSHARE_IS_SHARING = 1; 27 constexpr int NETWORKSHARE_IS_UNSHARING = 0; 28 29 // Share Type 30 constexpr int NETWORKSHARING_INVALID = -1; 31 constexpr int NETWORKSHARING_WIFI = 0; 32 constexpr int NETWORKSHARING_USB = 1; 33 constexpr int NETWORKSHARING_BLUETOOTH = 2; 34 constexpr int NETWORKSHARING_WIFI_P2P = 3; 35 constexpr int NETWORKSHARING_NCM = 4; 36 constexpr int NETWORKSHARING_ETHERNET = 5; 37 constexpr int NETWORKSHARING_WIGIG = 6; 38 39 // Usb Share State 40 enum class UsbShareState { 41 USB_NONE = 0, 42 USB_SHARING, 43 USB_CLOSING, 44 }; 45 } // namespace NetManagerStandard 46 } // namespace OHOS 47 #endif // NETWORKSHARE_CONSTANTS_H 48