WebAPI/WebSTK: Difference between revisions

Line 555: Line 555:
For simplicity, constants are listed here.
For simplicity, constants are listed here.
<pre>
<pre>
/**
partial interface nsIDOMMozIccManager : nsIDOMEventTarget
* STK Proactive commands.
*
* @see TS 11.14, clause 13.4
*/
partial interface nsIDOMMozStkCommand : nsISupports
{
{
  /**
  * STK Menu Presentation types.
  */
  const unsigned short STK_MENU_TYPE_NOT_SPECIFIED      = 0x00;
  const unsigned short STK_MENU_TYPE_DATA_VALUES        = 0x01;
  const unsigned short STK_MENU_TYPE_NAVIGATION_OPTIONS = 0x03;
  /**
  * Browser launch mode.
  */
  const unsigned short STK_BROWSER_MODE_LAUNCH_IF_NOT_ALREADY_LAUNCHED = 0x00;
  const unsigned short STK_BROWSER_MODE_USING_EXISTING_BROWSER        = 0x02;
  const unsigned short STK_BROWSER_MODE_USING_NEW_BROWSER              = 0x03;
   /**
   /**
   * STK Proactive commands.
   * STK Proactive commands.
Line 567: Line 576:
   * @see TS 11.14, clause 13.4
   * @see TS 11.14, clause 13.4
   */
   */
   const unsigned short CMD_REFRESH               = 0x01;
   const unsigned short STK_CMD_REFRESH               = 0x01;
   const unsigned short CMD_SET_UP_CALL           = 0x10;
   const unsigned short STK_CMD_SET_UP_CALL           = 0x10;
   const unsigned short CMD_SEND_SS               = 0x11;
   const unsigned short STK_CMD_SEND_SS               = 0x11;
   const unsigned short CMD_SEND_USSD             = 0x12;
   const unsigned short STK_CMD_SEND_USSD             = 0x12;
   const unsigned short CMD_SEND_SMS             = 0x13;
   const unsigned short STK_CMD_SEND_SMS             = 0x13;
   const unsigned short CMD_SEND_DTMF             = 0x14;
   const unsigned short STK_CMD_SEND_DTMF             = 0x14;
   const unsigned short CMD_LAUNCH_BROWSER       = 0x15;
   const unsigned short STK_CMD_LAUNCH_BROWSER       = 0x15;
   const unsigned short CMD_DISPLAY_TEXT         = 0x21;
   const unsigned short STK_CMD_DISPLAY_TEXT         = 0x21;
   const unsigned short CMD_GET_INKEY             = 0x22;
   const unsigned short STK_CMD_GET_INKEY             = 0x22;
   const unsigned short CMD_GET_INPUT             = 0x23;
   const unsigned short STK_CMD_GET_INPUT             = 0x23;
   const unsigned short CMD_SELECT_ITEM           = 0x24;
   const unsigned short STK_CMD_SELECT_ITEM           = 0x24;
   const unsigned short CMD_SET_UP_MENU           = 0x25;
   const unsigned short STK_CMD_SET_UP_MENU           = 0x25;
   const unsigned short CMD_SET_UP_IDLE_MODE_TEXT = 0x28;
   const unsigned short STK_CMD_SET_UP_IDLE_MODE_TEXT = 0x28;
}


/**
* STK Result code.
*
* @see TS 11.14, clause 12.12
*/
partial interface nsIDOMMozStkResponse : nsISupports
{
   /**
   /**
   * STK Result code.
   * STK Result code.
   *
   *
   * @see TS 11.14, clause 12.12
   * @see TS 11.14, clause 12.12
   */
   *
 
  /**
   * Results '0X' and '1X' indicate that the command has been performed.
   * Results '0X' and '1X' indicate that the command has been performed.
   */
   */
   /** Command performed successfully */
   /** Command performed successfully */
   const unsigned short RESULT_OK                               = 0x00;
   const unsigned short STK_RESULT_OK                               = 0x00;


   /** Command performed with partial comprehension */
   /** Command performed with partial comprehension */
   const unsigned short RESULT_PRFRMD_WITH_PARTIAL_COMPREHENSION = 0x01;
   const unsigned short STK_RESULT_PRFRMD_WITH_PARTIAL_COMPREHENSION = 0x01;


   /** Command performed, with missing information */
   /** Command performed, with missing information */
   const unsigned short RESULT_PRFRMD_WITH_MISSING_INFO         = 0x02;
   const unsigned short STK_RESULT_PRFRMD_WITH_MISSING_INFO         = 0x02;


   /** REFRESH performed with additional EFs read */
   /** REFRESH performed with additional EFs read */
   const unsigned short RESULT_PRFRMD_WITH_ADDITIONAL_EFS_READ   = 0x03;
   const unsigned short STK_RESULT_PRFRMD_WITH_ADDITIONAL_EFS_READ   = 0x03;


   /** Command performed successfully, limited service */
   /** Command performed successfully, limited service */
   const unsigned short RESULT_PRFRMD_LIMITED_SERVICE           = 0x06;
   const unsigned short STK_RESULT_PRFRMD_LIMITED_SERVICE           = 0x06;


   /** Proactive UICC session terminated by the user */
   /** Proactive UICC session terminated by the user */
   const unsigned short RESULT_UICC_SESSION_TERM_BY_USER         = 0x10;
   const unsigned short STK_RESULT_UICC_SESSION_TERM_BY_USER         = 0x10;


