Home | History | Annotate | Download | only in supplicant
      1 //
      2 // Copyright (C) 2013 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_EVENT_DELEGATE_INTERFACE_H_
     18 #define SHILL_SUPPLICANT_SUPPLICANT_EVENT_DELEGATE_INTERFACE_H_
     19 
     20 #include <string>
     21 
     22 namespace shill {
     23 
     24 // SupplicantEventDelegateInterface declares the set of methods that
     25 // a SupplicantInterfaceProxy calls on an interested party when
     26 // wpa_supplicant events occur on the network interface interface.
     27 class SupplicantEventDelegateInterface {
     28  public:
     29   virtual ~SupplicantEventDelegateInterface() {}
     30 
     31   // Supplicant has added a BSS to its table of visible endpoints.
     32   virtual void BSSAdded(const std::string& BSS,
     33                         const KeyValueStore& properties) = 0;
     34 
     35   // Supplicant has removed a BSS from its table of visible endpoints.
     36   virtual void BSSRemoved(const std::string& BSS) = 0;
     37 
     38   // Supplicant has received a certficate from the remote server during
     39   // the process of authentication.
     40   virtual void Certification(const KeyValueStore& properties) = 0;
     41 
     42   // Supplicant state machine has output an EAP event notification.
     43   virtual void EAPEvent(const std::string& status,
     44                         const std::string& parameter) = 0;
     45 
     46   // The interface element in the supplicant has changed one or more
     47   // properties.
     48   virtual void PropertiesChanged(const KeyValueStore& properties) = 0;
     49 
     50   // A scan has completed on this interface.
     51   virtual void ScanDone(const bool& success) = 0;
     52 
     53   // A TDLS discovery response received on this interface.
     54   virtual void TDLSDiscoverResponse(const std::string& peer_address) = 0;
     55 };
     56 
     57 }  // namespace shill
     58 
     59 #endif  // SHILL_SUPPLICANT_SUPPLICANT_EVENT_DELEGATE_INTERFACE_H_
     60