Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 2c47144

Browse files
author
Eduardo Fullea
committed
FetchMode enumeration
1 parent 2d972c3 commit 2c47144

File tree

1 file changed

+31
-14
lines changed

1 file changed

+31
-14
lines changed

index.html

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -850,12 +850,11 @@ <h2><a>MmsManager</a> Interface</h2>
850850
identifier of the different services for this type of messaging service
851851
(e.g. 'sms_sim1').</dd>
852852

853-
<dt>DOMString getFetchMode ()</dt>
853+
<dt>FetchMode getFetchMode ()</dt>
854854
<dd>This method requests to retrieve the fetch mode associated to a specific
855855
service (the one identified by the <code>serviceID</code> attribute, if
856856
provided, or the first element in the <code>serviceIDs</code> attribute of
857-
the <code>MmsManager</code> otherwise). It can have one of the following
858-
values: 'manual' or 'automatic'.
857+
the <code>MmsManager</code> otherwise).
859858
<dl class='parameters'>
860859
<dt>optional DOMString serviceID</dt>
861860
<dd>
@@ -865,15 +864,16 @@ <h2><a>MmsManager</a> Interface</h2>
865864
</dd>
866865

867866
<dt>void setFetchMode ()</dt>
868-
<dd>This method issues a request to the messaging system to set to 'manual'
869-
or 'automatic' the MMS message fetch mode of the specific service, the one
870-
identified by the <code>serviceID</code> attribute, if provided, or all
871-
services otherwise).
867+
<dd>This method issues a request to the messaging system to set to <a
868+
class="internalDFN" href="#idl-def-FetchMode.manual">manual</a>
869+
or <a class="internalDFN" href="#idl-def-FetchMode.automatic">automatic</a>
870+
the MMS message fetch mode of the specific service, the one identified by
871+
the <code>serviceID</code> attribute, if provided, or all services
872+
otherwise).
872873
<dl class='parameters'>
873-
<dt>DOMString fetchMode</dt>
874+
<dt>FetchMode fetchMode</dt>
874875
<dd>
875-
Fetch mode that is requested to be set for a specific service. The
876-
allowed values for this attribute are 'manual' and 'automatic'.
876+
Fetch mode that is requested to be set for a specific service.
877877
</dd>
878878
<dt>optional DOMString serviceID</dt>
879879
<dd>
@@ -1077,7 +1077,8 @@ <h3>Steps</h3>
10771077
<li>Set the <code>serviceID</code> of the <code>MmsMessage</code> to the
10781078
identifier of the service at which the message has been received.
10791079
<li>Set the <code>read</code> of the <code>MmsMessage</code> to 'false'.
1080-
<li>if the fetch mode is manual:
1080+
<li>if the fetch mode is <a class="internalDFN"
1081+
href="#idl-def-FetchMode.manual">manual</a>:
10811082
<ol>
10821083
<li>Set the <code>from</code> of the <code>MmsMessage</code> to the
10831084
value of the 'From' field of the MMS notification, if present.
@@ -1099,7 +1100,8 @@ <h3>Steps</h3>
10991100
<li>Set the <code>state</code> of the <code>MmsMessage</code> to
11001101
'not-downloaded'.
11011102
</ol>
1102-
<li>if the fetch mode is otherwise automatic:
1103+
<li>if the fetch mode is otherwise <a class="internalDFN"
1104+
href="#idl-def-FetchMode.automatic">automatic</a>:
11031105
<ol>
11041106
<li>Make a request to the system to fetch the MMS message from the URL
11051107
indicated in the X-Mms-Content-Location field of the MMS notification.
@@ -1166,8 +1168,8 @@ <h3>Steps</h3>
11661168
handler</a> of the <code>MessagingRequest</code> object.
11671169
<li>When the request has been completed:
11681170
<ol>
1169-
<li>Run the <a href="#dfn-fill-mms-message">steps for filling the
1170-
<code>MmsMessage</code> object with the data contained in the MMS message</a>.
1171+
<li>Run the <a class="internalDFN" href="#dfn-fill-mms-message">steps for filling the
1172+
MmsMessage object with the data contained in the MMS message</a>.
11711173
<li>Set the <code>readyState</code> of the
11721174
<code>MessagingRequest</code> object to 'done'.
11731175
<li>Set the <code>result</code> of the <code>MessagingRequest</code>
@@ -1974,6 +1976,21 @@ <h2>Enumerations</h2>
19741976
</dd>
19751977
</dl>
19761978

1979+
<p>The MMS fetch mode can have the following values:
1980+
<dl class="idl" title="enum FetchMode">
1981+
<dt>automatic</dt>
1982+
<dd>
1983+
MMS message is fecthed right after the reception of the MMS
1984+
notification.
1985+
</dd>
1986+
1987+
<dt>manual</dt>
1988+
<dd>
1989+
The message is not fecthed until the user manually requests it.
1990+
</dd>
1991+
1992+
</dl>
1993+
19771994
</section>
19781995

19791996

0 commit comments

Comments
 (0)