mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 790547 - Part 1: IDL for sendEventDownload. r=philikon sr=sicking
This commit is contained in:
parent
28d0d02c6e
commit
b9a3cdedc7
@ -255,6 +255,54 @@ dictionary MozStkSetUpEventList
|
||||
jsval eventList; // unsigned short []
|
||||
};
|
||||
|
||||
dictionary MozStkLocationInfo
|
||||
{
|
||||
/**
|
||||
* Mobile Country Code (MCC) of the current serving operator.
|
||||
*/
|
||||
unsigned short mcc;
|
||||
|
||||
/**
|
||||
* Mobile Network Code (MNC) of the current serving operator.
|
||||
*/
|
||||
unsigned short mnc;
|
||||
|
||||
/**
|
||||
* Mobile Location Area Code (LAC) for the current serving operator.
|
||||
*/
|
||||
unsigned short gsmLocationAreaCode;
|
||||
|
||||
/**
|
||||
* Mobile Cell ID for the current serving operator.
|
||||
*/
|
||||
unsigned long gsmCellId;
|
||||
};
|
||||
|
||||
dictionary MozStkLocationEvent
|
||||
{
|
||||
/**
|
||||
* The type of this event.
|
||||
* It shall be nsIDOMMozIccManager.STK_EVENT_TYPE_LOCATION_STATUS;
|
||||
*/
|
||||
unsigned short eventType;
|
||||
|
||||
/**
|
||||
* Indicate current service state of the MS with one of the values listed
|
||||
* below:
|
||||
* - nsIDOMMozIccManager.STK_SERVICE_STATE_NORMAL
|
||||
* - nsIDOMMozIccManager.STK_SERVICE_STATE_LIMITED
|
||||
* - nsIDOMMozIccManager.STK_SERVICE_STATE_UNAVAILABLE
|
||||
*/
|
||||
unsigned short locationStatus;
|
||||
|
||||
/**
|
||||
* See MozStkLocationInfo.
|
||||
* This value shall only be provided if the locationStatus indicates
|
||||
* 'STK_SERVICE_STATE_NORMAL'.
|
||||
*/
|
||||
jsval locationInfo;
|
||||
};
|
||||
|
||||
dictionary MozStkCommand
|
||||
{
|
||||
/**
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
interface nsIDOMEventListener;
|
||||
|
||||
[scriptable, builtinclass, uuid(2eace3f9-6aa4-491b-820e-7d69ce7b3f02)]
|
||||
[scriptable, builtinclass, uuid(b45c3873-88bd-4ae9-9c9b-10ee58ca5389)]
|
||||
interface nsIDOMMozIccManager : nsIDOMEventTarget
|
||||
{
|
||||
/**
|
||||
@ -162,6 +162,13 @@ interface nsIDOMMozIccManager : nsIDOMEventTarget
|
||||
const unsigned short STK_EVENT_TYPE_BROWSING_STATUS = 0x0f;
|
||||
const unsigned short STK_EVENT_TYPE_FRAMES_INFORMATION_CHANGED = 0x10;
|
||||
|
||||
/**
|
||||
* The service state of STK Location Status.
|
||||
*/
|
||||
const unsigned short STK_SERVICE_STATE_NORMAL = 0x00;
|
||||
const unsigned short STK_SERVICE_STATE_LIMITED = 0x01;
|
||||
const unsigned short STK_SERVICE_STATE_UNAVAILABLE = 0x02;
|
||||
|
||||
/**
|
||||
* Send the response back to ICC after an attempt to execute STK Proactive
|
||||
* Command.
|
||||
@ -185,6 +192,16 @@ interface nsIDOMMozIccManager : nsIDOMEventTarget
|
||||
void sendStkMenuSelection(in unsigned short itemIdentifier,
|
||||
in boolean helpRequested);
|
||||
|
||||
/**
|
||||
* Send "Event Download" Envelope command to ICC.
|
||||
* ICC will not respond with any data for this command.
|
||||
*
|
||||
* @param event
|
||||
* one of events below:
|
||||
* - MozStkLocationEvent
|
||||
*/
|
||||
void sendStkEventDownload(in jsval event);
|
||||
|
||||
/**
|
||||
* The 'stkcommand' event is notified whenever STK Proactive Command is
|
||||
* issued from ICC.
|
||||
|
@ -14,7 +14,7 @@ interface nsIDOMWindow;
|
||||
* XPCOM component (in the content process) that provides the mobile
|
||||
* network information.
|
||||
*/
|
||||
[scriptable, uuid(63787ba1-5091-450b-8810-d321a8b4f77a)]
|
||||
[scriptable, uuid(bc1a82aa-2a1f-4a27-a5e7-614d06b72e0a)]
|
||||
interface nsIMobileConnectionProvider : nsISupports
|
||||
{
|
||||
readonly attribute DOMString cardState;
|
||||
@ -40,4 +40,6 @@ interface nsIMobileConnectionProvider : nsISupports
|
||||
void sendStkMenuSelection(in nsIDOMWindow window,
|
||||
in unsigned short itemIdentifier,
|
||||
in boolean helpRequested);
|
||||
void sendStkEventDownload(in nsIDOMWindow window,
|
||||
in jsval event);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user