mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 963516 - Part 1: interface changes to support matchMvno(). f=edgar r=hsinyi
This commit is contained in:
parent
fd07c2866c
commit
516d851d27
@ -8,7 +8,7 @@ interface nsIDOMDOMRequest;
|
||||
interface nsIDOMMozIccInfo;
|
||||
interface nsIDOMWindow;
|
||||
|
||||
[scriptable, uuid(87e9ad03-e8e2-40d1-bf28-a6d287c31b93)]
|
||||
[scriptable, uuid(7c0ada3d-d8d4-493e-9243-fa3df39855e4)]
|
||||
interface nsIIccListener : nsISupports
|
||||
{
|
||||
void notifyStkCommand(in DOMString aMessage);
|
||||
@ -103,4 +103,12 @@ interface nsIIccProvider : nsISupports
|
||||
nsIDOMDOMRequest iccCloseChannel(in unsigned long clientId,
|
||||
in nsIDOMWindow window,
|
||||
in long channel);
|
||||
|
||||
/**
|
||||
* Helpers
|
||||
*/
|
||||
nsIDOMDOMRequest matchMvno(in unsigned long clientId,
|
||||
in nsIDOMWindow window,
|
||||
in DOMString mvnoType,
|
||||
in DOMString mvnoData);
|
||||
};
|
||||
|
@ -365,4 +365,26 @@ interface MozIcc : EventTarget
|
||||
*/
|
||||
[Throws]
|
||||
nsISupports iccCloseChannel(long channel);
|
||||
|
||||
// Integrated Circuit Card Helpers.
|
||||
|
||||
/**
|
||||
* Verify whether the passed data (matchData) matches with some ICC's field
|
||||
* according to the mvno type (mvnoType).
|
||||
*
|
||||
* @param mvnoType
|
||||
* Mvno type to use to compare the match data.
|
||||
* Currently, we only support 'imsi'.
|
||||
* @param matchData
|
||||
* Data to be compared with ICC's field.
|
||||
*
|
||||
* @return a DOMRequest.
|
||||
* The request's result will be a boolean indicating the matching
|
||||
* result.
|
||||
*
|
||||
* TODO: change param mvnoType to WebIDL enum after Bug 864489 -
|
||||
* B2G RIL: use ipdl as IPC in MozIccManager
|
||||
*/
|
||||
[Throws]
|
||||
nsISupports matchMvno(DOMString mvnoType, DOMString matchData);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user