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

Commit bb80f25

Browse files
author
Eduardo Fullea
committed
enumerations
1 parent ec3ff54 commit bb80f25

File tree

1 file changed

+126
-32
lines changed

1 file changed

+126
-32
lines changed

index.html

Lines changed: 126 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ <h2><a>SmsManager</a> Interface</h2>
459459
<dl title="[NoInterfaceObject] interface SmsManager : EventTarget"
460460
class="idl">
461461

462-
<dt>readonly attribute DOMString type</dt> <dd>MUST return the type of the
462+
<dt>readonly attribute MessageType type</dt> <dd>MUST return the type of the
463463
messaging service manager. It can have the following values: 'sms' or
464464
'mms'.</dd>
465465

@@ -744,7 +744,7 @@ <h3>Steps</h3>
744744
</ol>
745745
</ol>
746746
</section>
747-
747+
748748
<section>
749749
<h2>Event handlers</h2>
750750
<p>The following are the <a class="internalDFN"
@@ -844,7 +844,7 @@ <h2><a>MmsManager</a> Interface</h2>
844844
<dl title="[NoInterfaceObject] interface MmsManager : EventTarget"
845845
class="idl">
846846

847-
<dt>readonly attribute DOMString type</dt> <dd>MUST return the type of the
847+
<dt>readonly attribute MessageType type</dt> <dd>MUST return the type of the
848848
messaging service manager. It can have the following values: 'sms' or
849849
'mms'.</dd>
850850

@@ -1414,7 +1414,7 @@ <h2><a>SmsMessage</a> Interface</h2>
14141414
<dt>readonly attribute DOMString messageID</dt>
14151415
<dd>MUST return the identifier of the message.</dd>
14161416

1417-
<dt>readonly attribute DOMString type</dt>
1417+
<dt>readonly attribute MessageType type</dt>
14181418
<dd>MUST return the type of message, i.e. 'sms'.</dd>
14191419

14201420
<dt>readonly attribute DOMString serviceID</dt>
@@ -1442,16 +1442,11 @@ <h2><a>SmsMessage</a> Interface</h2>
14421442
<dd>MUST return text of the SMS message, i.e. the SM element contained
14431443
within the TP User Data (TP-UD) field of the SMS message.</dd>
14441444

1445-
<dt>readonly attribute DOMString state</dt>
1446-
<dd>MUST return the status of the SMS message, with the following possible
1447-
values: 'received', 'draft', 'sending', 'sent' and 'failed'.</dd>
1445+
<dt>readonly attribute SmsState state</dt>
1446+
<dd>MUST return the status of the SMS message.</dd>
14481447

1449-
<dt>readonly attribute DOMString? deliveryStatus</dt>
1450-
<dd>MUST return 'success' if the SMS message has been succesfully delivered
1451-
to the recipient, 'pending' if it is pending delivery, 'error' if the
1452-
delivery has failed. It MUST return 'not-applicable' if the delivery status
1453-
is not applicable either because a delivery report has not been requested or
1454-
the message is an inbound message.
1448+
<dt>readonly attribute DeliveryStatus? deliveryStatus</dt>
1449+
<dd>MUST return the delivery status of the SMS message.
14551450
</dd>
14561451

14571452
<dt>readonly attribute DOMString messageClass</dt>
@@ -1473,7 +1468,7 @@ <h2><a>MmsMessage</a> Interface</h2>
14731468
<dt>readonly attribute DOMString messageID</dt>
14741469
<dd>MUST return the identifier of the message.</dd>
14751470

1476-
<dt>readonly attribute DOMString type</dt>
1471+
<dt>readonly attribute MessageType type</dt>
14771472
<dd>MUST return the type of message, i.e. 'mms'.</dd>
14781473

14791474
<dt>readonly attribute DOMString serviceID</dt>
@@ -1515,20 +1510,14 @@ <h2><a>MmsMessage</a> Interface</h2>
15151510
<dt>readonly attribute MmsAttachments[]? attachments</dt>
15161511
<dd>MUST return the set of attachments of the MMS message.</dd>
15171512

1518-
<dt>readonly attribute DOMString state</dt>
1519-
<dd>MUST return the status of the message, with the following possible
1520-
values: 'received', 'draft', 'sending', 'sent', 'failed' and
1521-
'not-downloaded'.</dd>
1513+
<dt>readonly attribute MmsState state</dt>
1514+
<dd>MUST return the status of the MMS message.</dd>
15221515

1523-
<dt>readonly attribute DOMString deliveryStatus[]</dt>
1516+
<dt>readonly attribute DeliveryStatus deliveryStatus[]</dt>
15241517
<dd>MUST return an array with each of the elements indicating the delivery
15251518
status to each of the recipients of the message, in order starting with the
15261519
recipients in the 'To' field, followed by those in 'Cc' and ending with
1527-
those in 'Bcc'. The possible values indicate whether the MMS message has
1528-
been succesfully delivered to the recipient ('success'), it is pending
1529-
delivery ('pending'), the delivery has failed ('error'). It MUST return
1530-
'not-applicable' if a delivery report has not been requested or the message
1531-
is an inbound message.</dd>
1520+
those in 'Bcc'.</dd>
15321521

15331522
</dl>
15341523
</section>
@@ -1610,7 +1599,7 @@ <h2><a>Conversation</a> Interface</h2>
16101599
within the implementation, i.e. there cannot be any other conversation with
16111600
the same identifier.</dd>
16121601

