win_wifiScanner.h 871 B

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