michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIDOMMozSmsMessage; michael@0: interface nsIDOMMozMmsMessage; michael@0: interface nsIDOMMozMobileMessageThread; michael@0: interface nsIDOMMozSmsSegmentInfo; michael@0: michael@0: %{C++ michael@0: #define MOBILE_MESSAGE_SERVICE_CID { 0x829c1dd6, 0x0466, 0x4591, { 0x83, 0x6f, 0xb8, 0xf6, 0xfd, 0x1f, 0x7b, 0xa5 } } michael@0: #define MOBILE_MESSAGE_SERVICE_CONTRACTID "@mozilla.org/mobilemessage/mobilemessageservice;1" michael@0: %} michael@0: michael@0: [scriptable, builtinclass, uuid(17fce9e4-af56-11e3-83d9-b71055e95493)] michael@0: interface nsIMobileMessageService : nsISupports michael@0: { michael@0: [implicit_jscontext] michael@0: nsIDOMMozSmsMessage createSmsMessage(in long id, michael@0: in unsigned long long threadId, michael@0: in DOMString iccId, michael@0: in DOMString delivery, michael@0: in DOMString deliveryStatus, michael@0: in DOMString sender, michael@0: in DOMString receiver, michael@0: in DOMString body, michael@0: in DOMString messageClass, michael@0: in unsigned long long timestamp, michael@0: in unsigned long long sentTimestamp, michael@0: in unsigned long long deliveryTimestamp, michael@0: in bool read); michael@0: michael@0: [implicit_jscontext] michael@0: nsIDOMMozMmsMessage createMmsMessage(in long id, michael@0: in unsigned long long threadId, michael@0: in DOMString iccId, michael@0: in DOMString delivery, michael@0: in jsval deliveryInfo, michael@0: in DOMString sender, michael@0: in jsval receivers, michael@0: in unsigned long long timestamp, michael@0: in unsigned long long sentTimestamp, michael@0: in boolean read, michael@0: in DOMString subject, michael@0: in DOMString smil, michael@0: in jsval attachments, michael@0: in unsigned long long expiryDate, michael@0: in boolean readReportRequested); michael@0: michael@0: nsIDOMMozSmsSegmentInfo createSmsSegmentInfo(in long segments, michael@0: in long charsPerSegment, michael@0: in long charsAvailableInLastSegment); michael@0: michael@0: [implicit_jscontext] michael@0: nsIDOMMozMobileMessageThread createThread(in unsigned long long id, michael@0: in jsval participants, michael@0: in unsigned long long timestamp, michael@0: in DOMString lastMessageSubject, michael@0: in DOMString body, michael@0: in unsigned long long unreadCount, michael@0: in DOMString aLastMessageType); michael@0: };