Confirmed users
258
edits
| Line 84: | Line 84: | ||
=== Implementation === | === Implementation === | ||
mozMobileConnection becomes an array of nsIDOMMozMobileConnection in nsINavigatorMobileConnection.idl | |||
interface nsIMozNavigatorMobileConnectionManager: nsISupports | interface nsIMozNavigatorMobileConnectionManager: nsISupports | ||
{ | { | ||
readonly attribute | // An array of nsIDOMMozMobileConnection. | ||
readonly attribute jsval mozMobileConnections; | |||
}; | }; | ||
Add subscriptionId in the interface of nsIMobileConnectionProvider.idl and change the implementation of | Add subscriptionId in the interface of nsIMobileConnectionProvider.idl and change the implementation of getVoiceConnectionInfo, getDataConnectionInfo, and getNetworkSelectionMode. | ||
interface nsIMobileConnectionProvider: nsISupports | interface nsIMobileConnectionProvider: nsISupports | ||
{ | { | ||
void registerMobileConnectionMsg(in unsigned long | void registerMobileConnectionMsg(in unsigned long serviceId, in nsIMobileConnectionListener listener); | ||
void unregisterMobileConnectionMsg(in unsigned long serviceId, in nsIMobileConnectionListener listener); | |||
nsIDOMMozMobileConnectionInfo getVoiceConnectionInfo(in unsigned long subscriptionId); | nsIDOMMozMobileConnectionInfo getVoiceConnectionInfo(in unsigned long subscriptionId); | ||
nsIDOMMozMobileConnectionInfo getDataConnectionInfo(in unsigned long subscriptionId); | nsIDOMMozMobileConnectionInfo getDataConnectionInfo(in unsigned long subscriptionId); | ||
DOMString getNetworkSelectionMode(in unsigned long subscriptionId); | DOMString getNetworkSelectionMode(in unsigned long subscriptionId); | ||
nsIDOMDOMRequest getNetworks( | |||
nsIDOMDOMRequest selectNetwork(in nsIDOMWindow window, in nsIDOMMozMobileNetworkInfo network | nsIDOMDOMRequest getNetworks(in unsigned long subscriptionId, in nsIDOMWindow window); | ||
nsIDOMDOMRequest selectNetworkAutomatically( | nsIDOMDOMRequest selectNetwork(in unsigned long subscriptionId, in nsIDOMWindow window, in nsIDOMMozMobileNetworkInfo network); | ||
nsIDOMDOMRequest selectNetworkAutomatically(in unsigned long subscriptionId, in nsIDOMWindow window); | |||
nsIDOMDOMRequest | nsIDOMDOMRequest sendMMI(in unsigned long subscriptionId, in nsIDOMWindow window, in DOMString mmi); | ||
nsIDOMDOMRequest cancelMMI(in unsigned long subscriptionId, in nsIDOMWindow window); | |||
nsIDOMDOMRequest cancelMMI( | |||
}; | }; | ||
The data structures of | The data structures of voiceConnectionInfo, dataConnectionInfo, and networkSelectionMode may need to change to be an array format in RILContentHelper.js for storing the information among different SIM. | ||
// nsIRILContentHelper | // nsIRILContentHelper | ||
voiceConnectionInfo: [], | voiceConnectionInfo: [], | ||
dataConnectionInfo: [], | dataConnectionInfo: [], | ||