netwerk/wifi/win_wifiScanner.h
author Chris Peterson <cpeterson@mozilla.com>
Sat, 17 Dec 2016 00:03:20 -0800
changeset 458405 edf54c28068fcafd078e521fd8cd975909ea8a89
parent 299703 a928fa9221a3098998de4ac264e90a10ac6f4623
child 459402 0aad3ebe6f6e8ea6170d7cbb933edd1e438b5e5a
child 489668 cbb8fdf1daf98a15f7d57f6b08d273bdf96aa1a0
child 694109 98e2b4ee9775a2a2b5cc1bb8a390bfe901814f38
permissions -rw-r--r--
Bug 1329916 - Part 2: Remove obsolete WinXPWifiScanner class. r?mcmanus block bug 1157400 MozReview-Commit-ID: 6elSNLxe9O9

/* 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"
#include "win_wlanLibrary.h"

class nsWifiAccessPoint;

class WinWifiScanner final {
 public:
  WinWifiScanner();
  ~WinWifiScanner();

  /**
   * 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:
  nsAutoPtr<WinWLANLibrary> mWlanLibrary;
};