summaryrefslogtreecommitdiff
path: root/config_adaptor_interface.h
blob: 2b8c8bce65c0a6d78b94c2a28eeccc4a68890219 (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
//
// 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.
//

#ifndef APMANAGER_CONFIG_ADAPTOR_INTERFACE_H_
#define APMANAGER_CONFIG_ADAPTOR_INTERFACE_H_

#include <string>

#include "apmanager/rpc_interface.h"

namespace apmanager {

class ConfigAdaptorInterface {
 public:
  virtual ~ConfigAdaptorInterface() {}

  // Returns an identifier/handle that represents this object over
  // the IPC interface (e.g. dbus::ObjectPath for D-Bus, IBinder
  // for Binder).
  virtual RPCObjectIdentifier GetRpcObjectIdentifier() = 0;

  // Getter/setter for configuration properties.
  virtual void SetSsid(const std::string& ssid) = 0;
  virtual std::string GetSsid() = 0;
  virtual void SetInterfaceName(const std::string& interface_name) = 0;
  virtual std::string GetInterfaceName() = 0;
  virtual void SetSecurityMode(const std::string& security_mode) = 0;
  virtual std::string GetSecurityMode() = 0;
  virtual void SetPassphrase(const std::string& passphrase) = 0;
  virtual std::string GetPassphrase() = 0;
  virtual void SetHwMode(const std::string& hw_mode) = 0;
  virtual std::string GetHwMode() = 0;
  virtual void SetOperationMode(const std::string& op_mode) = 0;
  virtual std::string GetOperationMode() = 0;
  virtual void SetChannel(uint16_t channel) = 0;
  virtual uint16_t GetChannel() = 0;
  virtual void SetHiddenNetwork(bool hidden) = 0;
  virtual bool GetHiddenNetwork() = 0;
  virtual void SetBridgeInterface(const std::string& interface_name) = 0;
  virtual std::string GetBridgeInterface() = 0;
  virtual void SetServerAddressIndex(uint16_t) = 0;
  virtual uint16_t GetServerAddressIndex() = 0;
  virtual void SetFullDeviceControl(bool full_control) = 0;
  virtual bool GetFullDeviceControl() = 0;
};

}  // namespace apmanager

#endif  // APMANAGER_CONFIG_ADAPTOR_INTERFACE_H_