config_adaptor_interface.h revision d9c79aa078a5df1882848d26a52d48a02b4057a5
1//
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
22#include "apmanager/rpc_interface.h"
23
24namespace apmanager {
25
26class ConfigAdaptorInterface {
27 public:
28  virtual ~ConfigAdaptorInterface() {}
29
30  // Returns an identifier/handle that represents this object over
31  // the IPC interface (e.g. dbus::ObjectPath for D-Bus, IBinder
32  // for Binder).
33  virtual RPCObjectIdentifier GetRpcObjectIdentifier() = 0;
34
35  // Getter/setter for configuration properties.
36  virtual void SetSsid(const std::string& ssid) = 0;
37  virtual std::string GetSsid() = 0;
38  virtual void SetInterfaceName(const std::string& interface_name) = 0;
39  virtual std::string GetInterfaceName() = 0;
40  virtual void SetSecurityMode(const std::string& security_mode) = 0;
41  virtual std::string GetSecurityMode() = 0;
42  virtual void SetPassphrase(const std::string& passphrase) = 0;
43  virtual std::string GetPassphrase() = 0;
44  virtual void SetHwMode(const std::string& hw_mode) = 0;
45  virtual std::string GetHwMode() = 0;
46  virtual void SetOperationMode(const std::string& op_mode) = 0;
47  virtual std::string GetOperationMode() = 0;
48  virtual void SetChannel(uint16_t channel) = 0;
49  virtual uint16_t GetChannel() = 0;
50  virtual void SetHiddenNetwork(bool hidden) = 0;
51  virtual bool GetHiddenNetwork() = 0;
52  virtual void SetBridgeInterface(const std::string& interface_name) = 0;
53  virtual std::string GetBridgeInterface() = 0;
54  virtual void SetServerAddressIndex(uint16_t) = 0;
55  virtual uint16_t GetServerAddressIndex() = 0;
56  virtual void SetFullDeviceControl(bool full_control) = 0;
57  virtual bool GetFullDeviceControl() = 0;
58};
59
60}  // namespace apmanager
61
62#endif  // APMANAGER_CONFIG_ADAPTOR_INTERFACE_H_
63