nsISupports
Last changed in Gecko 15.0 (Firefox 15.0 / Thunderbird 15.0 / SeaMonkey 2.12)Implemented by: @mozilla.org/sms/smsdatabaseservice;1
. To create an instance, use:
var smsService = Components.classes["@mozilla.org/sms/smsdatabaseservice;1"] .createInstance(Components.interfaces.nsISmsDatabaseService);
long saveReceivedMessage(in DOMString aSender, in DOMString aBody, in unsigned long long aDate); |
long saveSentMessage(in DOMString aReceiver, in DOMString aBody, in unsigned long long aDate); |
void getMessage(in long messageId, in long requestId, [optional] in unsigned long long processId); |
void deleteMessage(in long messageId, in long requestId, [optional] in unsigned long long processId); |
void createMessageList(in nsIDOMMozSmsFilter filter, in boolean reverse, in long requestId, [optional] in unsigned long long processId); |
void getNextMessageInList(in long listId, in long requestId, [optional] in unsigned long long processId); |
void clearMessageList(in long listId); |
void markMessageRead(in long messageId, in boolean value, in long requestId, [optional] in unsigned long long processId) |
void saveReceivedMessage( in DOMString aSender, in DOMString aBody, in unsigned long long aDate );
aSender
DOMString
with the sender of the text message.aBody
DOMString
containing the body text of the message.aDate
void saveSentMessage( in DOMString a Receiver, in DOMString aBody, in unsigned long long aDate );
aReceiver
DOMString
with the receiver of the text message.aBody
DOMString
containing the body text of the message.aDate
void getMessage( in long messageId, in long requestId, [optional] in unsigned long long processId );
messageId
requestId
processId
Optionalvoid deleteMessage( in long messageId, in long requestId, [optional] in unsigned long long processId );
messageId
requestId
processId
Optionalvoid createMessageList( in nsIDOMMozSmsFilter filter, in boolean reverse, in long requestId, [optional] in unsigned long long processId );
filter
SmsFilter
to filter out SMS messages from a list.reverse
requestId
processId
Optionalvoid getNextMessageInList( in long listId, in long requestId, [optional] in unsigned long long processId );
listId
requestId
processId
Optionalvoid getNextMessageInList( in long listId, );
listId
void markMessageRead( in long messageId, in boolean value, in long requestId, [optional] in unsigned long long processId );
messageId
value
requestId
processId
Optional