michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIDOMEvent.idl" michael@0: michael@0: interface nsIVariant; michael@0: michael@0: [scriptable, builtinclass, uuid(627b2102-9605-40e0-a5bf-6d3ac672b328)] michael@0: interface nsIDOMMozWifiConnectionInfoEvent : nsIDOMEvent michael@0: { michael@0: /** michael@0: * Network object with an SSID field. michael@0: */ michael@0: readonly attribute nsIVariant network; michael@0: michael@0: /** michael@0: * Strength of the signal to network, in dBm between -55 and -100 dBm. michael@0: */ michael@0: readonly attribute short signalStrength; michael@0: michael@0: /** michael@0: * Relative signal strength between 0 and 100. michael@0: */ michael@0: readonly attribute short relSignalStrength; michael@0: michael@0: /** michael@0: * Link speed in Mb/s. michael@0: */ michael@0: readonly attribute long linkSpeed; michael@0: michael@0: /** michael@0: * IP address in the dotted quad format. michael@0: */ michael@0: readonly attribute DOMString ipAddress; michael@0: michael@0: [noscript] void initMozWifiConnectionInfoEvent(in DOMString aType, michael@0: in boolean aCanBubble, michael@0: in boolean aCancelable, michael@0: in nsIVariant aNetwork, michael@0: in short signalStrength, michael@0: in short relSignalStrength, michael@0: in long linkSpeed, michael@0: in DOMString ipAddress); michael@0: };