Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | |
michael@0 | 6 | dictionary MozCallBarringOption |
michael@0 | 7 | { |
michael@0 | 8 | /** |
michael@0 | 9 | * Indicates the program the call is being barred. |
michael@0 | 10 | * |
michael@0 | 11 | * It shall be one of the nsIDOMMozMobileConnection.CALL_BARRING_PROGRAM_* |
michael@0 | 12 | * values. |
michael@0 | 13 | */ |
michael@0 | 14 | unsigned short program; |
michael@0 | 15 | |
michael@0 | 16 | /** |
michael@0 | 17 | * Enable or disable the call barring program. |
michael@0 | 18 | */ |
michael@0 | 19 | boolean enabled; |
michael@0 | 20 | |
michael@0 | 21 | /** |
michael@0 | 22 | * Barring password. Use "" if no password specified. |
michael@0 | 23 | */ |
michael@0 | 24 | DOMString password; |
michael@0 | 25 | |
michael@0 | 26 | /** |
michael@0 | 27 | * Service for which the call barring is set up. |
michael@0 | 28 | * |
michael@0 | 29 | * It shall be one of the nsIDOMMozMobileConnection.ICC_SERVICE_CLASS_* |
michael@0 | 30 | * values. |
michael@0 | 31 | */ |
michael@0 | 32 | unsigned short serviceClass; |
michael@0 | 33 | }; |
michael@0 | 34 | |
michael@0 | 35 | dictionary DOMMMIResult |
michael@0 | 36 | { |
michael@0 | 37 | /** |
michael@0 | 38 | * String key that identifies the service associated with the MMI code |
michael@0 | 39 | * request. The UI is supposed to handle the localization of the strings |
michael@0 | 40 | * associated with this string key. |
michael@0 | 41 | */ |
michael@0 | 42 | DOMString serviceCode; |
michael@0 | 43 | |
michael@0 | 44 | /** |
michael@0 | 45 | * String key containing the status message of the associated MMI request. |
michael@0 | 46 | * The UI is supposed to handle the localization of the strings associated |
michael@0 | 47 | * with this string key. |
michael@0 | 48 | */ |
michael@0 | 49 | DOMString statusMessage; |
michael@0 | 50 | |
michael@0 | 51 | /** |
michael@0 | 52 | * Some MMI requests like call forwarding or PIN/PIN2/PUK/PUK2 related |
michael@0 | 53 | * requests provide extra information along with the status message, this |
michael@0 | 54 | * information can be a number, a string key or an array of string keys. |
michael@0 | 55 | */ |
michael@0 | 56 | any additionalInformation; |
michael@0 | 57 | }; |
michael@0 | 58 | |
michael@0 | 59 | dictionary DOMCLIRStatus |
michael@0 | 60 | { |
michael@0 | 61 | /** |
michael@0 | 62 | * CLIR parameter 'n': parameter sets the adjustment for outgoing calls. |
michael@0 | 63 | * |
michael@0 | 64 | * 0 Presentation indicator is used according to the subscription of the |
michael@0 | 65 | * CLIR service (uses subscription default value). |
michael@0 | 66 | * 1 CLIR invocation (restricts CLI presentation). |
michael@0 | 67 | * 2 CLIR suppression (allows CLI presentation). |
michael@0 | 68 | */ |
michael@0 | 69 | unsigned short n; |
michael@0 | 70 | |
michael@0 | 71 | /** |
michael@0 | 72 | * CLIR parameter 'm': parameter shows the subscriber CLIR service status in |
michael@0 | 73 | * the network. |
michael@0 | 74 | * 0 CLIR not provisioned. |
michael@0 | 75 | * 1 CLIR provisioned in permanent mode. |
michael@0 | 76 | * 2 unknown (e.g. no network, etc.). |
michael@0 | 77 | * 3 CLIR temporary mode presentation restricted. |
michael@0 | 78 | * |
michael@0 | 79 | * @see 3GPP TS 27.007 7.7 Defined values |
michael@0 | 80 | */ |
michael@0 | 81 | unsigned short m; |
michael@0 | 82 | }; |