зеркало из https://github.com/mozilla/gecko-dev.git
Bug 859764 - Part 1.2: Clearn Up Naming in IDL. r=echen
This commit is contained in:
Родитель
05e37667fb
Коммит
4c7af114af
|
@ -10,7 +10,7 @@
|
|||
interface nsIGonkMobileMessageDatabaseCallback : nsISupports
|
||||
{
|
||||
/**
|
||||
* |aDomMessage|: the nsIDOMMoz{Mms,Sms}Message
|
||||
* |aDomMessage|: the nsI{Mms,Sms}Message
|
||||
*/
|
||||
void notify(in nsresult aRv, in nsISupports aDomMessage);
|
||||
};
|
||||
|
@ -20,7 +20,7 @@ interface nsIGonkMobileMessageDatabaseRecordCallback : nsISupports
|
|||
{
|
||||
/**
|
||||
* |aMessageRecord| Object: the mobile-message database record
|
||||
* |aDomMessage|: the nsIDOMMoz{Mms,Sms}Message. Noted, this value might be null.
|
||||
* |aDomMessage|: the nsI{Mms,Sms}Message. Noted, this value might be null.
|
||||
*/
|
||||
void notify(in nsresult aRv, in jsval aMessageRecord, in nsISupports aDomMessage);
|
||||
};
|
||||
|
|
|
@ -32,13 +32,13 @@ interface nsIMobileMessageCallback : nsISupports
|
|||
const unsigned short RETRY_REQUIRED_ERROR = 17;
|
||||
|
||||
/**
|
||||
* |message| can be nsIDOMMoz{Mms,Sms}Message.
|
||||
* |message| can be nsI{Mms,Sms}Message.
|
||||
*/
|
||||
void notifyMessageSent(in nsISupports message);
|
||||
void notifySendMessageFailed(in long error, in nsISupports message);
|
||||
|
||||
/**
|
||||
* |message| can be nsIDOMMoz{Mms,Sms}Message.
|
||||
* |message| can be nsI{Mms,Sms}Message.
|
||||
*/
|
||||
void notifyMessageGot(in nsISupports message);
|
||||
void notifyGetMessageFailed(in long error);
|
||||
|
|
|
@ -5,58 +5,58 @@
|
|||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIDeletedMessageInfo;
|
||||
interface nsIDOMMozSmsMessage;
|
||||
interface nsIDOMMozMmsMessage;
|
||||
interface nsIDOMMozMobileMessageThread;
|
||||
interface nsISmsMessage;
|
||||
interface nsIMmsMessage;
|
||||
interface nsIMobileMessageThread;
|
||||
|
||||
%{C++
|
||||
#define MOBILE_MESSAGE_SERVICE_CID { 0x829c1dd6, 0x0466, 0x4591, { 0x83, 0x6f, 0xb8, 0xf6, 0xfd, 0x1f, 0x7b, 0xa5 } }
|
||||
#define MOBILE_MESSAGE_SERVICE_CONTRACTID "@mozilla.org/mobilemessage/mobilemessageservice;1"
|
||||
%}
|
||||
|
||||
[scriptable, builtinclass, uuid(bc28e604-53ee-4be9-af20-268ce9efc61a)]
|
||||
[scriptable, builtinclass, uuid(15267554-8854-11e5-8947-8f2150f4eabc)]
|
||||
interface nsIMobileMessageService : nsISupports
|
||||
{
|
||||
[implicit_jscontext]
|
||||
nsIDOMMozSmsMessage createSmsMessage(in long id,
|
||||
in unsigned long long threadId,
|
||||
in DOMString iccId,
|
||||
in DOMString delivery,
|
||||
in DOMString deliveryStatus,
|
||||
in DOMString sender,
|
||||
in DOMString receiver,
|
||||
in DOMString body,
|
||||
in DOMString messageClass,
|
||||
in unsigned long long timestamp,
|
||||
in unsigned long long sentTimestamp,
|
||||
in unsigned long long deliveryTimestamp,
|
||||
in bool read);
|
||||
nsISmsMessage createSmsMessage(in long id,
|
||||
in unsigned long long threadId,
|
||||
in DOMString iccId,
|
||||
in DOMString delivery,
|
||||
in DOMString deliveryStatus,
|
||||
in DOMString sender,
|
||||
in DOMString receiver,
|
||||
in DOMString body,
|
||||
in DOMString messageClass,
|
||||
in unsigned long long timestamp,
|
||||
in unsigned long long sentTimestamp,
|
||||
in unsigned long long deliveryTimestamp,
|
||||
in bool read);
|
||||
|
||||
[implicit_jscontext]
|
||||
nsIDOMMozMmsMessage createMmsMessage(in long id,
|
||||
in unsigned long long threadId,
|
||||
in DOMString iccId,
|
||||
in DOMString delivery,
|
||||
in jsval deliveryInfo,
|
||||
in DOMString sender,
|
||||
in jsval receivers,
|
||||
in unsigned long long timestamp,
|
||||
in unsigned long long sentTimestamp,
|
||||
in boolean read,
|
||||
in DOMString subject,
|
||||
in DOMString smil,
|
||||
in jsval attachments,
|
||||
in unsigned long long expiryDate,
|
||||
in boolean readReportRequested);
|
||||
nsIMmsMessage createMmsMessage(in long id,
|
||||
in unsigned long long threadId,
|
||||
in DOMString iccId,
|
||||
in DOMString delivery,
|
||||
in jsval deliveryInfo,
|
||||
in DOMString sender,
|
||||
in jsval receivers,
|
||||
in unsigned long long timestamp,
|
||||
in unsigned long long sentTimestamp,
|
||||
in boolean read,
|
||||
in DOMString subject,
|
||||
in DOMString smil,
|
||||
in jsval attachments,
|
||||
in unsigned long long expiryDate,
|
||||
in boolean readReportRequested);
|
||||
|
||||
[implicit_jscontext]
|
||||
nsIDOMMozMobileMessageThread createThread(in unsigned long long id,
|
||||
in jsval participants,
|
||||
in unsigned long long timestamp,
|
||||
in DOMString lastMessageSubject,
|
||||
in DOMString body,
|
||||
in unsigned long long unreadCount,
|
||||
in DOMString aLastMessageType);
|
||||
nsIMobileMessageThread createThread(in unsigned long long id,
|
||||
in jsval participants,
|
||||
in unsigned long long timestamp,
|
||||
in DOMString lastMessageSubject,
|
||||
in DOMString body,
|
||||
in unsigned long long unreadCount,
|
||||
in DOMString aLastMessageType);
|
||||
|
||||
nsIDeletedMessageInfo createDeletedMessageInfo(
|
||||
[array, size_is(msgCount)] in long messageIds,
|
||||
|
|
|
@ -24,7 +24,7 @@ interface nsISmsMessenger : nsISupports
|
|||
* 'sms-sent', 'sms-failed' and 'sms-delivery-error'.
|
||||
*
|
||||
* Note: Except aNotificationType, all parameters are the attributes of the
|
||||
* nsIDOMMozSmsMessage generated by nsIMobileMessageService.createSmsMessage().
|
||||
* nsISmsMessage generated by nsIMobileMessageService.createSmsMessage().
|
||||
*
|
||||
* @param aNotificationType
|
||||
* A predefined constant of nsISmsMessenger.NOTIFICATION_TYPE_*.
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIDOMMozSmsMessage;
|
||||
interface nsIMobileMessageCallback;
|
||||
|
||||
%{C++
|
||||
|
|
Загрузка…
Ссылка в новой задаче