mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 869769 - [B2G][CDMA] Set and Query the preferred voice mode in CDMA. part1 - idl. sr=smaug, r=vicamo
This commit is contained in:
parent
61caac7290
commit
c8fc140cc8
@ -11,7 +11,7 @@ interface nsIDOMMozMobileNetworkInfo;
|
||||
interface nsIDOMMozMobileCellInfo;
|
||||
interface nsIDOMMozMobileCFInfo;
|
||||
|
||||
[scriptable, builtinclass, uuid(35fbab20-ee07-454d-943d-090a9378f5cf)]
|
||||
[scriptable, builtinclass, uuid(8284af62-c39d-4a59-b258-107040040418)]
|
||||
interface nsIDOMMozMobileConnection : nsIDOMEventTarget
|
||||
{
|
||||
const long ICC_SERVICE_CLASS_VOICE = (1 << 0);
|
||||
@ -146,6 +146,34 @@ interface nsIDOMMozMobileConnection : nsIDOMEventTarget
|
||||
*/
|
||||
nsIDOMDOMRequest getRoamingPreference();
|
||||
|
||||
/**
|
||||
* Set voice privacy preference.
|
||||
*
|
||||
* @param enabled
|
||||
* Boolean indicates the preferred voice privacy mode used in voice
|
||||
* scrambling in CDMA networks. 'True' means the enhanced voice security
|
||||
* is required.
|
||||
*
|
||||
* If successful, the request's onsuccess will be called.
|
||||
*
|
||||
* Otherwise, the request's onerror will be called, and the request's error
|
||||
* will be either 'RadioNotAvailable', 'RequestNotSupported',
|
||||
* 'IllegalSIMorME', 'InvalidParameter', or 'GenericFailure'
|
||||
*/
|
||||
nsIDOMDOMRequest setVoicePrivacyMode(in bool enabled);
|
||||
|
||||
/**
|
||||
* Query current voice privacy mode.
|
||||
*
|
||||
* If successful, the request's onsuccess will be called. And the request's
|
||||
* result will be a boolean indicating the current voice privacy mode.
|
||||
*
|
||||
* Otherwise, the request's onerror will be called, and the request's error
|
||||
* will be either 'RadioNotAvailable', 'RequestNotSupported',
|
||||
* 'IllegalSIMorME', or 'GenericFailure'
|
||||
*/
|
||||
nsIDOMDOMRequest getVoicePrivacyMode();
|
||||
|
||||
/**
|
||||
* Send a MMI message.
|
||||
*
|
||||
|
@ -32,7 +32,7 @@ interface nsIMobileConnectionListener : nsISupports
|
||||
* XPCOM component (in the content process) that provides the mobile
|
||||
* network information.
|
||||
*/
|
||||
[scriptable, uuid(a16681a5-a7f1-4340-a478-e0326a49e988)]
|
||||
[scriptable, uuid(576c7c00-7319-4309-aa9e-1dab102e0874)]
|
||||
interface nsIMobileConnectionProvider : nsISupports
|
||||
{
|
||||
/**
|
||||
@ -55,6 +55,10 @@ interface nsIMobileConnectionProvider : nsISupports
|
||||
in DOMString mode);
|
||||
nsIDOMDOMRequest getRoamingPreference(in nsIDOMWindow window);
|
||||
|
||||
nsIDOMDOMRequest setVoicePrivacyMode(in nsIDOMWindow window,
|
||||
in bool enabled);
|
||||
nsIDOMDOMRequest getVoicePrivacyMode(in nsIDOMWindow window);
|
||||
|
||||
nsIDOMDOMRequest sendMMI(in nsIDOMWindow window, in DOMString mmi);
|
||||
nsIDOMDOMRequest cancelMMI(in nsIDOMWindow window);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user