|
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 |
|
5 #include "nsIDOMEvent.idl" |
|
6 |
|
7 interface nsIVariant; |
|
8 |
|
9 [scriptable, builtinclass, uuid(627b2102-9605-40e0-a5bf-6d3ac672b328)] |
|
10 interface nsIDOMMozWifiConnectionInfoEvent : nsIDOMEvent |
|
11 { |
|
12 /** |
|
13 * Network object with an SSID field. |
|
14 */ |
|
15 readonly attribute nsIVariant network; |
|
16 |
|
17 /** |
|
18 * Strength of the signal to network, in dBm between -55 and -100 dBm. |
|
19 */ |
|
20 readonly attribute short signalStrength; |
|
21 |
|
22 /** |
|
23 * Relative signal strength between 0 and 100. |
|
24 */ |
|
25 readonly attribute short relSignalStrength; |
|
26 |
|
27 /** |
|
28 * Link speed in Mb/s. |
|
29 */ |
|
30 readonly attribute long linkSpeed; |
|
31 |
|
32 /** |
|
33 * IP address in the dotted quad format. |
|
34 */ |
|
35 readonly attribute DOMString ipAddress; |
|
36 |
|
37 [noscript] void initMozWifiConnectionInfoEvent(in DOMString aType, |
|
38 in boolean aCanBubble, |
|
39 in boolean aCancelable, |
|
40 in nsIVariant aNetwork, |
|
41 in short signalStrength, |
|
42 in short relSignalStrength, |
|
43 in long linkSpeed, |
|
44 in DOMString ipAddress); |
|
45 }; |