blob: 96998c3317e74b7c814f0de1507e451fa9ab240a [file] [log] [blame]
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_SUPPLICANT_SUPPLICANT_EVENT_DELEGATE_INTERFACE_H_
#define SHILL_SUPPLICANT_SUPPLICANT_EVENT_DELEGATE_INTERFACE_H_
#include <string>
namespace shill {
// SupplicantEventDelegateInterface declares the set of methods that
// a SupplicantInterfaceProxy calls on an interested party when
// wpa_supplicant events occur on the network interface interface.
class SupplicantEventDelegateInterface {
public:
virtual ~SupplicantEventDelegateInterface() = default;
// Supplicant has added a BSS to its table of visible endpoints.
virtual void BSSAdded(const RpcIdentifier& BSS,
const KeyValueStore& properties) = 0;
// Supplicant has removed a BSS from its table of visible endpoints.
virtual void BSSRemoved(const RpcIdentifier& BSS) = 0;
// Supplicant has received a certficate from the remote server during
// the process of authentication.
virtual void Certification(const KeyValueStore& properties) = 0;
// Supplicant state machine has output an EAP event notification.
virtual void EAPEvent(const std::string& status,
const std::string& parameter) = 0;
// The interface element in the supplicant has changed one or more
// properties.
virtual void PropertiesChanged(const KeyValueStore& properties) = 0;
// A scan has completed on this interface.
virtual void ScanDone(const bool& success) = 0;
};
} // namespace shill
#endif // SHILL_SUPPLICANT_SUPPLICANT_EVENT_DELEGATE_INTERFACE_H_