Blame netwerk/wifi/win_wifiScanner.h

Packit f0b94e
/* This Source Code Form is subject to the terms of the Mozilla Public
Packit f0b94e
 * License, v. 2.0. If a copy of the MPL was not distributed with this
Packit f0b94e
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Packit f0b94e
Packit f0b94e
#pragma once
Packit f0b94e
Packit f0b94e
// Moz headers (alphabetical)
Packit f0b94e
#include "nsAutoPtr.h"
Packit f0b94e
#include "nsCOMArray.h"
Packit f0b94e
#include "win_wlanLibrary.h"
Packit f0b94e
Packit f0b94e
class nsWifiAccessPoint;
Packit f0b94e
Packit f0b94e
class WinWifiScanner final {
Packit f0b94e
 public:
Packit f0b94e
  WinWifiScanner();
Packit f0b94e
  ~WinWifiScanner();
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * GetAccessPointsFromWLAN
Packit f0b94e
   *
Packit f0b94e
   * Scans the available wireless interfaces for nearby access points and
Packit f0b94e
   * populates the supplied collection with them
Packit f0b94e
   *
Packit f0b94e
   * @param accessPoints The collection to populate with available APs
Packit f0b94e
   * @return NS_OK on success, failure codes on failure
Packit f0b94e
   */
Packit f0b94e
  nsresult GetAccessPointsFromWLAN(nsCOMArray<nsWifiAccessPoint> &accessPoints);
Packit f0b94e
Packit f0b94e
 private:
Packit f0b94e
  nsAutoPtr<WinWLANLibrary> mWlanLibrary;
Packit f0b94e
};