SolarisWifiScanner.h (822B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #pragma once 6 7 #include "WifiScanner.h" 8 9 class nsIWifiAccessPoint; 10 11 namespace mozilla { 12 13 class WifiScannerImpl final : public WifiScanner { 14 public: 15 WifiScannerImpl(); 16 ~WifiScannerImpl(); 17 18 /** 19 * GetAccessPointsFromWLAN 20 * 21 * Scans the available wireless interfaces for nearby access points and 22 * populates the supplied collection with them 23 * 24 * @param accessPoints The collection to populate with available APs 25 * @return NS_OK on success, failure codes on failure 26 */ 27 nsresult GetAccessPointsFromWLAN( 28 nsTArray<RefPtr<nsIWifiAccessPoint>>& accessPoints); 29 }; 30 31 } // namespace mozilla