B2G/QA/WebAPI Test Plan/WebSMS: Difference between revisions

Jump to navigation Jump to search
Line 40: Line 40:
=== Related Prefs ===
=== Related Prefs ===
* <tt>dom.sms.enabled</tt>
* <tt>dom.sms.enabled</tt>
* <tt>dom.sms.whitelist</tt>
* <tt>dom.sms.whitelist</tt>


Line 107: Line 108:


=== [http://mxr.mozilla.org/mozilla-central/source/dom/sms/interfaces/nsIDOMSmsRequest.idl nsIDOMSmsRequest] : nsIDOMDOMRequest ===
=== [http://mxr.mozilla.org/mozilla-central/source/dom/sms/interfaces/nsIDOMSmsRequest.idl nsIDOMSmsRequest] : nsIDOMDOMRequest ===
&nbsp;
=== [http://mxr.mozilla.org/mozilla-central/source/dom/sms/interfaces/nsISmsDatabaseService.idl nsISmsDatabaseService] : nsISupports ===
==== Methods ====
* <tt>long saveReceivedMessage(in DOMString aSender, in DOMString aBody, in unsigned long long aDate)</tt><br>Takes some information required to save the message and returns its id.
* <tt>long saveSentMessage(in DOMString aReceiver, in DOMString aBody, in unsigned long long aDate)</tt><br>Takes some information required to save the message and returns its id.
* <tt>void getMessage(in long messageId, in long requestId, [optional] in unsigned long long processId)</tt>
* <tt>void createMessageList(in nsIDOMMozSmsFilter filter, in boolean reverse, in long requestId, [optional] in unsigned long long processId)</tt>
* <tt>void getNextMessageInList(in long listId, in long requestId, [optional] in unsigned long long processId)</tt>
* <tt>void clearMessageList(in long listId);</tt>
* <tt>void markMessageRead(in long messageId, in boolean value, in long requestId, [optional] in unsigned long long processId);</tt>
=== [http://mxr.mozilla.org/mozilla-central/source/dom/sms/interfaces/nsISmsRequestManager.idl nsISmsRequestManager] : nsISupports ===
==== Constants ====
* <tt>unsigned short SUCCESS_NO_ERROR</tt>
* <tt>unsigned short NO_SIGNAL_ERROR</tt>
* <tt>unsigned short NOT_FOUND_ERROR</tt>
* <tt>unsigned short UNKNOWN_ERROR</tt>
* <tt>unsigned short INTERNAL_ERROR</tt>
==== Methods ====
* <tt>long createRequest(in nsIDOMMozSmsManager aManager, out nsIDOMMozSmsRequest aRequest)</tt><br>Create a new request object, return the request ID
* <tt>long addRequest(in nsIDOMMozSmsRequest aRequest)</tt><br>Track an already existing request object, return the request ID
* <tt>void notifySmsSent(in long aRequestId, in nsIDOMMozSmsMessage aMessage)</tt>


=== [http://mxr.mozilla.org/mozilla-central/source/nsISomeInterface.idl#1 nsISomeInterface] ===
* <tt>void notifySmsSendFailed(in long aRequestId, in long aError)</tt>
==== Attributes ====
 
* <tt>readonly DOMString someAttribute</tt><br><small>values can be foo, bar, baz, bam</small>
* <tt>void notifyGotSms(in long aRequestId, in nsIDOMMozSmsMessage aMessage)</tt>
 
* <tt>void notifyGetSmsFailed(in long aRequestId, in long aError)</tt>
 
* <tt>void notifySmsDeleted(in long aRequestId, in bool aDeleted)</tt>
 
* <tt>void notifySmsDeleteFailed(in long aRequestId, in long aError</tt>
 
* <tt>void notifyNoMessageInList(in long aRequestId)</tt>
 
* <tt>void notifyCreateMessageList(in long aRequestId, in long aListId, in nsIDOMMozSmsMessage aMessage)</tt>
 
* <tt>void notifyGotNextMessage(in long aRequestId, in nsIDOMMozSmsMessage aMessage)</tt>
 
* <tt>void notifyReadMessageListFailed(in long aRequestId, in long aError)</tt>
 
* <tt>void notifyMarkedMessageRead(in long aRequestId, in bool aRead)</tt>
 
* <tt>void notifyMarkMessageReadFailed(in long aRequestId, in long aError)</tt>
 
=== [http://mxr.mozilla.org/mozilla-central/source/dom/sms/interfaces/nsISmsService.idl nsISmsService] : nsISupports ===


==== Methods ====
==== Methods ====
* <tt>boolean someMethod(in DOMString param)</tt>
* <tt>boolean hasSupport()</tt>
* <tt>void anotherMethod()</tt>
 
* <tt>unsigned short getNumberOfMessagesForText(in DOMString text)</tt>
 
* <tt>void send(in DOMString number, in DOMString message, in long requestId, [optional] in unsigned long long processId)</tt>
 
* <tt>nsIDOMMozSmsMessage createSmsMessage(in long id, in DOMString delivery, in DOMString sender, in DOMString receiver, in DOMString body, in jsval timestamp, in bool read)</tt>


==== Events ====
==== Events ====
canmove, Confirmed users
2,041

edits

Navigation menu