blob: 2afe8f8d5f5c4c5ee88b1f29dbdc48dcbd04d294 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
//
// Copyright 2015 The Android Open Source Project
//
// 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.
//
#include "apmanager/fake_config_adaptor.h"
using std::string;
namespace apmanager {
FakeConfigAdaptor::FakeConfigAdaptor() {}
FakeConfigAdaptor::~FakeConfigAdaptor() {}
RPCObjectIdentifier FakeConfigAdaptor::GetRpcObjectIdentifier() {
return RPCObjectIdentifier();
}
void FakeConfigAdaptor::SetSsid(const string& ssid) {
ssid_ = ssid;
}
string FakeConfigAdaptor::GetSsid() {
return ssid_;
}
void FakeConfigAdaptor::SetInterfaceName(const std::string& interface_name) {
interface_name_ = interface_name;
}
string FakeConfigAdaptor::GetInterfaceName() {
return interface_name_;
}
void FakeConfigAdaptor::SetSecurityMode(const std::string& mode) {
security_mode_ = mode;
}
string FakeConfigAdaptor::GetSecurityMode() {
return security_mode_;
}
void FakeConfigAdaptor::SetPassphrase(const std::string& passphrase) {
passphrase_ = passphrase;
}
string FakeConfigAdaptor::GetPassphrase() {
return passphrase_;
}
void FakeConfigAdaptor::SetHwMode(const std::string& hw_mode) {
hw_mode_ = hw_mode;
}
string FakeConfigAdaptor::GetHwMode() {
return hw_mode_;
}
void FakeConfigAdaptor::SetOperationMode(const std::string& op_mode) {
op_mode_ = op_mode;
}
string FakeConfigAdaptor::GetOperationMode() {
return op_mode_;
}
void FakeConfigAdaptor::SetChannel(uint16_t channel) {
channel_ = channel;
}
uint16_t FakeConfigAdaptor::GetChannel() {
return channel_;
}
void FakeConfigAdaptor::SetHiddenNetwork(bool hidden_network) {
hidden_network_ = hidden_network;
}
bool FakeConfigAdaptor::GetHiddenNetwork() {
return hidden_network_;
}
void FakeConfigAdaptor::SetBridgeInterface(const std::string& interface_name) {
bridge_interface_ = interface_name;
}
string FakeConfigAdaptor::GetBridgeInterface() {
return bridge_interface_;
}
void FakeConfigAdaptor::SetServerAddressIndex(uint16_t index) {
server_address_index_ = index;
}
uint16_t FakeConfigAdaptor::GetServerAddressIndex() {
return server_address_index_;
}
void FakeConfigAdaptor::SetFullDeviceControl(bool full_control) {
full_device_control_ = full_control;
}
bool FakeConfigAdaptor::GetFullDeviceControl() {
return full_device_control_;
}
} // namespace apmanager
|