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/. */
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2014-09-19 00:53:05 -07:00
|
|
|
[scriptable, uuid(3ba11a90-34e0-11e4-8c21-0800200c9a66)]
|
|
|
|
interface nsIIccInfo : nsISupports
|
2013-05-30 03:04:48 -07:00
|
|
|
{
|
2013-08-11 23:50:54 -07:00
|
|
|
/**
|
|
|
|
* Integrated Circuit Card Type.
|
|
|
|
*
|
2014-08-18 00:15:16 -07:00
|
|
|
* Possible values: null(unknown), "sim", "usim", "csim", ruim".
|
2013-08-11 23:50:54 -07:00
|
|
|
*/
|
|
|
|
readonly attribute DOMString iccType;
|
|
|
|
|
|
|
|
/**
|
2013-05-30 03:04:48 -07:00
|
|
|
* Integrated Circuit Card Identifier.
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString iccid;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Mobile Country Code (MCC) of the subscriber's home network.
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString mcc;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Mobile Network Code (MNC) of the subscriber's home network.
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString mnc;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Service Provider Name (SPN) of the subscriber's home network.
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString spn;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
[scriptable, uuid(6c9c78b0-34e0-11e4-8c21-0800200c9a66)]
|
|
|
|
interface nsIGsmIccInfo : nsIIccInfo
|
2013-08-11 23:50:54 -07:00
|
|
|
{
|
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.
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString msisdn;
|
|
|
|
};
|
2013-08-11 23:50:54 -07:00
|
|
|
|
2014-09-19 00:53:05 -07:00
|
|
|
[scriptable, uuid(7452f570-34e0-11e4-8c21-0800200c9a66)]
|
|
|
|
interface nsICdmaIccInfo : nsIIccInfo
|
2013-08-11 23:50:54 -07:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Mobile Directory Number (MDN) of the subscriber, aka his phone number.
|
|
|
|
*/
|
|
|
|
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
|
|
|
};
|