Confirmed users
978
edits
(B2G arch proposal for multi-sim) |
No edit summary |
||
Line 66: | Line 66: | ||
}; | }; | ||
<h3> Use Case </h3> | |||
<h4> Outgoing Call </h4> | |||
<ul><li>Current B2G | |||
</li></ul> | |||
<pre class="_fck_mw_lspace"> navigator.mozTelephony.dial(number) | |||
</pre> | |||
<ul><li>Multi-SIM | |||
</li></ul> | |||
<pre class="_fck_mw_lspace"> navigator.mozTelephonyManager.defaultPhone.dial() | |||
navigator.mozTelephonyManager.phones[index].dial() | |||
</pre> | |||
<h4> Incoming Call </h4> | |||
<ul><li>Current B2G | |||
</li></ul> | |||
Once the telephony object is obtained, the following work remains the same. | <pre class="_fck_mw_lspace"> Tel1 = navigator.mozTelephony; | ||
</pre> | |||
<ul><li>Multi-SIM | |||
</li></ul> | |||
<pre class="_fck_mw_lspace"> Tel1 = navigator.mozTelephonyManager.phones[index]; | |||
</pre> | |||
<p>Once the telephony object is obtained, the following work remains the same. | |||
</p> | |||
<pre class="_fck_mw_lspace">Tel1.addEventListener('incoming'); | |||
Tel1.onincoming = function onincoming (evt) { | |||
incoming = evt.call; }; | |||
incoming.answer(); | |||
</pre> | |||
<h2> Proposal: Architecture </h2> | <h2> Proposal: Architecture </h2> | ||
<p><img src="/images/thumb/6/6e/B2GArch.png/ | <p><img src="/images/thumb/6/6e/B2GArch.png/400px-B2GArch.png" _fck_mw_filename="B2GArch.png" _fck_mw_width="400" alt="B2GArch.png" /> | ||
</p> | </p> |