diff -r 000000000000 -r 6474c204b198 dom/mobilemessage/interfaces/nsIMmsService.idl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dom/mobilemessage/interfaces/nsIMmsService.idl Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,30 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "nsISupports.idl" +interface nsIMobileMessageCallback; +interface nsIDOMBlob; + +%{C++ +#define MMS_SERVICE_CID { 0x06d9124b, 0x80e0, 0x40ed, \ + { 0x98, 0x71, 0x4d, 0x23, 0x4a, 0x0f, 0xd4, 0x31 } } +#define MMS_SERVICE_CONTRACTID "@mozilla.org/mms/mmsservice;1" +%} + +[scriptable, uuid(543278b3-d926-4c65-84b8-b49ad7a17d21)] +interface nsIMmsService : nsISupports +{ + readonly attribute unsigned long mmsDefaultServiceId; + + void send(in unsigned long serviceId, + in jsval parameters /* MmsParameters */, + in nsIMobileMessageCallback request); + + void retrieve(in long id, + in nsIMobileMessageCallback request); + + void sendReadReport(in DOMString messageID, + in DOMString toAddress, + in DOMString iccId); +};