dom/cellbroadcast/interfaces/nsIDOMMozCellBroadcastMessage.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #include "nsISupports.idl"
     7 interface nsIDOMMozCellBroadcastEtwsInfo;
     9 /**
    10  * MozCellBroadcastMessage encapsulates Cell Broadcast short message service
    11  * (CBS) messages.
    12  */
    13 [scriptable, uuid(6abe65de-6729-41f7-906a-3f3a2dbe30ae)]
    14 interface nsIDOMMozCellBroadcastMessage : nsISupports
    15 {
    16   /**
    17    * Indication of the geographical area over which the Message Code is unique,
    18    * and the display mode.
    19    *
    20    * Possible values are: "cell-immediate", "plmn", "location-area" and "cell".
    21    */
    22   readonly attribute DOMString gsmGeographicalScope;
    24   /**
    25    * The Message Code differentiates between messages from the same source and
    26    * type (e.g., with the same Message Identifier).
    27    */
    28   readonly attribute unsigned short messageCode;
    30   /**
    31    * Source and type of the message. For example, "Automotive Association"
    32    * (= source), "Traffic Reports" (= type) could correspond to one value. The
    33    * Message Identifier is coded in binary.
    34    */
    35   readonly attribute unsigned short messageId;
    37   /**
    38    * ISO-639-1 language code for this message. Null if unspecified.
    39    */
    40   readonly attribute DOMString language;
    42   /**
    43    * Text message carried by the message.
    44    */
    45   readonly attribute DOMString body;
    47   /**
    48    * Possible values are "normal", "class-0", "class-1", "class-2", "class-3",
    49    * "user-1", and "user-2".
    50    */
    51   readonly attribute DOMString messageClass;
    53   /**
    54    * System time stamp at receival.
    55    */
    56   readonly attribute jsval timestamp; // jsval is for Date.
    58   /**
    59    * Additional ETWS-specific info.
    60    */
    61   readonly attribute nsIDOMMozCellBroadcastEtwsInfo etws;
    63   /**
    64    * Service Category.
    65    */
    66   readonly attribute long cdmaServiceCategory;
    67 };
    69 /**
    70  * ETWS (Earthquake and Tsunami Warning service) Primary Notification message
    71  * specific information.
    72  */
    73 [scriptable, uuid(af009d9a-f5e8-4573-a6ee-a85118465bed)]
    74 interface nsIDOMMozCellBroadcastEtwsInfo : nsISupports
    75 {
    76   /**
    77    * Warning type. Possible values are "earthquake", "tsunami",
    78    * "earthquake-tsunami", "test" and "other".
    79    */
    80   readonly attribute ACString warningType;
    82   /**
    83    * Emergency user alert indication. It is used to command mobile terminals to
    84    * activate emergency user alert upon the reception of ETWS primary
    85    * notification.
    86    */
    87   readonly attribute boolean emergencyUserAlert;
    89   /**
    90    * Message popup indication. It is used to command mobile terminals to
    91    * activate message popup upon the reception of ETWS primary notification.
    92    */
    93   readonly attribute boolean popup;
    94 };

mercurial