blob: a7329d8a0934c1c98af4de9c933e9717688b8aa5 [file] [log] [blame]
Peter Qiu00029782015-11-17 13:45:57 -08001//
2// Copyright 2015 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17#ifndef APMANAGER_CONFIG_ADAPTOR_INTERFACE_H_
18#define APMANAGER_CONFIG_ADAPTOR_INTERFACE_H_
19
20#include <string>
21
22namespace apmanager {
23
24class ConfigAdaptorInterface {
25 public:
26 virtual ~ConfigAdaptorInterface() {}
27
28 // Getter/setter for configuration properties.
29 virtual void SetSsid(const std::string& ssid) = 0;
30 virtual std::string GetSsid() = 0;
31 virtual void SetInterfaceName(const std::string& interface_name) = 0;
32 virtual std::string GetInterfaceName() = 0;
33 virtual void SetSecurityMode(const std::string& security_mode) = 0;
34 virtual std::string GetSecurityMode() = 0;
35 virtual void SetPassphrase(const std::string& passphrase) = 0;
36 virtual std::string GetPassphrase() = 0;
37 virtual void SetHwMode(const std::string& hw_mode) = 0;
38 virtual std::string GetHwMode() = 0;
39 virtual void SetOperationMode(const std::string& op_mode) = 0;
40 virtual std::string GetOperationMode() = 0;
41 virtual void SetChannel(uint16_t channel) = 0;
42 virtual uint16_t GetChannel() = 0;
43 virtual void SetHiddenNetwork(bool hidden) = 0;
44 virtual bool GetHiddenNetwork() = 0;
45 virtual void SetBridgeInterface(const std::string& interface_name) = 0;
46 virtual std::string GetBridgeInterface() = 0;
47 virtual void SetServerAddressIndex(uint16_t) = 0;
48 virtual uint16_t GetServerAddressIndex() = 0;
49 virtual void SetFullDeviceControl(bool full_control) = 0;
50 virtual bool GetFullDeviceControl() = 0;
51};
52
53} // namespace apmanager
54
55#endif // APMANAGER_CONFIG_ADAPTOR_INTERFACE_H_