/* * Copyright (c) 2022-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef NET_CONN_BASE_SERVICE_H #define NET_CONN_BASE_SERVICE_H #include #include "net_all_capabilities.h" #include "net_link_info.h" #include "net_supplier_info.h" #include "i_net_conn_callback.h" #include "refbase.h" #include "i_net_factoryreset_callback.h" namespace OHOS { namespace NetManagerStandard { class NetConnBaseService : public virtual RefBase { public: virtual int32_t GetIfaceNames(NetBearType bearerType, std::list &ifaceNames) = 0; virtual int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceName) = 0; virtual int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set &netCaps, uint32_t &supplierId) = 0; virtual int32_t UnregisterNetSupplier(uint32_t supplierId) = 0; virtual int32_t UpdateNetLinkInfo(uint32_t supplierId, const sptr &netLinkInfo) = 0; virtual int32_t UpdateNetSupplierInfo(uint32_t supplierId, const sptr &netSupplierInfo) = 0; virtual int32_t RestrictBackgroundChanged(bool isRestrictBackground) = 0; virtual int32_t RegisterNetConnCallback(const sptr &callback) = 0; virtual int32_t RegisterNetFactoryResetCallback(const sptr &callback) = 0; }; } // namespace NetManagerStandard } // namespace OHOS #endif // NET_CONN_BASE_SERVICE_H