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 #include "wifi_hid2d_msg.h" 17 18 namespace OHOS { 19 namespace Wifi { SetSsid(const std::string & ssid)20 void Hid2dConnectConfig::SetSsid(const std::string& ssid) { 21 m_ssid = ssid; 22 } 23 GetSsid() const24 std::string Hid2dConnectConfig::GetSsid() const { 25 return m_ssid; 26 } 27 SetBssid(const std::string & bssid)28 void Hid2dConnectConfig::SetBssid(const std::string& bssid) { 29 m_bssid = bssid; 30 } 31 GetBssid() const32 std::string Hid2dConnectConfig::GetBssid() const { 33 return m_bssid; 34 } 35 SetPreSharedKey(const std::string & preSharedKey)36 void Hid2dConnectConfig::SetPreSharedKey(const std::string& preSharedKey) { 37 m_preSharedKey = preSharedKey; 38 } 39 GetPreSharedKey() const40 std::string Hid2dConnectConfig::GetPreSharedKey() const { 41 return m_preSharedKey; 42 } 43 SetFrequency(const int frequency)44 void Hid2dConnectConfig::SetFrequency(const int frequency) { 45 m_frequency = frequency; 46 } 47 GetFrequency() const48 int Hid2dConnectConfig::GetFrequency() const { 49 return m_frequency; 50 } 51 SetDhcpMode(const DhcpMode dhcpMode)52 void Hid2dConnectConfig::SetDhcpMode(const DhcpMode dhcpMode) { 53 m_dhcpMode = dhcpMode; 54 } 55 GetDhcpMode() const56 DhcpMode Hid2dConnectConfig::GetDhcpMode() const { 57 return m_dhcpMode; 58 } 59 } // namespace Wifi 60 } // namespace OHOS