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 file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: [scriptable, uuid(dd9f229c-e5a6-453a-8388-950af0ff9918)] michael@0: interface nsIDOMMozIccInfo : nsISupports michael@0: { michael@0: /** michael@0: * Integrated Circuit Card Type. michael@0: * michael@0: * Possible values: "sim", "usim", "ruim". michael@0: */ michael@0: readonly attribute DOMString iccType; michael@0: michael@0: /** michael@0: * Integrated Circuit Card Identifier. michael@0: */ michael@0: readonly attribute DOMString iccid; michael@0: michael@0: /** michael@0: * Mobile Country Code (MCC) of the subscriber's home network. michael@0: */ michael@0: readonly attribute DOMString mcc; michael@0: michael@0: /** michael@0: * Mobile Network Code (MNC) of the subscriber's home network. michael@0: */ michael@0: readonly attribute DOMString mnc; michael@0: michael@0: /** michael@0: * Service Provider Name (SPN) of the subscriber's home network. michael@0: */ michael@0: readonly attribute DOMString spn; michael@0: michael@0: /** michael@0: * Network name must be a part of displayed carrier name. michael@0: */ michael@0: readonly attribute boolean isDisplayNetworkNameRequired; michael@0: michael@0: /** michael@0: * Service provider name must be a part of displayed carrier name. michael@0: */ michael@0: readonly attribute boolean isDisplaySpnRequired; michael@0: }; michael@0: michael@0: [scriptable, uuid(3c237e39-7af3-4748-baf4-4a3b6c3e0e66)] michael@0: interface nsIDOMMozGsmIccInfo : nsIDOMMozIccInfo michael@0: { michael@0: /** michael@0: * Mobile Station ISDN Number (MSISDN) of the subscriber, aka michael@0: * his phone number. michael@0: */ michael@0: readonly attribute DOMString msisdn; michael@0: }; michael@0: michael@0: [scriptable, uuid(7e937d09-4d1d-43c5-96d8-c91396022809)] michael@0: interface nsIDOMMozCdmaIccInfo : nsIDOMMozIccInfo michael@0: { michael@0: /** michael@0: * Mobile Directory Number (MDN) of the subscriber, aka his phone number. michael@0: */ michael@0: readonly attribute DOMString mdn; michael@0: michael@0: /** michael@0: * Preferred Roaming List (PRL) version of the subscriber. michael@0: */ michael@0: readonly attribute long prlVersion; michael@0: };