2014-08-01 23:10:48 +04:00
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Moz headers (alphabetical)
|
|
|
|
#include "nsAutoPtr.h"
|
|
|
|
#include "nsCOMArray.h"
|
2014-08-02 04:43:27 +04:00
|
|
|
#include "win_wlanLibrary.h"
|
2014-08-01 23:10:48 +04:00
|
|
|
|
|
|
|
class nsWifiAccessPoint;
|
|
|
|
|
2016-12-17 11:03:20 +03:00
|
|
|
class WinWifiScanner final {
|
2014-08-01 23:10:48 +04:00
|
|
|
public:
|
|
|
|
WinWifiScanner();
|
2016-12-17 11:03:20 +03:00
|
|
|
~WinWifiScanner();
|
2014-08-01 23:10:48 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GetAccessPointsFromWLAN
|
|
|
|
*
|
|
|
|
* Scans the available wireless interfaces for nearby access points and
|
|
|
|
* populates the supplied collection with them
|
|
|
|
*
|
|
|
|
* @param accessPoints The collection to populate with available APs
|
|
|
|
* @return NS_OK on success, failure codes on failure
|
|
|
|
*/
|
2019-05-01 11:47:10 +03:00
|
|
|
nsresult GetAccessPointsFromWLAN(nsCOMArray<nsWifiAccessPoint>& accessPoints);
|
2014-08-01 23:10:48 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
nsAutoPtr<WinWLANLibrary> mWlanLibrary;
|
|
|
|
};
|