Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsISupports.idl" |
michael@0 | 6 | |
michael@0 | 7 | interface nsIDOMMozSmsMessage; |
michael@0 | 8 | interface nsIDOMMozMmsMessage; |
michael@0 | 9 | interface nsIDOMMozMobileMessageThread; |
michael@0 | 10 | interface nsIDOMMozSmsSegmentInfo; |
michael@0 | 11 | |
michael@0 | 12 | %{C++ |
michael@0 | 13 | #define MOBILE_MESSAGE_SERVICE_CID { 0x829c1dd6, 0x0466, 0x4591, { 0x83, 0x6f, 0xb8, 0xf6, 0xfd, 0x1f, 0x7b, 0xa5 } } |
michael@0 | 14 | #define MOBILE_MESSAGE_SERVICE_CONTRACTID "@mozilla.org/mobilemessage/mobilemessageservice;1" |
michael@0 | 15 | %} |
michael@0 | 16 | |
michael@0 | 17 | [scriptable, builtinclass, uuid(17fce9e4-af56-11e3-83d9-b71055e95493)] |
michael@0 | 18 | interface nsIMobileMessageService : nsISupports |
michael@0 | 19 | { |
michael@0 | 20 | [implicit_jscontext] |
michael@0 | 21 | nsIDOMMozSmsMessage createSmsMessage(in long id, |
michael@0 | 22 | in unsigned long long threadId, |
michael@0 | 23 | in DOMString iccId, |
michael@0 | 24 | in DOMString delivery, |
michael@0 | 25 | in DOMString deliveryStatus, |
michael@0 | 26 | in DOMString sender, |
michael@0 | 27 | in DOMString receiver, |
michael@0 | 28 | in DOMString body, |
michael@0 | 29 | in DOMString messageClass, |
michael@0 | 30 | in unsigned long long timestamp, |
michael@0 | 31 | in unsigned long long sentTimestamp, |
michael@0 | 32 | in unsigned long long deliveryTimestamp, |
michael@0 | 33 | in bool read); |
michael@0 | 34 | |
michael@0 | 35 | [implicit_jscontext] |
michael@0 | 36 | nsIDOMMozMmsMessage createMmsMessage(in long id, |
michael@0 | 37 | in unsigned long long threadId, |
michael@0 | 38 | in DOMString iccId, |
michael@0 | 39 | in DOMString delivery, |
michael@0 | 40 | in jsval deliveryInfo, |
michael@0 | 41 | in DOMString sender, |
michael@0 | 42 | in jsval receivers, |
michael@0 | 43 | in unsigned long long timestamp, |
michael@0 | 44 | in unsigned long long sentTimestamp, |
michael@0 | 45 | in boolean read, |
michael@0 | 46 | in DOMString subject, |
michael@0 | 47 | in DOMString smil, |
michael@0 | 48 | in jsval attachments, |
michael@0 | 49 | in unsigned long long expiryDate, |
michael@0 | 50 | in boolean readReportRequested); |
michael@0 | 51 | |
michael@0 | 52 | nsIDOMMozSmsSegmentInfo createSmsSegmentInfo(in long segments, |
michael@0 | 53 | in long charsPerSegment, |
michael@0 | 54 | in long charsAvailableInLastSegment); |
michael@0 | 55 | |
michael@0 | 56 | [implicit_jscontext] |
michael@0 | 57 | nsIDOMMozMobileMessageThread createThread(in unsigned long long id, |
michael@0 | 58 | in jsval participants, |
michael@0 | 59 | in unsigned long long timestamp, |
michael@0 | 60 | in DOMString lastMessageSubject, |
michael@0 | 61 | in DOMString body, |
michael@0 | 62 | in unsigned long long unreadCount, |
michael@0 | 63 | in DOMString aLastMessageType); |
michael@0 | 64 | }; |