author Jan Horak <>
Mon, 08 Jun 2015 04:41:00 -0400
changeset 247615 e68096bfbf3962aa8ed5d7e87942d70d896a2efb
parent 246992 faacf69f83adec2f2c0bbaf49a548b6e65db1ae9
child 266774 a928fa9221a3098998de4ac264e90a10ac6f4623
permissions -rw-r--r--
Bug 1129873 - [GTK3] Implement wrapper to GtkAppChooserDialog to allow using native application chooser. r=karlt

/* 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 */

#pragma once

// Moz headers (alphabetical)
#include "nsAutoPtr.h"
#include "nsCOMArray.h"
#include "win_wlanLibrary.h"

class nsWifiAccessPoint;

// This class allows the wifi monitor to use WinWifiScanner and WinXPWifiScanner interchangeably.
class WindowsWifiScannerInterface {
  virtual nsresult GetAccessPointsFromWLAN(nsCOMArray<nsWifiAccessPoint> &accessPoints) = 0;

class WinWifiScanner : public WindowsWifiScannerInterface {
  virtual ~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);

  nsAutoPtr<WinWLANLibrary> mWlanLibrary;