Home | History | Annotate | Download | only in supplicant
      1 //
      2 // Copyright (C) 2012 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 SHILL_SUPPLICANT_SUPPLICANT_INTERFACE_PROXY_INTERFACE_H_
     18 #define SHILL_SUPPLICANT_SUPPLICANT_INTERFACE_PROXY_INTERFACE_H_
     19 
     20 #include <map>
     21 #include <string>
     22 
     23 #include "shill/key_value_store.h"
     24 
     25 namespace shill {
     26 
     27 // SupplicantInterfaceProxyInterface declares only the subset of
     28 // fi::w1::wpa_supplicant1::Interface_proxy that is actually used by WiFi.
     29 class SupplicantInterfaceProxyInterface {
     30  public:
     31   virtual ~SupplicantInterfaceProxyInterface() {}
     32 
     33   virtual bool AddNetwork(const KeyValueStore& args,
     34                           std::string* network) = 0;
     35   virtual bool EnableHighBitrates() = 0;
     36   virtual bool EAPLogoff() = 0;
     37   virtual bool EAPLogon() = 0;
     38   virtual bool Disconnect() = 0;
     39   virtual bool FlushBSS(const uint32_t& age) = 0;
     40   virtual bool NetworkReply(const std::string& network,
     41                             const std::string& field,
     42                             const std::string& value) = 0;
     43   virtual bool Reassociate() = 0;
     44   virtual bool Reattach() = 0;
     45   virtual bool RemoveAllNetworks() = 0;
     46   virtual bool RemoveNetwork(const std::string& network) = 0;
     47   virtual bool Roam(const std::string& addr) = 0;
     48   virtual bool Scan(const KeyValueStore& args) = 0;
     49   virtual bool SelectNetwork(const std::string& network) = 0;
     50   virtual bool SetFastReauth(bool enabled) = 0;
     51   virtual bool SetRoamThreshold(uint16_t seconds) = 0;
     52   virtual bool SetScanInterval(int seconds) = 0;
     53   virtual bool SetDisableHighBitrates(bool disable_high_bitrates) = 0;
     54   virtual bool SetSchedScan(bool enable) = 0;
     55   virtual bool SetScan(bool enable) = 0;
     56   virtual bool TDLSDiscover(const std::string& peer) = 0;
     57   virtual bool TDLSSetup(const std::string& peer) = 0;
     58   virtual bool TDLSStatus(const std::string& peer,
     59                                       std::string* status) = 0;
     60   virtual bool TDLSTeardown(const std::string& peer) = 0;
     61   virtual bool SetHT40Enable(const std::string& network, bool enable) = 0;
     62 };
     63 
     64 }  // namespace shill
     65 
     66 #endif  // SHILL_SUPPLICANT_SUPPLICANT_INTERFACE_PROXY_INTERFACE_H_
     67