1 /* 2 * Copyright (C) 2021 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 NETMANAGER_EXT_CONSTANTS_H 17 #define NETMANAGER_EXT_CONSTANTS_H 18 19 #include <errors.h> 20 21 namespace OHOS { 22 namespace NetManagerStandard { 23 24 enum { 25 NETMANAGER_EXT_COMMON = 0x00, 26 EXTERNALVPN_MANAGER = 0x01, 27 NETMANAGER_ETHERNET_MANAGER = 0x02, 28 NETMANAGER_MDNS_MANAGER = 0x03, 29 }; 30 31 // for network sharing 32 enum class SharingIfaceType { 33 SHARING_WIFI = 0, 34 SHARING_USB, 35 SHARING_BLUETOOTH, 36 }; 37 enum class SharingIfaceState { 38 SHARING_NIC_SERVING = 1, 39 SHARING_NIC_CAN_SERVER, 40 SHARING_NIC_ERROR, 41 }; 42 43 enum class VpnConnectState { 44 VPN_CONNECTED = 1, 45 VPN_DISCONNECTED, 46 }; 47 48 } // namespace NetManagerStandard 49 } // namespace OHOS 50 #endif // NETMANAGER_EXT_CONSTANTS_H 51