@@ -275,11 +275,11 @@ <h2><a>MessagingManager</a> Interface</h2>
275
275
</ dl >
276
276
</ dd >
277
277
278
- < dt > Promise markConversationRead ()</ dt > < dd > This method
279
- requests to mark as read or unread all the messages in the conversation with
280
- identifier equal to the < code > conversationID</ code > parameter. The method returns a new
281
- < code > Promise</ code > that will allow the caller to be notified
282
- about the result (success, error) of the operation.
278
+ < dt > Promise markConversationRead ()</ dt > < dd > This method requests to mark
279
+ as read or unread all the messages in the conversation with identifier equal
280
+ to the < code > conversationID</ code > parameter. The method returns a new
281
+ < code > Promise</ code > that will allow the caller to be notified about the
282
+ result (success, error) of the operation.
283
283
< dl class ='parameters '>
284
284
< dt > DOMString conversationID</ dt > < dd >
285
285
Identifier of the conversation whose messages are requested to be
@@ -396,15 +396,15 @@ <h3>Steps</h3>
396
396
< var > resolver</ var > its associated < code > resolver</ code >
397
397
< li > Return < var > promise</ var > to the caller.
398
398
< li > Make a request to the system to delete the messages in the conversation
399
- with identifier equal to the < code > conversationID</ code > parameter passed in the
400
- request.
399
+ with identifier equal to the < code > conversationID</ code > parameter passed
400
+ in the request.
401
401
< li > If an < var > error</ var > occurs invoke < em > resolver</ em > 's < a
402
402
class ="internalDFN " href ="#dfn-reject-algorithm "> reject algorithm</ a > with
403
403
< em > error</ em > as the < code > value</ code > argument.
404
404
< li > When the request has been successfully completed:
405
405
< ol >
406
- < li > Let < var > conversationID</ var > be the < code > conversationID</ code > parameter
407
- passed in the request
406
+ < li > Let < var > conversationID</ var > be the < code > conversationID</ code >
407
+ parameter passed in the request
408
408
< li > Invoke < em > resolver</ em > 's < a class ="internalDFN "
409
409
href ="#dfn-fulfill-algorithm "> fulfill algorithm</ a > with
410
410
< em > conversationID</ em > as the < code > value</ code > argument.
@@ -419,8 +419,8 @@ <h3>Steps</h3>
419
419
< li > Return < var > promise</ var > to the caller.
420
420
< li > Make a request to the system to mark as read/unread (depending on the
421
421
< code > value</ code > parameter being respectively 'true' or 'false') the
422
- message with identifier equal to the < code > messageID</ code > parameter passed in
423
- the request.
422
+ message with identifier equal to the < code > messageID</ code > parameter
423
+ passed in the request.
424
424
< li > If an < var > error</ var > occurs invoke < em > resolver</ em > 's < a
425
425
class ="internalDFN " href ="#dfn-reject-algorithm "> reject algorithm</ a > with
426
426
< em > error</ em > as the < code > value</ code > argument.
@@ -442,15 +442,15 @@ <h3>Steps</h3>
442
442
< li > Return < var > promise</ var > to the caller.
443
443
< li > Make a request to the system to mark as read/unread (depending on the
444
444
< code > value</ code > parameter being respectively 'true' or 'false') the
445
- messages in the conversation with identifier equal to the < code > conversationID </ code >
446
- parameter passed in the request.
445
+ messages in the conversation with identifier equal to the
446
+ < code > conversationID </ code > parameter passed in the request.
447
447
< li > If an < var > error</ var > occurs invoke < em > resolver</ em > 's < a
448
448
class ="internalDFN " href ="#dfn-reject-algorithm "> reject algorithm</ a > with
449
449
< em > error</ em > as the < code > value</ code > argument.
450
450
< li > When the request has been successfully completed:
451
451
< ol >
452
- < li > Let < var > conversationID</ var > be the < code > conversationID</ code > parameter
453
- passed in the request
452
+ < li > Let < var > conversationID</ var > be the < code > conversationID</ code >
453
+ parameter passed in the request
454
454
< li > Invoke < em > resolver</ em > 's < a class ="internalDFN "
455
455
href ="#dfn-fulfill-algorithm "> fulfill algorithm</ a > with
456
456
< em > conversationID</ em > as the < code > value</ code > argument.
@@ -601,17 +601,15 @@ <h3>Steps</h3>
601
601
the < code > serviceID</ code > parameter, if provided, or otherwise to the
602
602
first item in the < code > serviceIDs</ code > attribute of the
603
603
< code > SmsManager</ code > .
604
- < li > Set the < code > from</ code > of < em > smsMessage</ em > to the
605
- number of the mobile subscription used to send this SMS message.
604
+ < li > Set the < code > from</ code > of < em > smsMessage</ em > to the number of the
605
+ mobile subscription used to send this SMS message.
606
606
< li > Set the < code > read</ code > of < em > smsMessage</ em > to 'true'.
607
- < li > Set the < code > to</ code > of < em > smsMessage</ em > to
608
- the value of the < code > to</ code > parameter.
609
- < li > Set the < code > body</ code > of < em > smsMessage</ em > to the value
610
- of the < code > text</ code > parameter.
611
- < li > Set the < code > messageClass</ code > of < em > smsMessage</ em > to
612
- 'class1'.
613
- < li > Set the < code > state</ code > of < em > smsMessage</ em > to
614
- 'sending'.
607
+ < li > Set the < code > to</ code > of < em > smsMessage</ em > to the value of the
608
+ < code > to</ code > parameter.
609
+ < li > Set the < code > body</ code > of < em > smsMessage</ em > to the value of the
610
+ < code > text</ code > parameter.
611
+ < li > Set the < code > messageClass</ code > of < em > smsMessage</ em > to 'class1'.
612
+ < li > Set the < code > state</ code > of < em > smsMessage</ em > to 'sending'.
615
613
< li > Set the < code > deliveryStatus</ code > of < em > smsMessage</ em > to
616
614
'pending' if a delivery report has been requested or to 'not-applicable'
617
615
otherwise.
@@ -690,12 +688,12 @@ <h3>Steps</h3>
690
688
TP-Service-Centre-Time-Stamp (TP-SCTS) parameter received in the SMS
691
689
DELIVER Protocol Data Unit [[!GSM-SMS]].
692
690
< li > Set the < code > read</ code > of < em > smsMessage</ em > to 'false'.
693
- < li > Set the < code > to</ code > of < em > smsMessage</ em > to the
694
- recipient of the SMS message, i.e. the value of the TP Destination
695
- Address (TP-DA) field of the SMS message [[!GSM-SMS]].
696
- < li > Set the < code > messageClass</ code > of < em > smsMessage</ em > to
697
- the message class indicated in the TP-Data-Coding-Scheme (TP-DCS) field of
691
+ < li > Set the < code > to</ code > of < em > smsMessage</ em > to the recipient of the
692
+ SMS message, i.e. the value of the TP Destination Address (TP-DA) field of
698
693
the SMS message [[!GSM-SMS]].
694
+ < li > Set the < code > messageClass</ code > of < em > smsMessage</ em > to the
695
+ message class indicated in the TP-Data-Coding-Scheme (TP-DCS) field of the
696
+ SMS message [[!GSM-SMS]].
699
697
< li > Set the < code > body</ code > element to the text of the received SMS
700
698
message, i.e. the value of the SM element contained within the TP User
701
699
Data (TP-UD) field of the SMS message [[!GSM-SMS]].
@@ -933,9 +931,10 @@ <h2><a>MmsManager</a> Interface</h2>
933
931
934
932
< dt > Promise fetch ()</ dt >
935
933
< dd > This method requests to fetch an MMS message with identifier equal to
936
- the indicated in the < code > messageID</ code > parameter from the URL indicated in the
937
- MMS notification. The method returns a new < code > Promise</ code > that will
938
- allow the caller to be notified about the result (success, error) of the
934
+ the indicated in the < code > messageID</ code > parameter from the URL indicated
935
+ in the MMS notification. The method returns a new < code > Promise</ code > that
936
+ will allow the caller to be notified about the result (success, error) of
937
+ the
939
938
operation.
940
939
< dl class ='parameters '>
941
940
< dt > DOMString messageID</ dt >
@@ -1013,7 +1012,8 @@ <h3>Steps</h3>
1013
1012
< li > Let < var > promise</ var > be a new < code > Promise</ code > object and
1014
1013
< var > resolver</ var > its associated < code > resolver</ code >
1015
1014
< li > Return < var > promise</ var > to the caller.
1016
- < li > Let < var > mmsMessage</ var > be a new instance of < code > MmsMessage</ code > and:
1015
+ < li > Let < var > mmsMessage</ var > be a new instance of < code > MmsMessage</ code >
1016
+ and:
1017
1017
< ol >
1018
1018
< li > Generate a identifier for this message that is globally unique within
1019
1019
the implementation, i.e. there cannot be any other message with the same
@@ -1026,24 +1026,23 @@ <h3>Steps</h3>
1026
1026
the < code > serviceID</ code > parameter, if provided, or otherwise to the
1027
1027
first item in the < code > serviceIDs</ code > attribute of the
1028
1028
< code > MmsManager</ code > .
1029
- < li > Set the < code > from</ code > of < em > mmsMessage</ em > to the
1030
- number of the mobile subscription used to send this MMS message.
1029
+ < li > Set the < code > from</ code > of < em > mmsMessage</ em > to the number of the
1030
+ mobile subscription used to send this MMS message.
1031
1031
< li > Set the < code > read</ code > of < em > mmsMessage</ em > to 'true'.
1032
- < li > Set the < code > to</ code > of < em > mmsMessage</ em > to the
1033
- < code > to </ code > in the < code > mmsContent</ code > parameter.
1034
- < li > Set the < code > cc</ code > of < em > mmsMessage</ em > to the
1035
- < code > cc </ code > array in the < code > mmsContent</ code > parameter.
1032
+ < li > Set the < code > to</ code > of < em > mmsMessage</ em > to the < code > to </ code >
1033
+ in the < code > mmsContent</ code > parameter.
1034
+ < li > Set the < code > cc</ code > of < em > mmsMessage</ em > to the < code > cc </ code >
1035
+ array in the < code > mmsContent</ code > parameter.
1036
1036
< li > Set the < code > bcc</ code > of < em > mmsMessage</ em > to the
1037
1037
< code > bcc</ code > array in the < code > mmsContent</ code > parameter.
1038
- < li > Set the < code > subject</ code > of < em > mmsMessage</ em > to the
1039
- value of the the < code > subject</ code > parameter in < code > mmsContent</ code > .
1040
- < li > Set the < code > smil</ code > of < em > mmsMessage</ em > to the value
1041
- of the the < code > smil</ code > parameter in < code > mmsContent</ code > .
1042
- < li > Set the < code > attachments</ code > of < em > mmsMessage</ em > to the
1043
- value of the the < code > attachments</ code > array in < code > mmsContent</ code >
1038
+ < li > Set the < code > subject</ code > of < em > mmsMessage</ em > to the value of
1039
+ the the < code > subject</ code > parameter in < code > mmsContent</ code > .
1040
+ < li > Set the < code > smil</ code > of < em > mmsMessage</ em > to the value of the
1041
+ the < code > smil</ code > parameter in < code > mmsContent</ code > .
1042
+ < li > Set the < code > attachments</ code > of < em > mmsMessage</ em > to the value
1043
+ of the the < code > attachments</ code > array in < code > mmsContent</ code >
1044
1044
parameter.
1045
- < li > Set the < code > state</ code > of < em > mmsMessage</ em > to
1046
- 'sending'.
1045
+ < li > Set the < code > state</ code > of < em > mmsMessage</ em > to 'sending'.
1047
1046
< li > Add a new item in the < code > deliveryInfo</ code > attribute of
1048
1047
< em > mmsMessage</ em > for each unique recipient included in the
1049
1048
< code > to</ code > , < code > cc</ code > and < code > bcc</ code > parameters (i.e. a
@@ -1063,7 +1062,8 @@ <h3>Steps</h3>
1063
1062
< ol >
1064
1063
< li > If a delivery report had been requested set the
1065
1064
< code > deliveryStatus</ code > attribute of the different items in the
1066
- < code > deliveryInfo</ code > array attribute of < em > mmsMessage</ em > to 'error'.
1065
+ < code > deliveryInfo</ code > array attribute of < em > mmsMessage</ em > to
1066
+ 'error'.
1067
1067
< li > invoke < em > resolver</ em > 's < a class ="internalDFN "
1068
1068
href ="#dfn-reject-algorithm "> reject algorithm</ a > with < em > error</ em > as
1069
1069
the < code > value</ code > argument.
@@ -1117,13 +1117,16 @@ <h3>Steps</h3>
1117
1117
notification, i.e. the value of the TP-Service-Centre-Time-Stamp
1118
1118
(TP-SCTS) parameter received in the SMS-DELIVER Protocol Data Unit
1119
1119
[[!GSM-SMS]].
1120
- < li > Set the < code > expiry</ code > of < em > mmsMessage</ em > to the
1121
- value of the 'X-Mms-Expiry' field of the MMS notification.
1122
- < li > Add a new item in the < code > to</ code > array of < em > mmsMessage</ em > for each of recipients in the 'To' field of the
1123
- MMS notification [[!MMS13]], if present.
1124
- < li > Add a new item in the < code > cc</ code > array of < em > mmsMessage</ em > for each of recipients in the 'Cc' field of the
1125
- MMS notification [[!MMS13]], if present.
1126
- < li > Add a new item in the < code > bcc</ code > array of < em > mmsMessage</ em > for each of recipients in the 'Bcc' field of the
1120
+ < li > Set the < code > expiry</ code > of < em > mmsMessage</ em > to the value of
1121
+ the 'X-Mms-Expiry' field of the MMS notification.
1122
+ < li > Add a new item in the < code > to</ code > array of < em > mmsMessage</ em >
1123
+ for each of recipients in the 'To' field of the MMS notification
1124
+ [[!MMS13]], if present.
1125
+ < li > Add a new item in the < code > cc</ code > array of < em > mmsMessage</ em >
1126
+ for each of recipients in the 'Cc' field of the MMS notification
1127
+ [[!MMS13]], if present.
1128
+ < li > Add a new item in the < code > bcc</ code > array of
1129
+ < em > mmsMessage</ em > for each of recipients in the 'Bcc' field of the
1127
1130
MMS notification [[!MMS13]], if present.
1128
1131
< li > Set the < code > subject</ code > attribute to the value of the 'Subject'
1129
1132
field of the MMS notification [[!MMS13]], if present.
@@ -1158,7 +1161,8 @@ <h3>Steps</h3>
1158
1161
< li > Set the < code > subject</ code > attribute to the value of the 'Subject'
1159
1162
field of the MMS message [[!MMS13]], if present.
1160
1163
< li > Set the < code > smil</ code > attribute to a < code > DOMString</ code >
1161
- containing the SMIL object of the received MMS message [[!MMS13]], if present.
1164
+ containing the SMIL object of the received MMS message [[!MMS13]],
1165
+ if present.
1162
1166
< li > For each of the media files attached to the received MMS message add a
1163
1167
new item to the < code > attachments</ code > array with:
1164
1168
< ol >
0 commit comments