mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
7edec4880a
- Bug 859764 - Part 5: Changes in Test Cases. r=echen (f1a5cd4fd3) - Bug 859764 - Part 6: Changes in Payment. r=ferjm, r=smaug (2b47641375) - Bug 1010756 - Helpful errors for using nsCOMPtr on non-XPCOM types; r=froydnj (6b1521c482) - leftover (e1a24351e9) - Bug 1192102 - Remove unused file embedded/android/GeckoSmsManager.java. r=blassey (ac05ae649d) - var-let (8ddb529f96) - Bug 1181466 - Fix observe function in SmsService/MmsService. r=btseng (ca93122404) - Bug 733331 - Part 2: Update enabledGsmTableTuples when MCC changes in SmsService.js and fix segmentChars in SmsSegmentHelper.jsm. r=btseng (24fa23e4be) - Bug 1173156 - Fix typo and add a Marionette test case. r=btseng (e7199eb55a) - Bug 1132774 - [B2G][SMS] Enable DEBUG Flag in SmsService if the default value of "ril.debugging.enabled" is true. r=btseng (7300d24fb7) - Bug 1169160 - [MobileConnection] Support more call barring program: all service, outgoing service and incoming service. r=hsinyi,aknow (872c2cc056) - Bug 1169225 - [MobileConnectionService] Support setting/getting call waiting on all serviceClass. r=aknow (14c546a9ca) - Bug 1110619 - Part 1: IDL Interface Changes. r=echen (beae2b4b77) - Bug 1168064 - B2G RIL: filter out cell info with unknown values. r=echen (11dfc5a7e8) - Bug 1159591 - Part 2: Move MMI logic from ril_worker to telephonyService (Call Forwarding). r=aknow (b4edb76863) - Bug 1159591 - Part 3: Move MMI logic from ril_worker to telephonyService (Icc Lock). r=aknow (3faba76808) - Bug 1138263 - Make TelephonyService.js JSHint friendly. r=hsinyi (454bd4c765) - Bug 1159591 - Part 4: Move MMI logic from ril_worker to telephonyService (IMEI). r=aknow (57f423ecdd) - Bug 1159591 - Part 5: Move MMI logic from ril_worker to telephonyService (CLIP). r=aknow (c6611dbcb8) - Bug 1159591 - Part 6: Move MMI logic from ril_worker to telephonyService (CLIR). r=aknow (8c1fc03edb) - Bug 1159591 - Part 7: Move MMI logic from ril_worker to telephonyService (Call Barring Password). r=aknow (5d8bcbf177) - Bug 1159591 - Part 8: Move MMI logic from ril_worker to telephonyService (Call Barring). r=aknow (aa0b89aea1) - Bug 1159591 - Part 9: Move MMI logic from ril_worker to telephonyService (Call Waiting). r=aknow (1d14d2b864) - Bug 1159591 - Part 10: Move MMI logic from ril_worker to telephonyService (USSD). r=aknow (c92130b5b2) - Bug 1159591 - Part 11: Move MMI consts from ril_consts to telephonyService. r=aknow (0e7b3fea9a) - Bug 1159591 - Part 12: Move radio check for MMI to a common place. r=aknow (dcdc3178ad) - Bug 1110619 - Part 2: Implementation Changes. r=echen (6d8e78d684) - Bug 1110619 - Part 3: Bluetooth Changes. r=btian (9787727be0) - Bug 1147736 - Part 1: Extend TelephonyCallInfo. r=aknow (2a426cc99f) - Bug 1147736 - Part 2: Bypass NotifyError. r=aknow (6cd6fd6867) - Bug 1147736 - Part 3: Deprecate NotifyError. r=aknow (e41c719442) - Bug 1147736 - Part 4: Deprecate NotifyError(Bluetooth). r=btian (9c8f97bb22) - Bug 1204817 - Delete the child property of a parent call only when the parent call exists. r=btseng (d35dc6b08f) - Bug 1191205 - Cancel USSD sessions only when needed. r=edgar (01a72dbacb) - Bug 1200134 - Control USSD Sessions with State-Transitions instead of Boolean. r=echen (a4e55b3d9d) - Bug 1163511 - Use defineLazyModuleGetter. r=hsinyi (8a97a4912c) - Bug 991582 - Part 2: Handle the result of RIL request in a consistent way. r=aknow (914ecc2bbb) - Bug 1164248 - Handling of session/sessionEnded for notifyUssdReceived. r=edgar (a79df75d38) - Bug 1223662 - Part 1: Check mmiServiceCode with correct constant. r=echen (abeb286050) - Bug 1174673 - Part 1: Automatically resume the held call. r=hsinyi (280543af7d) - Bug 1174673 - Part 2: Update test case. r=hsinyi (cfe19f1a52) - Bug 1185156 - Fix bug in resuming held call. r=hsinyi (b96346d319) - Bug 1162426 - Part 1: Provide TelephonyUtils. r=hsinyi (62b71e6e83) - Bug 1162426 - Part 2: Test case. r=hsniyi (13a0b3c6f5) - Bug 1171807 - Part 1: Add enums for TelephonyCall::State and TelephonyCallGroup::State (WebIDL). r=hsinyi (0b698eecc4) - Bug 1145551 - DTMF should be sent using the active SIM, the given or the default one (in that order). r=aknow (6157636493) - Bug 1171807 - Part 2: Move to enums and deprecate TelephonyCall.mCallState and TelephonyCallGroup.mCallState (DOM). r=btseng (5faef22d91) - Bug 1168515 - do not block incall MMI requests on alerting state. r=aknow (b1f85c5789) - Bug 1155072 - Part 1: Deprecate nsITelephonyListener.conferenceCallStateChanged (Telephony). r=btseng (e41d1a4bc9) - Bug 1155072 - Part 2: Deprecate nsITelephonyListener.conferenceCallStateChanged (Bluetooth). r=btian (27e69fa89b) - Bug 1166936 - JS Warning in TelephonyService.js r=aknow (3559d3ad3d) - Bug 1191237 - Part 1: Enhance |TelephonyService.js|. r=aknow (86576a6d32) - Bug 1202902 - Fix the world. (0dc256d67d) - Bug 1161438 - Part 1 - Exporting contact to SIM should also return updated contact. r=echen (505d7d7f83) - Bug 1159622 - Split test_icc_contact.js into read contact and add contact. r=echen (fec0c428df) - Bug 1122376 - Support read SIM contact dialling number exceed 20 digits. r=echen (5d0599e93c) - Bug 1161438 - Part 2 - marionette testcase. r=echen (1f0d18a479) - Bug 1114937 - Part 5: Fix Test Case to Remove Contact with Correct Contact Id. r=echen (8d746fdbd2) - Bug 1194149 - Continue importing contacts when there is no sufficient Type 2 USIM contact fields record. r=echen (e9be40dbf2) - Bug 962995 - xpcshell tests for write ICC UCS2 characters for 0x81 and 0x82 encoding. r=echen (9500afaa4d) - Bug 1161438 - Part 3 - xpcshell testcase. r=echen (01f7fb4514) - Bug 1122376 - Support write SIM contact dialling number exceed 20 digits. r=echen (91133e286d) - Bug 999300 - Part 1: Removed the Ril v5 legacy support. r=edgar (ded77fcb6f) - Bug 999300 - Part 2: Update the related testcases. r=edgar (f77a8b96cc) - Bug 1177146 - [Aries][RIL] Reply from QUERY_AVAILABLE_NETWORKS has extra strings. r=hsinyi (a6816cbbab) - Bug 1043250 - Part 1: Update ril_worker and xpcshell test. r=btseng (8b9b25b5cf) - Bug 1185406 - B2G RIL: Read 'pcscf' and expose it in nsIRilNetworkInfo. r=hsinyi (ce707ecb83) - Bug 1174998 - Part 3: Read data call's MTU from network/apn settings. r=echen (bfa08d8380) - Bug 1166320 - Make volume service safer to use off main thread. r=dhylands (b3976622ad) - Bug 1177374 - Call realpath on volume mount points so thatVolumeService::GetVolumeByPath works properly. r=achen (aea97080eb) - Bug 1195166 - AutoMounter: add ignore command to allow volumes to be ignored. r=alchen (f265d832c8) - Bug 1196724 - Refactoring of AudioManager r=alwu (e5b896b7ce) - Bug 1222564 - Save audio volume to database r=alwu (1303d01ae7) - Bug 1164049 - Fix some mode lines in embedding/. r=smaug (79ddce4871)
739 lines
25 KiB
Plaintext
739 lines
25 KiB
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
interface nsICellInfoListCallback;
|
|
interface nsIMobileCallForwardingOptions;
|
|
interface nsIMobileConnection;
|
|
interface nsIMobileConnectionInfo;
|
|
interface nsIMobileDeviceIdentities;
|
|
interface nsIMobileNetworkInfo;
|
|
interface nsINeighboringCellIdsCallback;
|
|
interface nsIVariant;
|
|
|
|
[scriptable, uuid(8884b326-891c-11e5-a434-67def07c4a41)]
|
|
interface nsIMobileConnectionListener : nsISupports
|
|
{
|
|
/**
|
|
* Notify when voice info is changed.
|
|
*/
|
|
void notifyVoiceChanged();
|
|
|
|
/**
|
|
* Notify when data info is changed.
|
|
*/
|
|
void notifyDataChanged();
|
|
|
|
/**
|
|
* Notify when data call is failed to establish.
|
|
*
|
|
* @param message
|
|
* Error message from RIL.
|
|
*/
|
|
void notifyDataError(in DOMString message);
|
|
|
|
/**
|
|
* Notify when call forwarding state is changed.
|
|
*
|
|
* @param action
|
|
* One of the nsIMobileConnection.CALL_FORWARD_ACTION_* values.
|
|
* @param reason
|
|
* One of the nsIMobileConnection.CALL_FORWARD_REASON_* values.
|
|
* @param number
|
|
* Phone number of forwarding address.
|
|
* @param timeSeconds
|
|
* The time in seconds should wait before call is forwarded.
|
|
* @param serviceClass
|
|
* One of the nsIMobileConnection.ICC_SERVICE_CLASS_* values.
|
|
*/
|
|
void notifyCFStateChanged(in unsigned short action,
|
|
in unsigned short reason,
|
|
in DOMString number,
|
|
in unsigned short timeSeconds,
|
|
in unsigned short serviceClass);
|
|
|
|
/**
|
|
* Notify when emergency callback mode is changed.
|
|
*
|
|
* @param active
|
|
* Indicates whether the emergency callback mode is activated.
|
|
* @param timeoutMs
|
|
* The timeout in millisecond for emergency callback mode.
|
|
*/
|
|
void notifyEmergencyCbModeChanged(in boolean active,
|
|
in unsigned long timeoutMs);
|
|
|
|
/**
|
|
* Notify when ota status is changed.
|
|
*
|
|
* @param status
|
|
* Ota status. Possible values: 'spl_unlocked', 'spc_retries_exceeded',
|
|
* 'a_key_exchanged', 'ssd_updated', 'nam_downloaded', 'mdn_downloaded',
|
|
* 'imsi_downloaded', 'prl_downloaded', 'committed', 'otapa_started',
|
|
* 'otapa_stopped', 'otapa_aborted'.
|
|
*/
|
|
void notifyOtaStatusChanged(in DOMString status);
|
|
|
|
/**
|
|
* Notify when radio state is changed.
|
|
*/
|
|
void notifyRadioStateChanged();
|
|
|
|
/**
|
|
* Notify when clir mode is changed.
|
|
*
|
|
* @param mode
|
|
* One of the nsIMobileConnection.CLIR_* values.
|
|
*/
|
|
void notifyClirModeChanged(in unsigned long mode);
|
|
|
|
/**
|
|
* Notify when last known network is changed.
|
|
*/
|
|
void notifyLastKnownNetworkChanged();
|
|
|
|
/**
|
|
* Notify when last known home network is changed.
|
|
*/
|
|
void notifyLastKnownHomeNetworkChanged();
|
|
|
|
/**
|
|
* Notify when network selection mode is changed.
|
|
*/
|
|
void notifyNetworkSelectionModeChanged();
|
|
|
|
/**
|
|
* Notify when device identities are changed.
|
|
*/
|
|
void notifyDeviceIdentitiesChanged();
|
|
};
|
|
|
|
%{C++
|
|
#define NO_ADDITIONAL_INFORMATION 0
|
|
%}
|
|
|
|
[scriptable, uuid(ef5e02a6-adff-4425-8634-ec49ced1f14f)]
|
|
interface nsIMobileConnectionCallback : nsISupports
|
|
{
|
|
/**
|
|
* notify*Success*() will be called, when request is succeed.
|
|
*/
|
|
void notifySuccess();
|
|
|
|
void notifySuccessWithBoolean(in boolean result);
|
|
|
|
void notifyGetNetworksSuccess(in uint32_t count,
|
|
[array, size_is(count)] in nsIMobileNetworkInfo networks);
|
|
|
|
void notifyGetCallForwardingSuccess(in uint32_t count,
|
|
[array, size_is(count)] in nsIMobileCallForwardingOptions results);
|
|
|
|
void notifyGetCallBarringSuccess(in unsigned short program,
|
|
in boolean enabled,
|
|
in unsigned short serviceClass);
|
|
|
|
void notifyGetCallWaitingSuccess(in unsigned short serviceClass);
|
|
|
|
void notifyGetClirStatusSuccess(in unsigned short n, in unsigned short m);
|
|
|
|
void notifyGetPreferredNetworkTypeSuccess(in long type);
|
|
|
|
void notifyGetRoamingPreferenceSuccess(in long mode);
|
|
|
|
/**
|
|
* notifyError() will be called, when request is failed.
|
|
*/
|
|
void notifyError(in DOMString name);
|
|
};
|
|
|
|
%{C++
|
|
#define NS_MOBILE_CONNECTION_SERVICE_CID \
|
|
{ 0xc6f229d4, 0x16e2, 0x4600, \
|
|
{ 0x87, 0x2a, 0x3d, 0x3d, 0xc5, 0xb8, 0x55, 0x41 } }
|
|
#define NS_MOBILE_CONNECTION_SERVICE_CONTRACTID \
|
|
"@mozilla.org/mobileconnection/mobileconnectionservice;1"
|
|
%}
|
|
|
|
[scriptable, uuid(eaba3c4a-0dd5-4919-b1a2-7812e49dbbcb)]
|
|
interface nsIMobileConnectionService : nsISupports
|
|
{
|
|
readonly attribute unsigned long numItems;
|
|
|
|
nsIMobileConnection getItemByServiceId(in unsigned long serviceId);
|
|
};
|
|
|
|
%{C++
|
|
template<typename T> struct already_AddRefed;
|
|
|
|
already_AddRefed<nsIMobileConnectionService>
|
|
NS_CreateMobileConnectionService();
|
|
%}
|
|
|
|
[scriptable, uuid(7a557116-8753-11e5-9f9b-6794b577c0a1)]
|
|
interface nsIMobileConnection : nsISupports
|
|
{
|
|
/*
|
|
* ICC service class.
|
|
*/
|
|
const long ICC_SERVICE_CLASS_NONE = 0; // not available
|
|
const long ICC_SERVICE_CLASS_VOICE = (1 << 0);
|
|
const long ICC_SERVICE_CLASS_DATA = (1 << 1);
|
|
const long ICC_SERVICE_CLASS_FAX = (1 << 2);
|
|
const long ICC_SERVICE_CLASS_SMS = (1 << 3);
|
|
const long ICC_SERVICE_CLASS_DATA_SYNC = (1 << 4);
|
|
const long ICC_SERVICE_CLASS_DATA_ASYNC = (1 << 5);
|
|
const long ICC_SERVICE_CLASS_PACKET = (1 << 6);
|
|
const long ICC_SERVICE_CLASS_PAD = (1 << 7);
|
|
const long ICC_SERVICE_CLASS_MAX = (1 << 7);
|
|
|
|
/**
|
|
* Call forwarding action.
|
|
*
|
|
* @see 3GPP TS 27.007 7.11 "mode".
|
|
*/
|
|
const long CALL_FORWARD_ACTION_UNKNOWN = -1; // not available
|
|
const long CALL_FORWARD_ACTION_DISABLE = 0;
|
|
const long CALL_FORWARD_ACTION_ENABLE = 1;
|
|
const long CALL_FORWARD_ACTION_QUERY_STATUS = 2;
|
|
const long CALL_FORWARD_ACTION_REGISTRATION = 3;
|
|
const long CALL_FORWARD_ACTION_ERASURE = 4;
|
|
|
|
/**
|
|
* Call forwarding reason.
|
|
*
|
|
* @see 3GPP TS 27.007 7.11 "reason".
|
|
*/
|
|
const long CALL_FORWARD_REASON_UNKNOWN = -1; // not available
|
|
const long CALL_FORWARD_REASON_UNCONDITIONAL = 0;
|
|
const long CALL_FORWARD_REASON_MOBILE_BUSY = 1;
|
|
const long CALL_FORWARD_REASON_NO_REPLY = 2;
|
|
const long CALL_FORWARD_REASON_NOT_REACHABLE = 3;
|
|
const long CALL_FORWARD_REASON_ALL_CALL_FORWARDING = 4;
|
|
const long CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING = 5;
|
|
|
|
/**
|
|
* Call barring program.
|
|
*/
|
|
const long CALL_BARRING_PROGRAM_UNKNOWN = -1; // not available
|
|
const long CALL_BARRING_PROGRAM_ALL_OUTGOING = 0;
|
|
const long CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL = 1;
|
|
const long CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL_EXCEPT_HOME = 2;
|
|
const long CALL_BARRING_PROGRAM_ALL_INCOMING = 3;
|
|
const long CALL_BARRING_PROGRAM_INCOMING_ROAMING = 4;
|
|
const long CALL_BARRING_PROGRAM_ALL_SERVICE = 5;
|
|
const long CALL_BARRING_PROGRAM_OUTGOING_SERVICE = 6;
|
|
const long CALL_BARRING_PROGRAM_INCOMING_SERVICE = 7;
|
|
|
|
/**
|
|
* Calling line identification restriction constants.
|
|
*
|
|
* @see 3GPP TS 27.007 7.7 Defined values.
|
|
*/
|
|
const long CLIR_DEFAULT = 0;
|
|
const long CLIR_INVOCATION = 1;
|
|
const long CLIR_SUPPRESSION = 2;
|
|
|
|
/**
|
|
* Network selection mode.
|
|
*/
|
|
const long NETWORK_SELECTION_MODE_UNKNOWN = -1; // not available
|
|
const long NETWORK_SELECTION_MODE_AUTOMATIC = 0;
|
|
const long NETWORK_SELECTION_MODE_MANUAL = 1;
|
|
|
|
/**
|
|
* Mobile Radio State.
|
|
*/
|
|
const long MOBILE_RADIO_STATE_UNKNOWN = -1;
|
|
const long MOBILE_RADIO_STATE_ENABLING = 0;
|
|
const long MOBILE_RADIO_STATE_ENABLED = 1;
|
|
const long MOBILE_RADIO_STATE_DISABLING = 2;
|
|
const long MOBILE_RADIO_STATE_DISABLED = 3;
|
|
|
|
/**
|
|
* Preferred network type.
|
|
*/
|
|
const long PREFERRED_NETWORK_TYPE_WCDMA_GSM = 0;
|
|
const long PREFERRED_NETWORK_TYPE_GSM_ONLY = 1;
|
|
const long PREFERRED_NETWORK_TYPE_WCDMA_ONLY = 2;
|
|
const long PREFERRED_NETWORK_TYPE_WCDMA_GSM_AUTO = 3;
|
|
const long PREFERRED_NETWORK_TYPE_CDMA_EVDO = 4;
|
|
const long PREFERRED_NETWORK_TYPE_CDMA_ONLY = 5;
|
|
const long PREFERRED_NETWORK_TYPE_EVDO_ONLY = 6;
|
|
const long PREFERRED_NETWORK_TYPE_WCDMA_GSM_CDMA_EVDO = 7;
|
|
const long PREFERRED_NETWORK_TYPE_LTE_CDMA_EVDO = 8;
|
|
const long PREFERRED_NETWORK_TYPE_LTE_WCDMA_GSM = 9;
|
|
const long PREFERRED_NETWORK_TYPE_LTE_WCDMA_GSM_CDMA_EVDO = 10;
|
|
const long PREFERRED_NETWORK_TYPE_LTE_ONLY = 11;
|
|
|
|
/**
|
|
* CDMA roaming preference.
|
|
*/
|
|
const long CDMA_ROAMING_PREFERENCE_HOME = 0;
|
|
const long CDMA_ROAMING_PREFERENCE_AFFILIATED = 1;
|
|
const long CDMA_ROAMING_PREFERENCE_ANY = 2;
|
|
|
|
/**
|
|
* Supported network type.
|
|
*/
|
|
const long MOBILE_NETWORK_TYPE_GSM = 0;
|
|
const long MOBILE_NETWORK_TYPE_WCDMA = 1;
|
|
const long MOBILE_NETWORK_TYPE_CDMA = 2;
|
|
const long MOBILE_NETWORK_TYPE_EVDO = 3;
|
|
const long MOBILE_NETWORK_TYPE_LTE = 4;
|
|
|
|
readonly attribute unsigned long serviceId;
|
|
|
|
/**
|
|
* Called when any one who is interested in receiving unsolicited messages
|
|
* from this nsIMobileConnection instance.
|
|
*/
|
|
void registerListener(in nsIMobileConnectionListener listener);
|
|
void unregisterListener(in nsIMobileConnectionListener listener);
|
|
|
|
/**
|
|
* String of format '<mcc>-<mnc>'. When changed, listener method
|
|
* 'notifyLastKnownNetworkChanged' is called.
|
|
*/
|
|
readonly attribute DOMString lastKnownNetwork;
|
|
|
|
/**
|
|
* String of format '<mcc>-<mnc>[-<spn>]'. When changed, listener method
|
|
* 'notifyLastKnownHomeNetworkChanged' is called.
|
|
*/
|
|
readonly attribute DOMString lastKnownHomeNetwork;
|
|
|
|
/**
|
|
* Connection information about the voice.
|
|
*/
|
|
readonly attribute nsIMobileConnectionInfo voice;
|
|
|
|
/**
|
|
* Connection information about the data.
|
|
*/
|
|
readonly attribute nsIMobileConnectionInfo data;
|
|
|
|
/**
|
|
* The selection mode of the voice and data networks. One of the
|
|
* nsIMobileConnection.NETWORK_SELECTION_MODE_* values.
|
|
*/
|
|
readonly attribute long networkSelectionMode;
|
|
|
|
/**
|
|
* Current radio state. One of the nsIMobileConnection.MOBILE_RADIO_STATE_*
|
|
* values.
|
|
*/
|
|
readonly attribute long radioState;
|
|
|
|
/**
|
|
* Device Identities, including IMEI, IMEISV, ESN and MEID.
|
|
*/
|
|
readonly attribute nsIMobileDeviceIdentities deviceIdentities;
|
|
|
|
/**
|
|
* The network types supported by this radio.
|
|
*
|
|
* @return an array of nsIMobileConnection.MOBILE_NETWORK_TYPE_* values.
|
|
*/
|
|
void getSupportedNetworkTypes([array, size_is(length)] out long types,
|
|
[retval] out unsigned long length);
|
|
|
|
/**
|
|
* Search for available networks.
|
|
*
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifyGetNetworksSuccess() will be called. And the
|
|
* result will be an array of nsIMobileNetworkInfo.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*/
|
|
void getNetworks(in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Manually selects the passed in network, overriding the radio's current
|
|
* selection.
|
|
*
|
|
* @param network
|
|
* The manually selecting network.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*/
|
|
void selectNetwork(in nsIMobileNetworkInfo network,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Tell the radio to automatically select a network.
|
|
*
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*/
|
|
void selectNetworkAutomatically(in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Set preferred network type.
|
|
*
|
|
* @param type
|
|
* One of the nsIMobileConnection.PREFERRED_NETWORK_TYPE_* values.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'InvalidParameter',
|
|
* 'IllegalSIMorME', or 'GenericFailure'.
|
|
*/
|
|
void setPreferredNetworkType(in long type,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Query current preferred network type.
|
|
*
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifyGetPreferredNetworkTypeSuccess() will be called,
|
|
* and the result 'type' will be one of the
|
|
* nsIMobileConnection.PREFERRED_NETWORK_TYPE_* values, indicating the current
|
|
* preferred network type.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*/
|
|
void getPreferredNetworkType(in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Set roaming preference.
|
|
*
|
|
* @param mode
|
|
* One of the nsIMobileConnection.CDMA_ROAMING_PREFERENCE_* values.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', InvalidParameter',
|
|
* 'IllegalSIMorME', or 'GenericFailure'.
|
|
*/
|
|
void setRoamingPreference(in long mode,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Query current roaming preference.
|
|
*
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifyGetRoamingPreferenceSuccess() will be called, and
|
|
* the result 'mode' will be one of the
|
|
* nsIMobileConnection.CDMA_ROAMING_PREFERENCE_* values, indicating the
|
|
* current roaming preference.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*/
|
|
void getRoamingPreference(in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* 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.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*/
|
|
void setVoicePrivacyMode(in bool enabled,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Query current voice privacy mode.
|
|
*
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccessWithBoolean() will be called. And the result
|
|
* will be a boolean indicating the current voice privacy mode.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*/
|
|
void getVoicePrivacyMode(in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Queries current call forwarding options.
|
|
*
|
|
* @param reason
|
|
* Indicates the reason the call is being forwarded. It shall be one of
|
|
* the nsIMobileConnectionService.CALL_FORWARD_REASON_* values.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifyGetCallForwardingSuccess() will be called. And the
|
|
* result will be an array of nsIMobileCallForwardingOptions.
|
|
* @see nsIMobileCallForwardingOptions for the detail of result.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'InvalidParameter',
|
|
* 'IllegalSIMorME', or 'GenericFailure'.
|
|
*/
|
|
void getCallForwarding(in unsigned short reason,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Configures call forwarding options.
|
|
*
|
|
* @param action
|
|
* One of the nsIMobileConnection.CALL_FORWARD_ACTION_* values.
|
|
* @param reason
|
|
* One of the nsIMobileConnection.CALL_FORWARD_REASON_* values.
|
|
* @param number
|
|
* Phone number of forwarding address.
|
|
* @param timeSeconds
|
|
* When "no reply" is enabled or queried, this gives the time in
|
|
* seconds to wait before call is forwarded.
|
|
* @param serviceClass
|
|
* One of the nsIMobileConnection.ICC_SERVICE_CLASS_* values.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'InvalidParameter',
|
|
* 'IllegalSIMorME', or 'GenericFailure'.
|
|
*/
|
|
void setCallForwarding(in unsigned short action,
|
|
in unsigned short reason,
|
|
in DOMString number,
|
|
in unsigned short timeSeconds,
|
|
in unsigned short serviceClass,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Queries current call barring status.
|
|
*
|
|
* @param program
|
|
* One of the nsIMobileConnection.CALL_BARRING_PROGRAM_* values.
|
|
* @param password
|
|
* Call barring password. Use "" if no password specified.
|
|
* @param serviceClass
|
|
* One of the nsIMobileConnection.ICC_SERVICE_CLASS_* values.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifyGetCallBarringSuccess() will be called. And the
|
|
* result will contain correct 'enabled' property indicating the status of
|
|
* this rule.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'InvalidParameter',
|
|
* 'IllegalSIMorME', or 'GenericFailure'.
|
|
*/
|
|
void getCallBarring(in unsigned short program,
|
|
in DOMString password,
|
|
in unsigned short serviceClass,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Configures call barring option.
|
|
*
|
|
* @param program
|
|
* One of the nsIMobileConnection.CALL_BARRING_PROGRAM_* values.
|
|
* @param enabled
|
|
* Enable or disable the call barring program.
|
|
* @param password
|
|
* Call barring password. Use "" if no password specified.
|
|
* @param serviceClass
|
|
* One of the nsIMobileConnection.ICC_SERVICE_CLASS_* values.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'InvalidParameter',
|
|
* 'IllegalSIMorME', or 'GenericFailure'.
|
|
*/
|
|
void setCallBarring(in unsigned short program,
|
|
in bool enabled,
|
|
in DOMString password,
|
|
in unsigned short serviceClass,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Change call barring facility password.
|
|
*
|
|
* @param pin
|
|
* Old call barring password.
|
|
* @param newPin
|
|
* New call barring password.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'InvalidParameter',
|
|
* 'IllegalSIMorME', or 'GenericFailure'.
|
|
*/
|
|
void changeCallBarringPassword(in DOMString pin,
|
|
in DOMString newPin,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Configures call waiting options.
|
|
*
|
|
* @param enabled
|
|
* Boolean indicates the desired call waiting status.
|
|
* @param serviceClass
|
|
* One of the nsIMobileConnection.ICC_SERVICE_CLASS_* values.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*/
|
|
void setCallWaiting(in bool enabled,
|
|
in unsigned short serviceClass,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Queries current call waiting options.
|
|
*
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifyGetCallWaitingSuccess() will be called. And the
|
|
* result will be a service class bit vector of services for which call
|
|
* waiting is enabled. e.g. 3 means call waiting is enabled for data
|
|
* and voice and disabled for everything else. 0 means call waiting is
|
|
* disabled for all service.
|
|
* @see nsIMobileConnection.ICC_SERVICE_CLASS_*.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*/
|
|
void getCallWaiting(in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Enables or disables the presentation of the calling line identity (CLI) to
|
|
* the called party when originating a call.
|
|
*
|
|
* @param clirMode
|
|
* One of the nsIMobileConnection.CLIR_* values.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'InvalidParameter',
|
|
* 'IllegalSIMorME', or 'GenericFailure'.
|
|
*/
|
|
void setCallingLineIdRestriction(in unsigned short clirMode,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Queries current CLIR status.
|
|
*
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifyGetClirStatusSuccess() will be called. And the
|
|
* result will be a an object containing CLIR 'n' and 'm' parameter.
|
|
* @see MozClirStatus for the detail of result.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*/
|
|
void getCallingLineIdRestriction(in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Exit emergency callback mode.
|
|
*
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'RadioNotAvailable', 'RequestNotSupported', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*/
|
|
void exitEmergencyCbMode(in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Set radio enabled/disabled.
|
|
*
|
|
* @param enabled
|
|
* Boolean indicates the desired radio power. True to enable the radio.
|
|
* @param requestCallback
|
|
* Called when request is finished.
|
|
*
|
|
* If successful, the notifySuccess() will be called.
|
|
*
|
|
* Otherwise, the notifyError() will be called, and the error will be either
|
|
* 'InvalidStateError', 'RadioNotAvailable', 'IllegalSIMorME', or
|
|
* 'GenericFailure'.
|
|
*
|
|
* Note: Request is not available when radioState is null, 'enabling', or
|
|
* 'disabling'. Calling the function in above conditions will receive
|
|
* 'InvalidStateError' error.
|
|
*/
|
|
void setRadioEnabled(in bool enabled,
|
|
in nsIMobileConnectionCallback requestCallback);
|
|
|
|
/**
|
|
* Request neighboring cell ids in GSM/UMTS network.
|
|
*
|
|
* @param callback
|
|
* Called when request is finished. See nsINeighboringCellIdsCallback
|
|
* for details.
|
|
*/
|
|
void getNeighboringCellIds(in nsINeighboringCellIdsCallback callback);
|
|
|
|
/**
|
|
* Request all of the current cell information known to the radio, including
|
|
* neighboring cells.
|
|
*
|
|
* @param callback
|
|
* Called when request is finished. See nsICellInfoListCallback
|
|
* for details.
|
|
*/
|
|
void getCellInfoList(in nsICellInfoListCallback callback);
|
|
};
|