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 #include <string>
18 
19 namespace OHOS {
20 namespace Wifi {
SetSsid(const std::string & ssid)21     void Hid2dConnectConfig::SetSsid(const std::string& ssid) {
22         m_ssid = ssid;
23     }
24 
GetSsid() const25     std::string Hid2dConnectConfig::GetSsid() const {
26         return m_ssid;
27     }
28 
SetBssid(const std::string & bssid)29     void Hid2dConnectConfig::SetBssid(const std::string& bssid) {
30         m_bssid = bssid;
31     }
32 
GetBssid() const33     std::string Hid2dConnectConfig::GetBssid() const {
34         return m_bssid;
35     }
36 
SetPreSharedKey(const std::string & preSharedKey)37     void Hid2dConnectConfig::SetPreSharedKey(const std::string& preSharedKey) {
38         m_preSharedKey = preSharedKey;
39     }
40 
GetPreSharedKey() const41     std::string Hid2dConnectConfig::GetPreSharedKey() const {
42         return m_preSharedKey;
43     }
44 
SetFrequency(const int frequency)45     void Hid2dConnectConfig::SetFrequency(const int frequency) {
46         m_frequency = frequency;
47     }
48 
GetFrequency() const49     int Hid2dConnectConfig::GetFrequency() const {
50         return m_frequency;
51     }
52 
SetDhcpMode(const DhcpMode dhcpMode)53     void Hid2dConnectConfig::SetDhcpMode(const DhcpMode dhcpMode) {
54         m_dhcpMode = dhcpMode;
55     }
56 
GetDhcpMode() const57     DhcpMode Hid2dConnectConfig::GetDhcpMode() const {
58         return m_dhcpMode;
59     }
60 }  // namespace Wifi
61 }  // namespace OHOS
62