Source code

Revision control

Other Tools

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
// Moz headers (alphabetical)
8
#include "nsAutoPtr.h"
9
#include "nsCOMArray.h"
10
#include "win_wlanLibrary.h"
11
12
class nsWifiAccessPoint;
13
14
class WinWifiScanner final {
15
public:
16
WinWifiScanner();
17
~WinWifiScanner();
18
19
/**
20
* GetAccessPointsFromWLAN
21
*
22
* Scans the available wireless interfaces for nearby access points and
23
* populates the supplied collection with them
24
*
25
* @param accessPoints The collection to populate with available APs
26
* @return NS_OK on success, failure codes on failure
27
*/
28
nsresult GetAccessPointsFromWLAN(nsCOMArray<nsWifiAccessPoint>& accessPoints);
29
30
private:
31
nsAutoPtr<WinWLANLibrary> mWlanLibrary;
32
};