2013-06-18 22:48:45 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
2014-06-11 05:23:34 +04:00
|
|
|
[Constructor(DOMString type, optional MozWifiConnectionInfoEventInit eventInitDict)]
|
2013-06-18 22:48:45 +04:00
|
|
|
interface MozWifiConnectionInfoEvent : Event
|
|
|
|
{
|
2014-06-11 05:23:34 +04:00
|
|
|
/**
|
|
|
|
* Network object with an SSID field.
|
|
|
|
*/
|
2013-06-18 22:48:45 +04:00
|
|
|
readonly attribute any network;
|
2014-06-11 05:23:34 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Strength of the signal to network, in dBm between -55 and -100 dBm.
|
|
|
|
*/
|
2013-06-18 22:48:45 +04:00
|
|
|
readonly attribute short signalStrength;
|
2014-06-11 05:23:34 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Relative signal strength between 0 and 100.
|
|
|
|
*/
|
2013-06-18 22:48:45 +04:00
|
|
|
readonly attribute short relSignalStrength;
|
2014-06-11 05:23:34 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Link speed in Mb/s.
|
|
|
|
*/
|
2013-06-18 22:48:45 +04:00
|
|
|
readonly attribute long linkSpeed;
|
2014-06-11 05:23:34 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* IP address in the dotted quad format.
|
|
|
|
*/
|
2013-06-18 22:48:45 +04:00
|
|
|
readonly attribute DOMString? ipAddress;
|
|
|
|
};
|
|
|
|
|
|
|
|
dictionary MozWifiConnectionInfoEventInit : EventInit
|
|
|
|
{
|
|
|
|
any network = null;
|
|
|
|
short signalStrength = 0;
|
|
|
|
short relSignalStrength = 0;
|
|
|
|
long linkSpeed = 0;
|
|
|
|
DOMString ipAddress = "";
|
|
|
|
};
|