2013-05-30 03:04:48 -07:00
|
|
|
/* 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-09-19 00:53:05 -07:00
|
|
|
enum IccType {"sim", "usim", "csim", "ruim"};
|
2013-05-30 03:04:48 -07:00
|
|
|
|
2014-09-19 00:53:05 -07:00
|
|
|
[Pref="dom.icc.enabled"]
|
|
|
|
interface MozIccInfo {
|
2013-08-11 23:50:54 -07:00
|
|
|
/**
|
|
|
|
* Integrated Circuit Card Type.
|
|
|
|
*/
|
2014-09-19 00:53:05 -07:00
|
|
|
readonly attribute IccType? iccType;
|
2013-08-11 23:50:54 -07:00
|
|
|
|
|
|
|
/**
|
2013-05-30 03:04:48 -07:00
|
|
|
* Integrated Circuit Card Identifier.
|
|
|
|
*/
|
2014-09-19 00:53:05 -07:00
|
|
|
readonly attribute DOMString? iccid;
|
2013-05-30 03:04:48 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Mobile Country Code (MCC) of the subscriber's home network.
|
|
|
|
*/
|
2014-09-19 00:53:05 -07:00
|
|
|
readonly attribute DOMString? mcc;
|
2013-05-30 03:04:48 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Mobile Network Code (MNC) of the subscriber's home network.
|
|
|
|
*/
|
2014-09-19 00:53:05 -07:00
|
|
|
readonly attribute DOMString? mnc;
|
2013-05-30 03:04:48 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Service Provider Name (SPN) of the subscriber's home network.
|
|
|
|
*/
|
2014-09-19 00:53:05 -07:00
|
|
|
readonly attribute DOMString? spn;
|
2013-05-30 03:04:48 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Network name must be a part of displayed carrier name.
|
|
|
|
*/
|
|
|
|
readonly attribute boolean isDisplayNetworkNameRequired;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Service provider name must be a part of displayed carrier name.
|
|
|
|
*/
|
|
|
|
readonly attribute boolean isDisplaySpnRequired;
|
2013-08-11 23:50:54 -07:00
|
|
|
};
|
2013-05-30 03:04:48 -07:00
|
|
|
|
2014-09-19 00:53:05 -07:00
|
|
|
[Pref="dom.icc.enabled"]
|
|
|
|
interface MozGsmIccInfo : MozIccInfo {
|
2013-05-30 03:04:48 -07:00
|
|
|
/**
|
2013-08-11 23:50:54 -07:00
|
|
|
* Mobile Station ISDN Number (MSISDN) of the subscriber, aka
|
2013-05-30 03:04:48 -07:00
|
|
|
* his phone number.
|
|
|
|
*/
|
2014-09-19 00:53:05 -07:00
|
|
|
readonly attribute DOMString? msisdn;
|
2013-05-30 03:04:48 -07:00
|
|
|
};
|
2013-08-11 23:50:54 -07:00
|
|
|
|
2014-09-19 00:53:05 -07:00
|
|
|
[Pref="dom.icc.enabled"]
|
|
|
|
interface MozCdmaIccInfo : MozIccInfo {
|
2013-08-11 23:50:54 -07:00
|
|
|
/**
|
|
|
|
* Mobile Directory Number (MDN) of the subscriber, aka his phone number.
|
|
|
|
*/
|
2014-09-19 00:53:05 -07:00
|
|
|
readonly attribute DOMString? mdn;
|
2014-04-06 23:44:45 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Preferred Roaming List (PRL) version of the subscriber.
|
|
|
|
*/
|
|
|
|
readonly attribute long prlVersion;
|
2013-08-11 23:50:54 -07:00
|
|
|
};
|