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/. */
5 #include
"nsISupports.idl"
7 interface nsIWifiAccessPoint
;
9 [scriptable
, uuid(BCD4BEDE
-F4A5
-4A62
-9071-D7A60174E376
)]
10 interface nsIWifiListener
: nsISupports
13 * Called when the list of access points changes.
15 * @param accessPoints An array of nsIWifiAccessPoint representing all
16 * access points in view.
19 void onChange
(in Array
<nsIWifiAccessPoint
> accessPoints
);
22 * Called when there is a problem with listening to wifi
24 * @param error the error which caused this event. The
25 * error values will be nsresult codes.
28 void onError
(in nsresult error
);