WebAPI/WebMobileConnection/Multi-SIM: Difference between revisions

Jump to navigation Jump to search
Undo revision 523856 by Echen (talk)
(Undo revision 523860 by Echen (talk))
(Undo revision 523856 by Echen (talk))
Line 4: Line 4:
nsIDOMMozMobileConnectionManager will handle the interactive and synchronizing functions between nsIDOMMozMobileConnection objects in the future. For example, when data connection via SIM1 is no longer available, nsIDOMMobileConnectionManager will establish data connection via SIM2 for upper layers.
nsIDOMMozMobileConnectionManager will handle the interactive and synchronizing functions between nsIDOMMozMobileConnection objects in the future. For example, when data connection via SIM1 is no longer available, nsIDOMMobileConnectionManager will establish data connection via SIM2 for upper layers.


<h3> Web API </h3>
=== Web API ===
<p>Following are what we create for nsIDOMMozMobileConnectionManager.  
Following are what we create for nsIDOMMozMobileConnectionManager.
</p>
 
<pre class="_fck_mw_lspace">interface nsIDOMMozMobileConnectionManager&#160;: nsIDOMEventTarget
interface nsIDOMMozMobileConnectionManager : nsIDOMEventTarget
{
{
readonly attribute jsval mobileConnections;
  readonly attribute jsval mobileConnections;
readonly attribute nsIDOMMozMobileConnection defaultMobileConnection;
  readonly attribute nsIDOMMozMobileConnection defaultMobileConnection;
 
};
};
</pre>
 
<p>We don't modify the interface of nsIDOMMozMobileConnectionInfo to minimize the coding effort of gaia.  
We don't modify the interface of nsIDOMMozMobileConnectionInfo to minimize the coding effort of gaia.
</p>
 
<pre class="_fck_mw_lspace">interface nsIDOMMozMobileConnectionInfo&#160;: nsISupports
interface nsIDOMMozMobileConnectionInfo : nsISupports
{
{
readonly attribute DOMString state;
  readonly attribute DOMString state;
readonly attribute bool connected;
  readonly attribute bool connected;
readonly attribute bool emergencyCallsOnly;
  readonly attribute bool emergencyCallsOnly;
readonly attribute bool roaming;
  readonly attribute bool roaming;
readonly attribute nsIDOMMozMobileNetworkInfo network;
  readonly attribute nsIDOMMozMobileNetworkInfo network;
readonly attribute DOMString type;
  readonly attribute DOMString type;
readonly attribute jsval signalStrength;
  readonly attribute jsval signalStrength;
readonly attribute jsval relSignalStrength;
  readonly attribute jsval relSignalStrength;
readonly attribute nsIDOMMozMobileCellInfo cell;
  readonly attribute nsIDOMMozMobileCellInfo cell;
};
};
</pre>


=== Use Case  ===
=== Use Case  ===
Confirmed users
258

edits

Navigation menu