Skip to content

Commit

Permalink
started converting calls attr to getCalls() (closes sysapps#133)
Browse files Browse the repository at this point in the history
The changes are not longer related to the array, but to the telephony
service.
  • Loading branch information
marcoscaceres committed Jun 28, 2013
1 parent 441ad0b commit 18910cf
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -893,9 +893,6 @@ <h2>
<li>
<a>Queue a task</a> to:
<ol>
<li>Remove the <var>telCall</var> object from the <a>calls</a>
array.
</li>
<li>set the <code>state</code> of <var>telCall</var> to
"<a>disconnected</a>".
</li>
Expand Down Expand Up @@ -993,9 +990,6 @@ <h2>
<dt>
readonly attribute Call? activeCall
</dt>
<dt>
readonly attribute Call[] calls
</dt>
<dt>
readonly attribute DOMString[] emergencyNumbers
</dt>
Expand All @@ -1012,6 +1006,9 @@ <h2>
TelephonyCall dial ([TreatNullAs=EmptyString] DOMString remoteParty,
optional DialOptions options)
</dt>
<dt>
Call[] getCalls();
</dt>
<dt>
Promise sendTones(DOMString tones, optional ToneOptions options)
</dt>
Expand Down Expand Up @@ -1050,20 +1047,24 @@ <h3>
<code>null</code>.
</p>
</section>
<!-- - - - - - - - - - - - - calls attribute - - - - - - - - - - - - -->
<!-- - - - - - - - - - - - - getCalls method - - - - - - - - - - - - -->
<section>
<h3>
The <code>calls</code> attribute
The <code>getCalls</code> method
</h3>
<p>
When getting the <dfn id="widl-TelephonyManager-calls">calls</dfn>
attribute, the user agent MUST return an array, which can be empty,
of <a>Call</a> objects managed by this objects.
The <dfn id="">getCalls</dfn> method retrieves an sequence of all the
<a>Call</a> accessible to the document that are not in either the
<a>disconnected</a> state or the <a>multiparty</a> state.
</p>
<p class="Note">
<a>TelephonyCall</a> objects belonging to a multiparty call are
managed by the corresponding <a>ConferenceCall</a> object and won't
be present in this array.
be returned in the sequence.
</p>
<p>
When the getCalls method is invoked, the user agent MUST run the
following steps:
</p>
</section>
<!-- - - - - - - - - - - emergencyNumbers attribute - - - - - - - - - -->
Expand Down Expand Up @@ -1468,7 +1469,8 @@ <h2>
<a><code>Event</code></a>
</td>
<td>
handles change in the <a>calls</a> array.
handles calls being either managed or no longer managed by a
<a>telephony service</a>.
</td>
</tr>
<tr>
Expand Down Expand Up @@ -2272,13 +2274,8 @@ <h3>
multiparty call <var>confCall</var>.
</li>
<li>Add the calls participating in the multiparty call to the <a>
calls</a> attribute of the <var>confCall</var> object, remove
them from the <a>calls</a> array of the <a>TelephonyManager</a>
object, and set their <code>state</code> to
<code>'multiparty'</code>.
</li>
<li>Add the <var>confCall</var> object to the <a>calls</a> array
of the <a>TelephonyManager</a> object.
calls</a> attribute of the <var>confCall</var> object, and set
their <code>state</code> to <code>'multiparty'</code>.
</li>
<li>Set the <code>state</code> of <var>confCall</var> to
"<a>active</a>".
Expand Down

0 comments on commit 18910cf

Please sign in to comment.