@@ -459,7 +459,7 @@ <h2><a>SmsManager</a> Interface</h2>
459
459
< dl title ="[NoInterfaceObject] interface SmsManager : EventTarget "
460
460
class ="idl ">
461
461
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
463
463
messaging service manager. It can have the following values: 'sms' or
464
464
'mms'.</ dd >
465
465
@@ -744,7 +744,7 @@ <h3>Steps</h3>
744
744
</ ol >
745
745
</ ol >
746
746
</ section >
747
-
747
+
748
748
< section >
749
749
< h2 > Event handlers</ h2 >
750
750
< p > The following are the < a class ="internalDFN "
@@ -844,7 +844,7 @@ <h2><a>MmsManager</a> Interface</h2>
844
844
< dl title ="[NoInterfaceObject] interface MmsManager : EventTarget "
845
845
class ="idl ">
846
846
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
848
848
messaging service manager. It can have the following values: 'sms' or
849
849
'mms'.</ dd >
850
850
@@ -1414,7 +1414,7 @@ <h2><a>SmsMessage</a> Interface</h2>
1414
1414
< dt > readonly attribute DOMString messageID</ dt >
1415
1415
< dd > MUST return the identifier of the message.</ dd >
1416
1416
1417
- < dt > readonly attribute DOMString type</ dt >
1417
+ < dt > readonly attribute MessageType type</ dt >
1418
1418
< dd > MUST return the type of message, i.e. 'sms'.</ dd >
1419
1419
1420
1420
< dt > readonly attribute DOMString serviceID</ dt >
@@ -1442,16 +1442,11 @@ <h2><a>SmsMessage</a> Interface</h2>
1442
1442
< dd > MUST return text of the SMS message, i.e. the SM element contained
1443
1443
within the TP User Data (TP-UD) field of the SMS message.</ dd >
1444
1444
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 >
1448
1447
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.
1455
1450
</ dd >
1456
1451
1457
1452
< dt > readonly attribute DOMString messageClass</ dt >
@@ -1473,7 +1468,7 @@ <h2><a>MmsMessage</a> Interface</h2>
1473
1468
< dt > readonly attribute DOMString messageID</ dt >
1474
1469
< dd > MUST return the identifier of the message.</ dd >
1475
1470
1476
- < dt > readonly attribute DOMString type</ dt >
1471
+ < dt > readonly attribute MessageType type</ dt >
1477
1472
< dd > MUST return the type of message, i.e. 'mms'.</ dd >
1478
1473
1479
1474
< dt > readonly attribute DOMString serviceID</ dt >
@@ -1515,20 +1510,14 @@ <h2><a>MmsMessage</a> Interface</h2>
1515
1510
< dt > readonly attribute MmsAttachments[]? attachments</ dt >
1516
1511
< dd > MUST return the set of attachments of the MMS message.</ dd >
1517
1512
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 >
1522
1515
1523
- < dt > readonly attribute DOMString deliveryStatus[]</ dt >
1516
+ < dt > readonly attribute DeliveryStatus deliveryStatus[]</ dt >
1524
1517
< dd > MUST return an array with each of the elements indicating the delivery
1525
1518
status to each of the recipients of the message, in order starting with the
1526
1519
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 >
1532
1521
1533
1522
</ dl >
1534
1523
</ section >
@@ -1610,7 +1599,7 @@ <h2><a>Conversation</a> Interface</h2>
1610
1599
within the implementation, i.e. there cannot be any other conversation with
1611
1600
the same identifier.</ dd >
1612
1601
1613
- < dt > readonly attribute DOMString type</ dt >
1602
+ < dt > readonly attribute MessageType type</ dt >
1614
1603
< dd > MUST return the type of conversation, with value 'participants' if the
1615
1604
conversation is defined as the set of messages exchanged among the same set
1616
1605
of parties, and 'subject' if the conversation is defined as the set of
@@ -1756,7 +1745,7 @@ <h2><a>MessagingFilter</a> Interface</h2>
1756
1745
< code > Messaging</ code > interface).
1757
1746
< dl title ="interface MessagingFilter : AbstractFilter "
1758
1747
class ="idl ">
1759
- < dt > attribute DOMString ? type</ dt >
1748
+ < dt > attribute MessageType ? type</ dt >
1760
1749
< dd > Indicates whether just the SMS or MMS messages are to be provided in the
1761
1750
results of this filter, respectively if it is set to string value 'SMS' or
1762
1751
'MMS'.
@@ -1778,13 +1767,9 @@ <h2><a>MessagingFilter</a> Interface</h2>
1778
1767
< dd > Indicates that just messages sent to one of these numbers are to be
1779
1768
provided in the results of this filter.</ dd >
1780
1769
1781
- < dt > attribute DOMString ? state</ dt >
1770
+ < dt > attribute (SmsState or MmsState) ? state</ dt >
1782
1771
< 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.
1788
1773
1789
1774
< dt > attribute DOMString? serviceID</ dt >
1790
1775
< dd > Indicates that just messages associated to the messaging service with
@@ -1887,6 +1872,115 @@ <h2><a>AttributeRangeFilter</a> Interface</h2>
1887
1872
</ dl >
1888
1873
</ section >
1889
1874
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
+
1890
1984
<!------------------------ Acknowledgements ---------------------------------->
1891
1985
< section >
1892
1986
< h2 > Acknowledgements</ h2 >
0 commit comments