Confirmed users
368
edits
(wip api) |
(→Proposed API: add events) |
||
| Line 56: | Line 56: | ||
* Add a status attribute? (with the following value: ''sending'', ''sent'', ''delivered'' (not sure), ''received'') | * Add a status attribute? (with the following value: ''sending'', ''sent'', ''delivered'' (not sure), ''received'') | ||
* Merge sender/receiver and use the status attribute? | * Merge sender/receiver and use the status attribute? | ||
In addition of these interfaces, there is a new event: | |||
interface nsIDOMSmsEvent : nsIDOMEvent | |||
{ | |||
void initSmsEvent(in DOMString eventTypeArg, | |||
in boolean canBubbleArg, | |||
in boolean cancelableArg, | |||
in nsIDOMSmsMessage message); | |||
readonly attribute nsIDOMSmsMessage message; | |||
} | |||
The ''SmsEvent'' is used for the following events: | |||
''smssent'': happens on all window when a SMS is sent; | |||
''smsdelivered'': happens on all window when a SMS is delivered to the recipient; | |||
''smsreceived'': happens on all window when a SMS is received. | |||
These events carry the SMS in ''event.message''. | |||
A security story has to be defined for these events. | |||