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 file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 enum MobileNetworkState {"available", "connected", "forbidden"};
7 [Pref="dom.mobileconnection.enabled",
8 ChromeConstructor(DOMString? shortName, DOMString? longName, DOMString? mcc,
9 DOMString? mnc, DOMString? state)]
10 interface MozMobileNetworkInfo
13 * Short name of the network operator.
15 readonly attribute DOMString? shortName;
18 * Long name of the network operator.
20 readonly attribute DOMString? longName;
23 * Mobile Country Code (MCC) of the network operator.
25 readonly attribute DOMString? mcc;
28 * Mobile Network Code (MNC) of the network operator.
30 readonly attribute DOMString? mnc;
33 * State of this network operator.
35 readonly attribute MobileNetworkState? state;