1613-
<dt>readonly attribute DOMString type</dt>
1602+
<dt>readonly attribute MessageType type</dt>
16141603
<dd>MUST return the type of conversation, with value 'participants' if the
16151604
conversation is defined as the set of messages exchanged among the same set
16161605
of parties, and 'subject' if the conversation is defined as the set of
@@ -1756,7 +1745,7 @@ <h2><a>MessagingFilter</a> Interface</h2>
17561745
<code>Messaging</code> interface).
17571746
<dl title="interface MessagingFilter : AbstractFilter"
17581747
class="idl">
1759-
<dt>attribute DOMString? type</dt>
1748+
<dt>attribute MessageType? type</dt>
17601749
<dd>Indicates whether just the SMS or MMS messages are to be provided in the
17611750
results of this filter, respectively if it is set to string value 'SMS' or
17621751
'MMS'.
@@ -1778,13 +1767,9 @@ <h2><a>MessagingFilter</a> Interface</h2>
17781767
<dd>Indicates that just messages sent to one of these numbers are to be
17791768
provided in the results of this filter.</dd>
17801769

1781-
<dt>attribute DOMString? state</dt>
1770+
<dt>attribute (SmsState or MmsState)? state</dt>
17821771
<dd>Indicates whether the results of this filter just needs to return the
1783-
messages that have been received ('received'), sent ('sent'), are in process
1784-
of being sent ('sending'), for which an error has happened during the
1785-
sending process ('error') or for which a notification has been received but
1786-
the message (just of MMS type) has not yet been downloaded
1787-
('not-downloaded').
1772+
messages matching the indicated state.
17881773

17891774
<dt>attribute DOMString? serviceID</dt>
17901775
<dd>Indicates that just messages associated to the messaging service with
@@ -1887,6 +1872,115 @@ <h2><a>AttributeRangeFilter</a> Interface</h2>
18871872
</dl>
18881873
</section>
18891874

1875+
<!------------------------ Interface Enumerations ---------------------------->
1876+
<section>
1877+
<h2>Enumerations</h2>
1878+
1879+
<p>The attibute <code>type</code> can have the following values:
1880+
<dl class="idl" title="enum MessageType">
1881+
<dt>sms</dt>
1882+
<dd>
1883+
Corresponding to SMS message(s).
1884+
</dd>
1885+
1886+
<dt>mms</dt>
1887+
<dd>
1888+
Corresponding to MMS message(s).
1889+
</dd>
1890+
</dl>
1891+
1892+
<p>The attibute <code>state</code> in an <code>SmsMessage</code> can have
1893+
the following values:
1894+
<dl class="idl" title="enum SmsState">
1895+
<dt>received</dt>
1896+
<dd>
1897+
The message is an inbound message.
1898+
</dd>
1899+
1900+
<dt>draft</dt>
1901+
<dd>
1902+
The message is a draft, i.e. it has not yet been sent.
1903+
</dd>
1904+
1905+
<dt>sending</dt>
1906+
<dd>
1907+
The message is in process of being sent.
1908+
</dd>
1909+
1910+
<dt>sent</dt>
1911+
<dd>
1912+
The message has been successfully sent.
1913+
</dd>
1914+
1915+
<dt>failed</dt>
1916+
<dd>
1917+
The message is an outbound message whose submission has failed.
1918+
</dd>
1919+
</dl>
1920+
1921+
<p>The attibute <code>state</code> in an <code>MmsMessage</code> can have
1922+
the following values:
1923+
<dl class="idl" title="enum MmsState">
1924+
<dt>not-downloaded</dt>
1925+
<dd>
1926+
The message is an inbound message, for which an MMS mnotification
1927+
has been received but that has not yet been downloaded.
1928+
</dd>
1929+
1930+
<dt>received</dt>
1931+
<dd>
1932+
The message is an inbound message.
1933+
</dd>
1934+
1935+
<dt>draft</dt>
1936+
<dd>
1937+
The message is a draft, i.e. it has not yet been sent.
1938+
</dd>
1939+
1940+
<dt>sending</dt>
1941+
<dd>
1942+
The message is in process of being sent.
1943+
</dd>
1944+
1945+
<dt>sent</dt>
1946+
<dd>
1947+
The message has been successfully sent.
1948+
</dd>
1949+
1950+
<dt>failed</dt>
1951+
<dd>
1952+
The message is an outbound message whose submission has failed.
1953+
</dd>
1954+
</dl>
1955+
1956+
<p>The attibute <code>deliveryStatus</code> can have the following values:
1957+
<dl class="idl" title="enum DeliveryStatus">
1958+
<dt>success</dt>
1959+
<dd>
1960+
The message has been succesfully delivered to the recipient.
1961+
</dd>
1962+
1963+
<dt>pending</dt>
1964+
<dd>
1965+
The message is pending delivery.
1966+
</dd>
1967+
1968+
<dt>error</dt>
1969+
<dd>
1970+
The delivery of the message has failed.
1971+
</dd>
1972+
1973+
<dt>not-applicable</dt>
1974+
<dd>
1975+
The delivery status is not applicable either because a delivery
1976+
report has not been requested or because the message is an inbound
1977+
message
1978+
</dd>
1979+
</dl>
1980+
1981+
</section>
1982+
1983+
18901984
<!------------------------ Acknowledgements ---------------------------------->
18911985
<section>
18921986
<h2>Acknowledgements</h2>

0 commit comments

Comments
 (0)