1190978c3Sopenharmony_ci/*
2190978c3Sopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
3190978c3Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4190978c3Sopenharmony_ci * you may not use this file except in compliance with the License.
5190978c3Sopenharmony_ci * You may obtain a copy of the License at
6190978c3Sopenharmony_ci *
7190978c3Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8190978c3Sopenharmony_ci *
9190978c3Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10190978c3Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11190978c3Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12190978c3Sopenharmony_ci * See the License for the specific language governing permissions and
13190978c3Sopenharmony_ci * limitations under the License.
14190978c3Sopenharmony_ci */
15190978c3Sopenharmony_ci
16190978c3Sopenharmony_ci#include "dupdate_net_manager.h"
17190978c3Sopenharmony_ci
18190978c3Sopenharmony_ci#include <thread>
19190978c3Sopenharmony_ci#include <unistd.h>
20190978c3Sopenharmony_ci
21190978c3Sopenharmony_ci#include "update_define.h"
22190978c3Sopenharmony_ci#include "update_log.h"
23190978c3Sopenharmony_ci
24190978c3Sopenharmony_cinamespace OHOS {
25190978c3Sopenharmony_cinamespace UpdateEngine {
26190978c3Sopenharmony_ciNetManager::NetManager()
27190978c3Sopenharmony_ci{
28190978c3Sopenharmony_ci    ENGINE_LOGI("NetManager NetManager");
29190978c3Sopenharmony_ci}
30190978c3Sopenharmony_ci
31190978c3Sopenharmony_ciNetManager::~NetManager() {}
32190978c3Sopenharmony_ci
33190978c3Sopenharmony_civoid NetManager::Init()
34190978c3Sopenharmony_ci{
35190978c3Sopenharmony_ci    ENGINE_LOGI("NetManager init");
36190978c3Sopenharmony_ci}
37190978c3Sopenharmony_ci
38190978c3Sopenharmony_cibool NetManager::RegisterCallback(
39190978c3Sopenharmony_ci    NetChangeCallbackType callbackType, const std::set<NetType> &netTypes, NetObserverCallback cb)
40190978c3Sopenharmony_ci{
41190978c3Sopenharmony_ci    ENGINE_LOGI("NetManager RegisterCallback");
42190978c3Sopenharmony_ci    return true;
43190978c3Sopenharmony_ci}
44190978c3Sopenharmony_ci
45190978c3Sopenharmony_civoid NetManager::UnregisterCallback(NetChangeCallbackType callbackType)
46190978c3Sopenharmony_ci{
47190978c3Sopenharmony_ci    ENGINE_LOGI("NetManager UnregisterCallback");
48190978c3Sopenharmony_ci}
49190978c3Sopenharmony_ci
50190978c3Sopenharmony_ciNetType NetManager::GetNetType()
51190978c3Sopenharmony_ci{
52190978c3Sopenharmony_ci    return netType_;
53190978c3Sopenharmony_ci}
54190978c3Sopenharmony_ci
55190978c3Sopenharmony_cibool NetManager::IsNetAvailable(NetType netType)
56190978c3Sopenharmony_ci{
57190978c3Sopenharmony_ci    return true;
58190978c3Sopenharmony_ci}
59190978c3Sopenharmony_ci
60190978c3Sopenharmony_cibool NetManager::OnNetChange(NetType netType)
61190978c3Sopenharmony_ci{
62190978c3Sopenharmony_ci    ENGINE_LOGI("NetManager OnNetChange");
63190978c3Sopenharmony_ci    return true;
64190978c3Sopenharmony_ci}
65190978c3Sopenharmony_ci
66190978c3Sopenharmony_cibool NetManager::IsBaseNetType(NetType netType)
67190978c3Sopenharmony_ci{
68190978c3Sopenharmony_ci    return true;
69190978c3Sopenharmony_ci}
70190978c3Sopenharmony_ci} // namespace UpdateEngine
71190978c3Sopenharmony_ci} // namespace OHOS