   /** Backward move in the proactive UICC session requested by the user */
   /** Backward move in the proactive UICC session requested by the user */
   const unsigned short RESULT_BACKWARD_MOVE_BY_USER             = 0x11;
   const unsigned short STK_RESULT_BACKWARD_MOVE_BY_USER             = 0x11;


   /** No response from user */
   /** No response from user */
   const unsigned short RESULT_NO_RESPONSE_FROM_USER             = 0x12;
   const unsigned short STK_RESULT_NO_RESPONSE_FROM_USER             = 0x12;


   /** Help information required by the user */
   /** Help information required by the user */
   const unsigned short RESULT_HELP_INFO_REQUIRED               = 0x13;
   const unsigned short STK_RESULT_HELP_INFO_REQUIRED               = 0x13;


   /** USSD or SS transaction terminated by the user */
   /** USSD or SS transaction terminated by the user */
   const unsigned short RESULT_USSD_SS_SESSION_TERM_BY_USER     = 0x14;
   const unsigned short STK_RESULT_USSD_SS_SESSION_TERM_BY_USER     = 0x14;


   /**
   /**
Line 633: Line 632:
   */
   */
   /** Terminal currently unable to process command */
   /** Terminal currently unable to process command */
   const unsigned short RESULT_TERMINAL_CRNTLY_UNABLE_TO_PROCESS = 0x20;
   const unsigned short STK_RESULT_TERMINAL_CRNTLY_UNABLE_TO_PROCESS = 0x20;


   /** Network currently unable to process command */
   /** Network currently unable to process command */
   const unsigned short RESULT_NETWORK_CRNTLY_UNABLE_TO_PROCESS = 0x21;
   const unsigned short STK_RESULT_NETWORK_CRNTLY_UNABLE_TO_PROCESS = 0x21;


   /** User did not accept the proactive command */
   /** User did not accept the proactive command */
   const unsigned short RESULT_USER_NOT_ACCEPT                   = 0x22;
   const unsigned short STK_RESULT_USER_NOT_ACCEPT                   = 0x22;


   /** User cleared down call before connection or network release */
   /** User cleared down call before connection or network release */
   const unsigned short RESULT_USER_CLEAR_DOWN_CALL             = 0x23;
   const unsigned short STK_RESULT_USER_CLEAR_DOWN_CALL             = 0x23;


   /** Launch browser generic error code */
   /** Launch browser generic error code */
   const unsigned short RESULT_LAUNCH_BROWSER_ERROR             = 0x26;
   const unsigned short STK_RESULT_LAUNCH_BROWSER_ERROR             = 0x26;


   /**
   /**
Line 653: Line 652:
   */
   */
   /** Command beyond terminal's capabilities */
   /** Command beyond terminal's capabilities */
   const unsigned short RESULT_BEYOND_TERMINAL_CAPABILITY       = 0x30;
   const unsigned short STK_RESULT_BEYOND_TERMINAL_CAPABILITY       = 0x30;
 
 
   /** Command type not understood by terminal */
   /** Command type not understood by terminal */
   const unsigned short RESULT_CMD_TYPE_NOT_UNDERSTOOD           = 0x31;
   const unsigned short STK_RESULT_CMD_TYPE_NOT_UNDERSTOOD           = 0x31;


   /** Command data not understood by terminal */
   /** Command data not understood by terminal */
   const unsigned short RESULT_CMD_DATA_NOT_UNDERSTOOD           = 0x32;
   const unsigned short STK_RESULT_CMD_DATA_NOT_UNDERSTOOD           = 0x32;


   /** Command number not known by terminal */
   /** Command number not known by terminal */
   const unsigned short RESULT_CMD_NUM_NOT_KNOWN                 = 0x33;
   const unsigned short STK_RESULT_CMD_NUM_NOT_KNOWN                 = 0x33;


   /** SS Return Error */
   /** SS Return Error */
   const unsigned short RESULT_SS_RETURN_ERROR                   = 0x34;
   const unsigned short STK_RESULT_SS_RETURN_ERROR                   = 0x34;


   /** SMS RP-ERROR */
   /** SMS RP-ERROR */
   const unsigned short RESULT_SMS_RP_ERROR                     = 0x35;
   const unsigned short STK_RESULT_SMS_RP_ERROR                     = 0x35;


   /** Error, required values are missing */
   /** Error, required values are missing */
   const unsigned short RESULT_REQUIRED_VALUES_MISSING           = 0x36;
   const unsigned short STK_RESULT_REQUIRED_VALUES_MISSING           = 0x36;


   /** USSD Return Error */
   /** USSD Return Error */
   const unsigned short RESULT_USSD_RETURN_ERROR                 = 0x37;
   const unsigned short STK_RESULT_USSD_RETURN_ERROR                 = 0x37;


   /** MultipleCard commands error */
   /** MultipleCard commands error */
   const unsigned short RESULT_MULTI_CARDS_CMD_ERROR             = 0x38;
   const unsigned short STK_RESULT_MULTI_CARDS_CMD_ERROR             = 0x38;


   /**
   /**
Line 683: Line 682:
   * USIM, permanent problem
   * USIM, permanent problem
   */
   */
   const unsigned short RESULT_USIM_CALL_CONTROL_PERMANENT       = 0x39;
   const unsigned short STK_RESULT_USIM_CALL_CONTROL_PERMANENT       = 0x39;


   /** Bearer Independent Protocol error */
   /** Bearer Independent Protocol error */
   const unsigned short RESULT_BIP_ERROR                         = 0x3a;
   const unsigned short STK_RESULT_BIP_ERROR                         = 0x3a;
};
};
</pre>
</pre>
Confirmed users
266

edits