From dbb2ed788189669aaa6bb307e856c74f075d37ce Mon Sep 17 00:00:00 2001 From: Vicamo Yang Date: Thu, 24 Oct 2013 16:14:50 +0800 Subject: [PATCH] Bug 926302 - 1/3: B2G DSDS - numRadioInterfaces and default service ids. Interface changes. r=hsinyi --- dom/mobilemessage/interfaces/nsIMmsService.idl | 4 +++- dom/mobilemessage/interfaces/nsISmsService.idl | 4 +++- dom/telephony/nsITelephonyProvider.idl | 4 +++- dom/voicemail/nsIVoicemailProvider.idl | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/dom/mobilemessage/interfaces/nsIMmsService.idl b/dom/mobilemessage/interfaces/nsIMmsService.idl index aca7eaaa4e5e..59f9e366c0c9 100644 --- a/dom/mobilemessage/interfaces/nsIMmsService.idl +++ b/dom/mobilemessage/interfaces/nsIMmsService.idl @@ -12,9 +12,11 @@ interface nsIDOMBlob; #define MMS_SERVICE_CONTRACTID "@mozilla.org/mms/mmsservice;1" %} -[scriptable, uuid(e5ef630a-eab7-425a-ac42-650ef5c4fcef)] +[scriptable, uuid(5dc8b3bc-c3a9-45ea-8ee0-7562b0e57257)] interface nsIMmsService : nsISupports { + readonly attribute unsigned long mmsDefaultServiceId; + void send(in jsval parameters /* MmsParameters */, in nsIMobileMessageCallback request); diff --git a/dom/mobilemessage/interfaces/nsISmsService.idl b/dom/mobilemessage/interfaces/nsISmsService.idl index e3cde07aeb31..4d05bee6b17d 100644 --- a/dom/mobilemessage/interfaces/nsISmsService.idl +++ b/dom/mobilemessage/interfaces/nsISmsService.idl @@ -13,9 +13,11 @@ interface nsIMobileMessageCallback; #define SMS_SERVICE_CONTRACTID "@mozilla.org/sms/smsservice;1" %} -[scriptable, builtinclass, uuid(0f3f75ec-00dd-11e3-87ac-0b1d5c79afdf)] +[scriptable, builtinclass, uuid(ec3221fb-2d4a-4ccd-ac64-65c1b2dee5dd)] interface nsISmsService : nsISupports { + readonly attribute unsigned long smsDefaultServiceId; + boolean hasSupport(); void getSegmentInfoForText(in DOMString text, diff --git a/dom/telephony/nsITelephonyProvider.idl b/dom/telephony/nsITelephonyProvider.idl index d8cb28adc703..cda5e1ba109e 100644 --- a/dom/telephony/nsITelephonyProvider.idl +++ b/dom/telephony/nsITelephonyProvider.idl @@ -118,7 +118,7 @@ interface nsITelephonyListener : nsISupports * XPCOM component (in the content process) that provides the telephony * information. */ -[scriptable, uuid(effca006-1ca8-47f7-9bab-1323f90a14ec)] +[scriptable, uuid(f7680b82-53fc-42a7-9adf-bc0f2726425c)] interface nsITelephonyProvider : nsISupports { const unsigned short CALL_STATE_UNKNOWN = 0; @@ -136,6 +136,8 @@ interface nsITelephonyProvider : nsISupports const unsigned short NOTIFICATION_REMOTE_HELD = 0; const unsigned short NOTIFICATION_REMOTE_RESUMED = 1; + readonly attribute unsigned long defaultServiceId; + /** * Called when a content process registers receiving unsolicited messages from * RadioInterfaceLayer in the chrome process. Only a content process that has diff --git a/dom/voicemail/nsIVoicemailProvider.idl b/dom/voicemail/nsIVoicemailProvider.idl index 4d036386f6ac..115e35cc80ab 100644 --- a/dom/voicemail/nsIVoicemailProvider.idl +++ b/dom/voicemail/nsIVoicemailProvider.idl @@ -22,9 +22,11 @@ interface nsIVoicemailListener : nsISupports * XPCOM component (in the content process) that provides the voicemail * information. */ -[scriptable, uuid(37bc0991-21a3-4de9-b888-d667fea6c05d)] +[scriptable, uuid(38746f3c-f4e3-4804-b900-ba2463b923c8)] interface nsIVoicemailProvider : nsISupports { + readonly attribute unsigned long voicemailDefaultServiceId; + /** * Called when a content process registers receiving unsolicited messages from * RadioInterfaceLayer in the chrome process. Only a content process that has