nsISupports
Last changed in Gecko 15.0 (Firefox 15.0 / Thunderbird 15.0 / SeaMonkey 2.12)Implemented by: @mozilla.org/sms/smsrequestmanager;1
. To create an instance, use:
var smsRequestManager = Components.classes["@mozilla.org/sms/smsrequestmanager;1"] .createInstance(Components.interfaces.nsISmsRequestManager);
long addRequest(in nsIDOMMozSmsRequest aRequest); |
long createRequest(in nsIDOMMozSmsManager aManager, out nsIDOMMozSmsRequest aRequest); |
void notifyCreateMessageList(in long aRequestId, in long aListId, in nsIDOMMozSmsMessage aMessage); |
void notifyGetSmsFailed(in long aRequestId, in long aError); |
void notifyGotNextMessage(in long aRequestId, in nsIDOMMozSmsMessage aMessage); |
void notifyGotSms(in long aRequestId, in nsIDOMMozSmsMessage aMessage); |
void notifyMarkedMessageRead(in long aRequestId, in bool aRead); |
void notifyMarkMessageReadFailed(in long aRequestId, in long aError); |
void notifyNoMessageInList(in long aRequestId); |
void notifyReadMessageListFailed(in long aRequestId, in long aError); |
void notifySmsDeleted(in long aRequestId, in bool aDeleted); |
void notifySmsDeleteFailed(in long aRequestId, in long aError); |
void notifySmsSendFailed(in long aRequestId, in long aError); |
void notifySmsSent(in long aRequestId, in nsIDOMMozSmsMessage aMessage); |
All SMS related errors that could apply to SmsRequest objects.
Constant | Value | Description |
SUCCESS_NO_ERROR | 0 | |
NO_SIGNAL_ERROR | 1 | |
NOT_FOUND_ERROR | 2 | |
UNKNOWN_ERROR | 3 | |
INTERNAL_ERROR | 4 |
Track an already existing request object.
long addRequest( in nsIDOMMozSmsRequest aRequest );
aRequest
SmsRequest
.The request ID.
Create a new request object.
long createRequest( in nsIDOMMozSmsManager aManager, out nsIDOMMozSmsRequest aRequest );
aManager
SmsManager
.aRequest
SmsRequest
.The request ID.
void notifyCreateMessageList( in long aRequestId, in long aListId, in nsIDOMMozSmsMessage aMessage );
aRequestId
aListId
aMessage
SmsMessage
.void notifyGetSmsFailed( in long aRequestId, in long aError );
aRequestId
aError
void notifyGotNextMessage( in long aRequestId, in nsIDOMMozSmsMessage aMessage );
aRequestId
aMessage
SmsMessage
.void notifyGotSms( in long aRequestId, in nsIDOMMozSmsMessage aMessage );
aRequestId
aMessage
SmsMessage
.void notifyMarkedMessageRead( in long aRequestId in bool aRead );
aRequestId
aRead
void notifyMarkMessageReadFailed( in long aRequestId in long aError );
aRequestId
aError
void notifyNoMessageInList( in long aRequestId );
aRequestId
void notifyReadMessageListFailed( in long aRequestId, in long aError );
aRequestId
aError
void notifySmsDeleted( in long aRequestId, in bool aDeleted );
aRequestId
aDeleted
void notifySmsDeleteFailed( in long aRequestId, in long aError );
aRequestId
aError
void notifySmsSendFailed( in long aRequestId, in long aError );
aRequestId
aError
void notifySmsSent( in long aRequestId, in nsIDOMMozSmsMessage aMessage );
aRequestId
aMessage
SmsMessage
.