1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/wifi/nsIDOMMozWifiConnectionInfoEvent.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,45 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsIDOMEvent.idl" 1.9 + 1.10 +interface nsIVariant; 1.11 + 1.12 +[scriptable, builtinclass, uuid(627b2102-9605-40e0-a5bf-6d3ac672b328)] 1.13 +interface nsIDOMMozWifiConnectionInfoEvent : nsIDOMEvent 1.14 +{ 1.15 + /** 1.16 + * Network object with an SSID field. 1.17 + */ 1.18 + readonly attribute nsIVariant network; 1.19 + 1.20 + /** 1.21 + * Strength of the signal to network, in dBm between -55 and -100 dBm. 1.22 + */ 1.23 + readonly attribute short signalStrength; 1.24 + 1.25 + /** 1.26 + * Relative signal strength between 0 and 100. 1.27 + */ 1.28 + readonly attribute short relSignalStrength; 1.29 + 1.30 + /** 1.31 + * Link speed in Mb/s. 1.32 + */ 1.33 + readonly attribute long linkSpeed; 1.34 + 1.35 + /** 1.36 + * IP address in the dotted quad format. 1.37 + */ 1.38 + readonly attribute DOMString ipAddress; 1.39 + 1.40 + [noscript] void initMozWifiConnectionInfoEvent(in DOMString aType, 1.41 + in boolean aCanBubble, 1.42 + in boolean aCancelable, 1.43 + in nsIVariant aNetwork, 1.44 + in short signalStrength, 1.45 + in short relSignalStrength, 1.46 + in long linkSpeed, 1.47 + in DOMString ipAddress); 1.48 +};