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)
|
2020-02-11 19:20:08 +03:00
|
|
|
#include "mozilla/UniquePtr.h"
|
2014-08-01 23:10:48 +04:00
|
|
|
#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
|
|
|
|
*/
|
|
|
|
nsresult GetAccessPointsFromWLAN(nsCOMArray<nsWifiAccessPoint>& accessPoints);
|
|
|
|
|
|
|
|
private:
|
2020-02-11 19:20:08 +03:00
|
|
|
mozilla::UniquePtr<WinWLANLibrary> mWlanLibrary;
|
2014-08-01 23:10:48 +04:00
|
|
|
};
|