@@ -670,6 +670,10 @@ <h3>Steps</h3>
670
670
< li > < a > Queue a task</ a > to < a > fire an event</ a > named
671
671
< code > < a > received</ a > </ code > with the < code > message</ code > attribute set
672
672
to the newly created < code > SmsMessage</ code > instance.
673
+ < li > < a > Queue a task</ a > to fire a system message named
674
+ < code > received</ code > of type < code > < a > ReceivedMessage</ a > </ code > with the
675
+ < code > message</ code > attribute set to the newly created
676
+ < code > SmsMessage</ code > instance.
673
677
</ ol >
674
678
675
679
< p > Upon a delivery report of a previously sent SMS message being received, the
@@ -689,6 +693,18 @@ <h3>Steps</h3>
689
693
< li > the < code > recipients</ code > attribute set to the recipient of such
690
694
message.
691
695
</ ol >
696
+ < li > < a > Queue a task</ a > to fire a system message of type
697
+ < code > < a > DeliveryReport</ a > </ code > named < a > deliverysuccess</ a > or
698
+ < a > deliveryfailure</ a > respectively if the delivery was successfull or
699
+ not, with
700
+ < ol >
701
+ < li > the < code > messageID</ code > attribute set to the identifier of the
702
+ < code > SmsMessage</ code > to which this confirmation is related,
703
+ < li > the < code > serviceID</ code > attribute set to the identifier of the
704
+ service used to send such message, and
705
+ < li > the < code > recipients</ code > attribute set to the recipient of such
706
+ message.
707
+ </ ol >
692
708
</ ol >
693
709
694
710
< p > The < dfn > < code > clear</ code > </ dfn > method when invoked MUST run the
@@ -1111,6 +1127,10 @@ <h3>Steps</h3>
1111
1127
< li > < a > Queue a task</ a > to < a > fire an event</ a > named
1112
1128
< code > < a > received</ a > </ code > with the < code > message</ code > attribute set
1113
1129
to the newly created < code > MmsMessage</ code > instance.
1130
+ < li > < a > Queue a task</ a > to fire a system message named
1131
+ < code > received</ code > of type < code > < a > ReceivedMessage</ a > </ code > with the
1132
+ < code > message</ code > attribute set to the newly created
1133
+ < code > MmsMessage</ code > instance.
1114
1134
</ ol >
1115
1135
</ ol >
1116
1136
@@ -1184,6 +1204,18 @@ <h3>Steps</h3>
1184
1204
< li > the < code > recipients</ code > attribute set to the subset of the
1185
1205
original recipients to which this delivery report is related.
1186
1206
</ ol >
1207
+ < li > < a > Queue a task</ a > to fire a system message of type
1208
+ < code > < a > DeliveryReport</ a > </ code > named < a > deliverysuccess</ a > or
1209
+ < a > deliveryfailure</ a > respectively if the delivery was successfull or
1210
+ not, with
1211
+ < ol >
1212
+ < li > the < code > messageID</ code > attribute set to the identifier of the
1213
+ < code > MmsMessage</ code > to which this confirmation is related,
1214
+ < li > the < code > serviceID</ code > attribute set to the identifier of the
1215
+ service used to send such message, and
1216
+ < li > the < code > recipients</ code > attribute set to the recipient of such
1217
+ message.
1218
+ </ ol >
1187
1219
</ ol >
1188
1220
1189
1221
< p > The < dfn > < code > clear</ code > </ dfn > method when invoked MUST run the
@@ -1547,6 +1579,58 @@ <h2><a>MessagingCursor</a> Interface</h2>
1547
1579
</ section >
1548
1580
1549
1581
1582
+ <!------------------------ Interface ReceivedMessage ------------------------->
1583
+ < section >
1584
+ < h2 > < a > ReceivedMessage</ a > Interface</ h2 >
1585
+ < p > The < a > ReceivedMessage</ a > interface represents a system message related to
1586
+ a received message. This event is originated from the system and will start
1587
+ the application if it is not currently running.
1588
+
1589
+ < p > The application that consumes this API SHOULD set a message handler for the
1590
+ < code > ReceivedMessage</ code > system message to listen for when a system
1591
+ message related to a received message is fired.
1592
+
1593
+ < dl title ="interface ReceivedMessage "
1594
+ class ="idl ">
1595
+ < dt > readonly attribute (SmsMessage or MmsMessage) message</ dt >
1596
+ < dd > MUST return the < code > SmsMessage</ code > or < code > MmsMessage</ code >
1597
+ object to which this system message is related.</ dd >
1598
+ </ dl >
1599
+ </ section >
1600
+
1601
+
1602
+ <!------------------------ Interface DeliveryReport -------------------------->
1603
+ < section >
1604
+ < h2 > < a > DeliveryReport</ a > Interface</ h2 >
1605
+ < p > The < a > DeliveryReport</ a > interface represents a system message related to
1606
+ a delivery report of a sent message. This event is originated from the system
1607
+ and will start the application if it is not currently running.
1608
+
1609
+ < p > The application that consumes this API MAY set a message handler for the
1610
+ < code > DeliveryReport</ code > system message to listen for when a system
1611
+ message related to a received delivery report is fired.
1612
+
1613
+ < dl title ="interface DeliveryReport "
1614
+ class ="idl ">
1615
+ < dt > readonly attribute DOMString serviceID</ dt >
1616
+ < dd > MUST return the identifier of the service used to send the message to
1617
+ which this delivery report is related.</ dd >
1618
+ < dt > readonly attribute DOMString messageID</ dt >
1619
+ < dd > MUST return the identifier of the message to which this delivery
1620
+ report is related.</ dd >
1621
+ < dt > readonly attribute DOMString[] recipients</ dt >
1622
+ < dd > MUST return an array contining the addresses of the subset of the
1623
+ original recipients of the message to which this delivery report is
1624
+ related. As delivery reports related to just part of the recipients of the
1625
+ MMS message are possible, this array may not contain the full list of
1626
+ recipients to which the MMS message was sent. If the delivery report is
1627
+ related to an SMS message then the array will contain a single element
1628
+ corresponding to the single recipient of the SMS message.
1629
+ </ dd >
1630
+ </ dl >
1631
+ </ section >
1632
+
1633
+
1550
1634
<!------------------------ Interface MessagingEvent -------------------------->
1551
1635
< section >
1552
1636
< h2 > < a > MessagingEvent</ a > Interface</ h2 >
0 commit comments