nsISupports
Last changed in Gecko 14.0 (Firefox 14.0 / Thunderbird 14.0 / SeaMonkey 2.11)Implemented by: @mozilla.org/telephony/system-worker-manager;1
. To create an instance, use:
var radioInterfaceLayer = Components.classes["@mozilla.org/telephony/system-worker-manager;1"] .getService(Components.interfaces.nsIInterfaceRequestor) .createInstance(Components.interfaces.nsIRadioInterfaceLayer);
void answerCall(in unsigned long callIndex); |
void deactivateDataCall(in DOMString cid, in DOMString reason); |
void dial(in DOMString number); |
void enumerateCalls(in nsIRILTelephonyCallback callback); |
void getDataCallList(); |
unsigned short getNumberOfMessagesForText(in DOMString text); |
void hangUp(in unsigned long callIndex); |
void registerCallback(in nsIRILTelephonyCallback callback); |
void registerDataCallCallback(in nsIRILDataCallback callback); |
void rejectCall(in unsigned long callIndex); |
void sendSMS(in DOMString number, in DOMString message, in long requestId, in unsigned long long processId); |
void setupDataCall(in long radioTech, in DOMString apn, in DOMString user, in DOMString passwd, in long chappap, in DOMString pdptype); |
void startTone(in DOMString dtmfChar); |
void stopTone(); |
void unregisterCallback(in nsIRILTelephonyCallback callback); |
void unregisterDataCallCallback(in nsIRILDataCallback callback); |
Attribute | Type | Description |
currentState | jsval | Read only. Obsolete since Gecko 13.0 |
microphoneMuted | bool | |
radioState | jsval | Read only. |
speakerEnabled | bool |
Constant | Value | Description |
CALL_STATE_UNKNOWN | 0 | |
CALL_STATE_DIALING | 1 | |
CALL_STATE_ALERTING | 2 | |
CALL_STATE_BUSY | 3 | |
CALL_STATE_CONNECTING | 4 | |
CALL_STATE_CONNECTED | 5 | |
CALL_STATE_HOLDING | 6 | |
CALL_STATE_HELD | 7 | |
CALL_STATE_RESUMING | 8 | |
CALL_STATE_DISCONNECTING | 9 | |
CALL_STATE_DISCONNECTED | 10 | |
CALL_STATE_INCOMING | 11 | |
DATACALL_STATE_UNKNOWN | 0 | |
DATACALL_STATE_CONNECTING | 1 | |
DATACALL_STATE_CONNECTED | 2 | |
DATACALL_STATE_DISCONNECTING | 3 | |
DATACALL_STATE_DISCONNECTED | 4 | |
CALL_STATE_RINGING | 2 | Obsolete since Gecko 14.0 |
void answerCall( in unsigned long callIndex );
callIndex
Missing Exception
void deactivateDataCall( in DOMString cid, in DOMString reason );
cid
reason
Missing Exception
Functionality for making and managing phone calls.
void dial( in DOMString number );
number
Missing Exception
Will continue calling callback.enumerateCallState until the callback returns false
.
void enumerateCalls( in nsIRILTelephonyCallback callback );
callback
Missing Exception
void getDataCallList();
None.
Missing Exception
Returns the number of multi-part SMS needed for a given text (160 characters for one SMS).
unsigned short getNumberOfMessagesForText( in DOMString text );
text
Unsigned short. Number of SMS needed.
void hangUp( in unsigned long callIndex );
callIndex
Missing Exception
void registerCallback( in nsIRILTelephonyCallback callback );
callback
Missing Exception
void registerDataCallCallback( in nsIRILDataCallback callback );
callback
Missing Exception
void rejectCall( in unsigned long callIndex );
callIndex
Missing Exception
Sends a message to a specified number.
void sendSMS( in DOMString number, in DOMString message, in long requestId, in unsigned long long processId );
number
DOMString
with a telephone number to send to.message
DOMString
.requestId
processId
PDP APIs.
void setupDataCall( in long radioTech, in DOMString apn, in DOMString user, in DOMString passwd, in long chappap, in DOMString pdptype );
radioTech
apn
user
passwd
chappap
pdptype
Missing Exception
void startTone( in DOMString dtmfChar );
dtmfChar
Missing Exception
void stopTone();
None.
Missing Exception
void unregisterCallback( in nsIRILTelephonyCallback callback );
callback
Missing Exception
void unregisterDataCallCallback( in nsIRILDataCallback callback );
callback
Missing Exception