dom/webidl/MozStkCommandEvent.webidl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 4 * You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5 */
michael@0 6
michael@0 7 [Pref="dom.icc.enabled",
michael@0 8 Constructor(DOMString type, optional MozStkCommandEventInit eventInitDict)]
michael@0 9 interface MozStkCommandEvent : Event
michael@0 10 {
michael@0 11 readonly attribute any command;
michael@0 12 };
michael@0 13
michael@0 14 dictionary MozStkCommandEventInit : EventInit
michael@0 15 {
michael@0 16 any command = null;
michael@0 17 };
michael@0 18
michael@0 19 dictionary MozStkTextMessage
michael@0 20 {
michael@0 21 /**
michael@0 22 * Text String.
michael@0 23 *
michael@0 24 * @see TS 11.14, clause 12.15, Text String.
michael@0 25 */
michael@0 26 DOMString text;
michael@0 27
michael@0 28 /**
michael@0 29 * The length of time for which the ME shall display the dialog.
michael@0 30 */
michael@0 31 MozStkDuration duration;
michael@0 32
michael@0 33 /**
michael@0 34 * Indicate this text message is high priority or normal priority.
michael@0 35 *
michael@0 36 * @see TS 11.14, clause 12.6, Command Qualifier, Display Text, bit 1.
michael@0 37 *
michael@0 38 * High priority text shall be displayed on the screen immediately, except if
michael@0 39 * there is a conflict of priority level of alerting such as incoming calls
michael@0 40 * or a low battery warning. In that situation, the resolution is left to
michael@0 41 * the terminal. If the command is rejected in spite of the high priority,
michael@0 42 * the terminal shall inform the ICC with resultCode is
michael@0 43 * TERMINAL_CRNTLY_UNABLE_TO_PROCESS in MozStkResponse.
michael@0 44 *
michael@0 45 * true: high priority
michael@0 46 * false: normal priority
michael@0 47 */
michael@0 48 boolean isHighPriority;
michael@0 49
michael@0 50 /**
michael@0 51 * Need to wait for user to clear message or not.
michael@0 52 *
michael@0 53 * @see TS 11.14, clause 12.6, Command Qualifier, Display Text, bit 8.
michael@0 54 *
michael@0 55 * If this attribute is true, but user doesn't give any input within a period
michael@0 56 * of time(said 30 secs), the terminal shall inform the ICC with resultCode
michael@0 57 * is NO_RESPONSE_FROM_USER in MozStkResponse.
michael@0 58 *
michael@0 59 * true: Wait for user to clear message.
michael@0 60 * false: clear message after a delay.
michael@0 61 */
michael@0 62 boolean userClear;
michael@0 63
michael@0 64 /**
michael@0 65 * Need to response immediately or not.
michael@0 66 *
michael@0 67 * @see TS 11.14, clause 12.43, Immediate response.
michael@0 68 *
michael@0 69 * When this attribute is true, the terminal shall immediately send
michael@0 70 * MozStkResponse with resultCode is OK.
michael@0 71 *
michael@0 72 * true: The terminal shall send response immediately.
michael@0 73 * false: otherwise.
michael@0 74 */
michael@0 75 boolean responseNeeded;
michael@0 76 };
michael@0 77
michael@0 78 dictionary MozStkItem
michael@0 79 {
michael@0 80 /**
michael@0 81 * Identifier of item.
michael@0 82 *
michael@0 83 * The identifier is a single byte between '01' and 'FF'. Each item shall
michael@0 84 * have a unique identifier within an Item list.
michael@0 85 */
michael@0 86 unsigned short identifier;
michael@0 87
michael@0 88 /**
michael@0 89 * Text string of item.
michael@0 90 */
michael@0 91 DOMString text;
michael@0 92 };
michael@0 93
michael@0 94 dictionary MozStkMenu
michael@0 95 {
michael@0 96 /**
michael@0 97 * Array of MozStkItem.
michael@0 98 *
michael@0 99 * @see TS 11.14, clause 12.9
michael@0 100 */
michael@0 101 sequence<MozStkItem> items;
michael@0 102
michael@0 103 /**
michael@0 104 * Presentation type, one of TYPE_*.
michael@0 105 */
michael@0 106 unsigned short presentationType;
michael@0 107
michael@0 108 /**
michael@0 109 * Title of the menu.
michael@0 110 */
michael@0 111 DOMString title;
michael@0 112
michael@0 113 /**
michael@0 114 * Default item identifier of the menu.
michael@0 115 */
michael@0 116 unsigned short defaultItem;
michael@0 117
michael@0 118 /**
michael@0 119 * Help information available or not.
michael@0 120 *
michael@0 121 * @see TS 11.14, clause 12.6, Command Qualifier, SET UP MENU, bit 8.
michael@0 122 *
michael@0 123 * true: help information available.
michael@0 124 * false: no help information available.
michael@0 125 */
michael@0 126 boolean isHelpAvailable;
michael@0 127
michael@0 128 /**
michael@0 129 * List of Next Action Indicators.
michael@0 130 * Each element should be one of nsIDOMMozIccManager.STK_CMD_*
michael@0 131 * or nsIDOMMozIccManager.STK_NEXT_ACTION_*
michael@0 132 * If it's STK_NEXT_ACTION_NULL, the terminal should ignore this action
michael@0 133 * in corresponding item.
michael@0 134 *
michael@0 135 * @see TS 11.14, clause 12.24, Items Next Action Indicator.
michael@0 136 */
michael@0 137 sequence<unsigned short> nextActionList;
michael@0 138 };
michael@0 139
michael@0 140 dictionary MozStkInput
michael@0 141 {
michael@0 142 /**
michael@0 143 * Text for the ME to display in conjunction with asking the user to respond.
michael@0 144 */
michael@0 145 DOMString text;
michael@0 146
michael@0 147 /**
michael@0 148 * The length of time for which the ME shall display the dialog. This field
michael@0 149 * is used only for GET INKEY.
michael@0 150 *
michael@0 151 * @see TS 11.14, clause 11.8, duration, GET INKEY T.C 27.22.4.2.8.4.2
michael@0 152 */
michael@0 153 MozStkDuration duration;
michael@0 154
michael@0 155 /**
michael@0 156 * Minimum length of response.
michael@0 157 */
michael@0 158 unsigned short minLength;
michael@0 159
michael@0 160 /**
michael@0 161 * Maximum length of response.
michael@0 162 */
michael@0 163 unsigned short maxLength;
michael@0 164
michael@0 165 /**
michael@0 166 * Text for the ME to display, corresponds to a default text string offered
michael@0 167 * by the ICC.
michael@0 168 */
michael@0 169 DOMString defaultText;
michael@0 170
michael@0 171 /**
michael@0 172 * Input format.
michael@0 173 *
michael@0 174 * @see TS 11.14, clause 12.6, Command Qualifier, GET INPUT, bit 1.
michael@0 175 *
michael@0 176 * true: Alphabet set.
michael@0 177 * false: Digits only.
michael@0 178 */
michael@0 179 boolean isAlphabet;
michael@0 180
michael@0 181 /**
michael@0 182 * Alphabet encoding.
michael@0 183 *
michael@0 184 * @see TS 11.14, clause 12.6, Command Qualifier, GET INPUT, bit 2.
michael@0 185 *
michael@0 186 * true: UCS2 alphabet.
michael@0 187 * false: default SMS alphabet.
michael@0 188 */
michael@0 189 boolean isUCS2;
michael@0 190
michael@0 191 /**
michael@0 192 * Visibility of input.
michael@0 193 *
michael@0 194 * @see TS 11.14, clause 12.6, Command Qualifier, GET INPUT, bit 3.
michael@0 195 *
michael@0 196 * true: User input shall not be revealed in any way.
michael@0 197 * false: ME may echo user input on the display.
michael@0 198 */
michael@0 199 boolean hideInput;
michael@0 200
michael@0 201 /**
michael@0 202 * Yes/No response is requested.
michael@0 203 *
michael@0 204 * @see TS 11.14, clause 12.6, Command Qualifier, GET INKEY, bit 3.
michael@0 205 *
michael@0 206 * true: Yes/No response is requested, and character sets
michael@0 207 * (Alphabet set and UCS2) are disabled.
michael@0 208 * false: Character sets (Alphabet set and UCS2) are enabled.
michael@0 209 */
michael@0 210 boolean isYesNoRequested;
michael@0 211
michael@0 212 /**
michael@0 213 * User input in packed or unpacked format.
michael@0 214 *
michael@0 215 * @see TS 11.14, clause 12.6, Command Qualifier, GET INPUT, bit 4.
michael@0 216 *
michael@0 217 * true: User input to be in SMS packed format.
michael@0 218 * false: User input to be in unpacked format.
michael@0 219 */
michael@0 220 boolean isPacked;
michael@0 221
michael@0 222 /**
michael@0 223 * Help information available or not.
michael@0 224 *
michael@0 225 * @see TS 11.14, clause 12.6, Command Qualifier, GET INPUT/GET INKEY, bit 8.
michael@0 226 *
michael@0 227 * true: help information available.
michael@0 228 * false: no help information available.
michael@0 229 */
michael@0 230 boolean isHelpAvailable;
michael@0 231 };
michael@0 232
michael@0 233 dictionary MozStkBrowserSetting
michael@0 234 {
michael@0 235 /**
michael@0 236 * Confirm message to launch browser.
michael@0 237 */
michael@0 238 MozStkTextMessage confirmMessage;
michael@0 239
michael@0 240 /**
michael@0 241 * The URL to be opened by browser.
michael@0 242 */
michael@0 243 DOMString url;
michael@0 244
michael@0 245 /**
michael@0 246 * One of STK_BROWSER_MODE_*.
michael@0 247 *
michael@0 248 * @see nsIDOMMozIccManager.STK_BROWSER_MODE_*
michael@0 249 */
michael@0 250 unsigned short mode;
michael@0 251 };
michael@0 252
michael@0 253 dictionary MozStkSetUpCall
michael@0 254 {
michael@0 255 /**
michael@0 256 * The Dialling number.
michael@0 257 */
michael@0 258 DOMString address;
michael@0 259
michael@0 260 /**
michael@0 261 * The text message used in user confirmation phase.
michael@0 262 */
michael@0 263 MozStkTextMessage confirmMessage;
michael@0 264
michael@0 265 /**
michael@0 266 * The text message used in call set up phase.
michael@0 267 */
michael@0 268 MozStkTextMessage callMessage;
michael@0 269
michael@0 270 /**
michael@0 271 * The Optional maximum duration for the redial mechanism.
michael@0 272 * The time elapsed since the first call set-up attempt has exceeded the duration
michael@0 273 * requested by the UICC, the redial mechanism is terminated.
michael@0 274 */
michael@0 275 MozStkDuration duration;
michael@0 276 };
michael@0 277
michael@0 278 dictionary MozStkSetUpEventList
michael@0 279 {
michael@0 280 /**
michael@0 281 * The list of events that needs to provide details to ICC when they happen.
michael@0 282 * When this valus is null, means an indication to remove the existing list
michael@0 283 * of events in ME.
michael@0 284 *
michael@0 285 * @see nsIDOMMozIccManager.STK_EVENT_TYPE_*
michael@0 286 */
michael@0 287 sequence<unsigned short> eventList;
michael@0 288 };
michael@0 289
michael@0 290 dictionary MozStkLocationInfo
michael@0 291 {
michael@0 292 /**
michael@0 293 * Mobile Country Code (MCC) of the current serving operator.
michael@0 294 */
michael@0 295 unsigned short mcc;
michael@0 296
michael@0 297 /**
michael@0 298 * Mobile Network Code (MNC) of the current serving operator.
michael@0 299 */
michael@0 300 unsigned short mnc;
michael@0 301
michael@0 302 /**
michael@0 303 * Mobile Location Area Code (LAC) for the current serving operator.
michael@0 304 */
michael@0 305 unsigned short gsmLocationAreaCode;
michael@0 306
michael@0 307 /**
michael@0 308 * Mobile Cell ID for the current serving operator.
michael@0 309 */
michael@0 310 unsigned long gsmCellId;
michael@0 311 };
michael@0 312
michael@0 313 dictionary MozStkDuration
michael@0 314 {
michael@0 315 /**
michael@0 316 * Time unit used, should be one of STK_TIME_UNIT_*.
michael@0 317 */
michael@0 318 unsigned short timeUnit;
michael@0 319
michael@0 320 /**
michael@0 321 * The length of time required, expressed in timeUnit.
michael@0 322 */
michael@0 323 octet timeInterval;
michael@0 324 };
michael@0 325
michael@0 326 dictionary MozStkPlayTone
michael@0 327 {
michael@0 328 /**
michael@0 329 * Text String.
michael@0 330 */
michael@0 331 DOMString text;
michael@0 332
michael@0 333 /**
michael@0 334 * One of STK_TONE_TYPE_*.
michael@0 335 */
michael@0 336 unsigned short tone;
michael@0 337
michael@0 338 /**
michael@0 339 * The length of time for which the ME shall generate the tone.
michael@0 340 */
michael@0 341 MozStkDuration duration;
michael@0 342
michael@0 343 /**
michael@0 344 * Need to vibrate or not.
michael@0 345 * true: vibrate alert, if available, with the tone.
michael@0 346 * false: use of vibrate alert is up to the ME.
michael@0 347 */
michael@0 348 boolean isVibrate;
michael@0 349 };
michael@0 350
michael@0 351 dictionary MozStkProvideLocalInfo
michael@0 352 {
michael@0 353 /**
michael@0 354 * Indicate which local information is required.
michael@0 355 * It shall be one of following:
michael@0 356 * - nsIDOMMozIccManager.STK_LOCAL_INFO_LOCATION_INFO
michael@0 357 * - nsIDOMMozIccManager.STK_LOCAL_INFO_IMEI
michael@0 358 * - nsIDOMMozIccManager.STK_LOCAL_INFO_DATE_TIME_ZONE
michael@0 359 * - nsIDOMMozIccManager.STK_LOCAL_INFO_LANGUAGE
michael@0 360 */
michael@0 361 unsigned short localInfoType;
michael@0 362 };
michael@0 363
michael@0 364 dictionary MozStkLocationEvent
michael@0 365 {
michael@0 366 /**
michael@0 367 * The type of this event.
michael@0 368 * It shall be nsIDOMMozIccManager.STK_EVENT_TYPE_LOCATION_STATUS;
michael@0 369 */
michael@0 370 unsigned short eventType;
michael@0 371
michael@0 372 /**
michael@0 373 * Indicate current service state of the MS with one of the values listed
michael@0 374 * below:
michael@0 375 * - nsIDOMMozIccManager.STK_SERVICE_STATE_NORMAL
michael@0 376 * - nsIDOMMozIccManager.STK_SERVICE_STATE_LIMITED
michael@0 377 * - nsIDOMMozIccManager.STK_SERVICE_STATE_UNAVAILABLE
michael@0 378 */
michael@0 379 unsigned short locationStatus;
michael@0 380
michael@0 381 /**
michael@0 382 * See MozStkLocationInfo.
michael@0 383 * This value shall only be provided if the locationStatus indicates
michael@0 384 * 'STK_SERVICE_STATE_NORMAL'.
michael@0 385 */
michael@0 386 MozStkLocationInfo locationInfo;
michael@0 387 };
michael@0 388
michael@0 389 dictionary MozStkTimer
michael@0 390 {
michael@0 391 /**
michael@0 392 * Identifier of a timer.
michael@0 393 */
michael@0 394 octet timerId;
michael@0 395
michael@0 396 /**
michael@0 397 * Length of time during which the timer has to run.
michael@0 398 * The resolution of a timer is 1 second.
michael@0 399 */
michael@0 400 unsigned long timerValue;
michael@0 401
michael@0 402 /**
michael@0 403 * The action requested from UICC.
michael@0 404 * It shall be one of below:
michael@0 405 * - nsIDOMMozIccManager.STK_TIMER_START
michael@0 406 * - nsIDOMMozIccManager.STK_TIMER_DEACTIVATE
michael@0 407 * - nsIDOMMozIccManager.STK_TIMER_GET_CURRENT_VALUE
michael@0 408 */
michael@0 409 unsigned short timerAction;
michael@0 410 };
michael@0 411
michael@0 412 dictionary MozStkBipMessage
michael@0 413 {
michael@0 414 /**
michael@0 415 * Text String
michael@0 416 */
michael@0 417 DOMString text;
michael@0 418 };
michael@0 419
michael@0 420 dictionary MozStkCommand
michael@0 421 {
michael@0 422 /**
michael@0 423 * The number of command issued by ICC. And it is assigned
michael@0 424 * by ICC may take any hexadecimal value betweean '01' and 'FE'.
michael@0 425 *
michael@0 426 * @see TS 11.14, clause 6.5.1
michael@0 427 */
michael@0 428 unsigned short commandNumber;
michael@0 429
michael@0 430 /**
michael@0 431 * One of STK_CMD_*
michael@0 432 */
michael@0 433 unsigned short typeOfCommand;
michael@0 434
michael@0 435 /**
michael@0 436 * Qualifiers specific to the command.
michael@0 437 */
michael@0 438 unsigned short commandQualifier;
michael@0 439
michael@0 440 /**
michael@0 441 * options varies accrording to the typeOfCommand in MozStkCommand.
michael@0 442 *
michael@0 443 * When typeOfCommand is
michael@0 444 * - STK_CMD_DISPLAY_TEXT
michael@0 445 * - STK_CMD_SET_UP_IDLE_MODE_TEXT
michael@0 446 * - STK_CMD_SEND_{SS|USSD|SMS|DTMF},
michael@0 447 * options is MozStkTextMessage.
michael@0 448 *
michael@0 449 * When typeOfCommand is
michael@0 450 * - STK_CMD_SELECT_ITEM
michael@0 451 * - STK_CMD_SET_UP_MENU
michael@0 452 * options is MozStkMenu.
michael@0 453 *
michael@0 454 * When typeOfCommand is
michael@0 455 * - STK_CMD_GET_INKEY
michael@0 456 * - STK_CMD_GET_INPUT,
michael@0 457 * options is MozStkInput.
michael@0 458 *
michael@0 459 * When typeOfCommand is
michael@0 460 * - STK_CMD_LAUNCH_BROWSER
michael@0 461 * options is MozStkBrowserSetting.
michael@0 462 *
michael@0 463 * When typeOfCommand is
michael@0 464 * - STK_CMD_SET_UP_CALL
michael@0 465 * options is MozStkSetUpCall.
michael@0 466 *
michael@0 467 * When typeOfCommand is
michael@0 468 * - STK_CMD_SET_UP_EVENT_LIST
michael@0 469 * options is MozStkSetUpEventList.
michael@0 470 *
michael@0 471 * When typeOfCommand is
michael@0 472 * - STK_CMD_PLAY_TONE
michael@0 473 * options is MozStkPlayTone.
michael@0 474 *
michael@0 475 * When typeOfCommand is
michael@0 476 * - STK_CMD_POLL_INTERVAL
michael@0 477 * options is MozStkDuration.
michael@0 478 *
michael@0 479 * When typeOfCommand is
michael@0 480 * - STK_CMD_PROVIDE_LOCAL_INFO
michael@0 481 * options is MozStkProvideLocalInfo.
michael@0 482 *
michael@0 483 * When typeOfCommand is
michael@0 484 * - STK_CMD_TIMER_MANAGEMENT
michael@0 485 * option is MozStkTimer
michael@0 486 *
michael@0 487 * When typeOfCommand is
michael@0 488 * - STK_CMD_OPEN_CHANNEL
michael@0 489 * - STK_CMD_CLOSE_CHANNEL
michael@0 490 * - STK_CMD_SEND_DATA
michael@0 491 * - STK_CMD_RECEIVE_DATA
michael@0 492 * options is MozStkBipMessage
michael@0 493 *
michael@0 494 * When typeOfCommand is
michael@0 495 * - STK_CMD_POLL_OFF
michael@0 496 * options is null.
michael@0 497 *
michael@0 498 * When typeOfCommand is
michael@0 499 * - STK_CMD_REFRESH
michael@0 500 * options is null.
michael@0 501 */
michael@0 502 any options;
michael@0 503 };
michael@0 504
michael@0 505 dictionary MozStkResponse
michael@0 506 {
michael@0 507 /**
michael@0 508 * One of RESULT_*
michael@0 509 */
michael@0 510 unsigned short resultCode;
michael@0 511
michael@0 512 /**
michael@0 513 * The identifier of the item selected by user.
michael@0 514 *
michael@0 515 * @see MozStkItem.identifier
michael@0 516 */
michael@0 517 unsigned short itemIdentifier;
michael@0 518
michael@0 519 /**
michael@0 520 * User input.
michael@0 521 */
michael@0 522 DOMString input;
michael@0 523
michael@0 524 /**
michael@0 525 * YES/NO response.
michael@0 526 *
michael@0 527 * @see MozStkInput.isYesNoRequested
michael@0 528 */
michael@0 529 boolean isYesNo;
michael@0 530
michael@0 531 /**
michael@0 532 * User has confirmed or rejected the call during STK_CMD_CALL_SET_UP.
michael@0 533 *
michael@0 534 * @see RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM
michael@0 535 *
michael@0 536 * true: Confirmed by User.
michael@0 537 * false: Rejected by User.
michael@0 538 */
michael@0 539 boolean hasConfirmed;
michael@0 540
michael@0 541 /**
michael@0 542 * The response for STK_CMD_PROVIDE_LOCAL_INFO
michael@0 543 */
michael@0 544 MozStkLocalInfo localInfo;
michael@0 545
michael@0 546 /**
michael@0 547 * The response for STK_CMD_TIMER_MANAGEMENT.
michael@0 548 * The 'timerValue' is needed if the action of STK_CMD_TIMER_MANAGEMENT is
michael@0 549 * 'STK_TIMER_DEACTIVATE' or 'STK_TIMER_GET_CURRENT_VALUE'. It shall state
michael@0 550 * the current value of a timer. And the resolution is 1 second.
michael@0 551 */
michael@0 552 MozStkTimer timer;
michael@0 553 };
michael@0 554
michael@0 555 dictionary MozStkCallEvent
michael@0 556 {
michael@0 557 /**
michael@0 558 * The type of this event.
michael@0 559 * It shall be one of following:
michael@0 560 * - nsIDOMMozIccManager.STK_EVENT_TYPE_MT_CALL,
michael@0 561 * - nsIDOMMozIccManager.STK_EVENT_TYPE_CALL_CONNECTED,
michael@0 562 * - nsIDOMMozIccManager.STK_EVENT_TYPE_CALL_DISCONNECTED.
michael@0 563 */
michael@0 564 unsigned short eventType;
michael@0 565
michael@0 566 /**
michael@0 567 * Remote party number.
michael@0 568 */
michael@0 569 DOMString number;
michael@0 570
michael@0 571 /**
michael@0 572 * This field is available in 'STK_EVENT_TYPE_CALL_CONNECTED' and
michael@0 573 * 'STK_EVENT_TYPE_CALL_DISCONNECTED' events.
michael@0 574 * For the STK_EVENT_TYPE_CALL_CONNECTED event, setting this to true means the
michael@0 575 * connection is answered by remote end, that is, this is an outgoing call.
michael@0 576 * For the STK_EVENT_TYPE_CALL_DISCONNECTED event, setting this to true
michael@0 577 * indicates the connection is hung up by remote.
michael@0 578 */
michael@0 579 boolean isIssuedByRemote;
michael@0 580
michael@0 581 /**
michael@0 582 * This field is available in Call Disconnected event to indicate the cause
michael@0 583 * of disconnection. The cause string is passed to gaia through the error
michael@0 584 * listener of nsIDOMCallEvent. Null if there's no error.
michael@0 585 */
michael@0 586 DOMString error;
michael@0 587 };
michael@0 588
michael@0 589 dictionary MozStkLocalInfo
michael@0 590 {
michael@0 591 /**
michael@0 592 * IMEI information
michael@0 593 */
michael@0 594 DOMString imei;
michael@0 595
michael@0 596 /**
michael@0 597 * Location Information
michael@0 598 */
michael@0 599 MozStkLocationInfo locationInfo;
michael@0 600
michael@0 601 /**
michael@0 602 * Date information
michael@0 603 */
michael@0 604 Date date;
michael@0 605
michael@0 606 /**
michael@0 607 * Language Information
michael@0 608 *
michael@0 609 * @see ISO 639-1, Alpha-2 code
michael@0 610 */
michael@0 611 DOMString language;
michael@0 612 };
michael@0 613
michael@0 614 dictionary MozStkLanguageSelectionEvent
michael@0 615 {
michael@0 616 /**
michael@0 617 * The type of this event.
michael@0 618 * It shall be nsIDOMMozIccManager.STK_EVENT_TYPE_LANGUAGE_SELECTION.
michael@0 619 */
michael@0 620 unsigned short eventType;
michael@0 621
michael@0 622 /**
michael@0 623 * Language Information
michael@0 624 *
michael@0 625 * @see ISO 639-1, Alpha-2 code
michael@0 626 * "de" for German, "en" for English, "zh" for Chinese, etc.
michael@0 627 */
michael@0 628 DOMString language;
michael@0 629 };
michael@0 630
michael@0 631 dictionary MozStkBrowserTerminationEvent
michael@0 632 {
michael@0 633 /**
michael@0 634 * The type of this event.
michael@0 635 * It shall be nsIDOMMozIccManager.STK_EVENT_TYPE_BROWSER_TERMINATION
michael@0 636 */
michael@0 637 unsigned short eventType;
michael@0 638
michael@0 639 /**
michael@0 640 * This object shall contain the browser termination cause.
michael@0 641 * See TZ 102 223 8.51. It shall be one of following:
michael@0 642 * - nsIDOMMozIccManager.STK_BROWSER_TERMINATION_CAUSE_USER
michael@0 643 * - nsIDOMMozIccManager.STK_BROWSER_TERMINATION_CAUSE_ERROR
michael@0 644 */
michael@0 645 unsigned short terminationCause;
michael@0 646 };
michael@0 647
michael@0 648 dictionary MozStkGeneralEvent
michael@0 649 {
michael@0 650 /**
michael@0 651 * The type of this event, MozStkGeneralEvent can be used for all Stk Event
michael@0 652 * requires no more parameter than event type, including
michael@0 653 * nsIDOMMozIccManager.STK_EVENT_TYPE_USER_ACTIVITY.
michael@0 654 * nsIDOMMozIccManager.STK_EVENT_TYPE_IDLE_SCREEN_AVAILABLE.
michael@0 655 * HCI Connectivity Event(Not defined in interface yet).
michael@0 656 */
michael@0 657 unsigned short eventType;
michael@0 658 };

mercurial