18e745fdaSopenharmony_ci/*
28e745fdaSopenharmony_ci * Copyright (C) 2023 Huawei Device Co., Ltd.
38e745fdaSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
48e745fdaSopenharmony_ci * you may not use this file except in compliance with the License.
58e745fdaSopenharmony_ci * You may obtain a copy of the License at
68e745fdaSopenharmony_ci *
78e745fdaSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
88e745fdaSopenharmony_ci *
98e745fdaSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
108e745fdaSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
118e745fdaSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
128e745fdaSopenharmony_ci * See the License for the specific language governing permissions and
138e745fdaSopenharmony_ci * limitations under the License.
148e745fdaSopenharmony_ci */
158e745fdaSopenharmony_ci
168e745fdaSopenharmony_ci#ifndef NETITERFACESTATECALLBACK_H
178e745fdaSopenharmony_ci#define NETITERFACESTATECALLBACK_H
188e745fdaSopenharmony_ci
198e745fdaSopenharmony_ci#include "net_interface_callback_stub.h"
208e745fdaSopenharmony_ci
218e745fdaSopenharmony_cinamespace OHOS {
228e745fdaSopenharmony_cinamespace NetManagerStandard {
238e745fdaSopenharmony_ciclass NetInterfaceStateCallback : public NetInterfaceStateCallbackStub {
248e745fdaSopenharmony_cipublic:
258e745fdaSopenharmony_ci    explicit NetInterfaceStateCallback();
268e745fdaSopenharmony_ci    virtual ~NetInterfaceStateCallback() = default;
278e745fdaSopenharmony_ci
288e745fdaSopenharmony_cipublic:
298e745fdaSopenharmony_ci    int32_t OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int32_t flags,
308e745fdaSopenharmony_ci                                      int32_t scope) override;
318e745fdaSopenharmony_ci    int32_t OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int32_t flags,
328e745fdaSopenharmony_ci                                      int32_t scope) override;
338e745fdaSopenharmony_ci    int32_t OnInterfaceAdded(const std::string &ifName) override;
348e745fdaSopenharmony_ci    int32_t OnInterfaceRemoved(const std::string &ifName) override;
358e745fdaSopenharmony_ci    int32_t OnInterfaceChanged(const std::string &ifName, bool up) override;
368e745fdaSopenharmony_ci    int32_t OnInterfaceLinkStateChanged(const std::string &ifName, bool up) override;
378e745fdaSopenharmony_ci};
388e745fdaSopenharmony_ci} // namespace NetManagerStandard
398e745fdaSopenharmony_ci} // namespace OHOS
408e745fdaSopenharmony_ci
418e745fdaSopenharmony_ci#endif // NETITERFACESTATECALLBACK_H