/* * Copyright (c) 2024 ETH Zürich, IT Services * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System.Collections.Generic; using SafeExamBrowser.SystemComponents.Contracts.Network.Events; namespace SafeExamBrowser.SystemComponents.Contracts.Network { /// /// Defines the functionality of the network adapter system component. /// public interface INetworkAdapter : ISystemComponent { /// /// The connection status of the network adapter. /// ConnectionStatus Status { get; } /// /// The type of the current network connection. /// ConnectionType Type { get; } /// /// Fired when the network adapter has changed. /// event ChangedEventHandler Changed; /// /// Fired when credentials are required to connect to a network. /// event CredentialsRequiredEventHandler CredentialsRequired; /// /// Attempts to connect to the wireless network with the given name. /// void ConnectToWirelessNetwork(string name); /// /// Retrieves all currently available wireless networks. /// IEnumerable GetWirelessNetworks(); /// /// Starts periodically scanning the available wireless networks. /// void StartWirelessNetworkScanning(); /// /// Stops the periodical scanning of wireless networks. /// void StopWirelessNetworkScanning(); } }