1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/mobilemessage/interfaces/nsIMobileMessageService.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,64 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +interface nsIDOMMozSmsMessage; 1.11 +interface nsIDOMMozMmsMessage; 1.12 +interface nsIDOMMozMobileMessageThread; 1.13 +interface nsIDOMMozSmsSegmentInfo; 1.14 + 1.15 +%{C++ 1.16 +#define MOBILE_MESSAGE_SERVICE_CID { 0x829c1dd6, 0x0466, 0x4591, { 0x83, 0x6f, 0xb8, 0xf6, 0xfd, 0x1f, 0x7b, 0xa5 } } 1.17 +#define MOBILE_MESSAGE_SERVICE_CONTRACTID "@mozilla.org/mobilemessage/mobilemessageservice;1" 1.18 +%} 1.19 + 1.20 +[scriptable, builtinclass, uuid(17fce9e4-af56-11e3-83d9-b71055e95493)] 1.21 +interface nsIMobileMessageService : nsISupports 1.22 +{ 1.23 + [implicit_jscontext] 1.24 + nsIDOMMozSmsMessage createSmsMessage(in long id, 1.25 + in unsigned long long threadId, 1.26 + in DOMString iccId, 1.27 + in DOMString delivery, 1.28 + in DOMString deliveryStatus, 1.29 + in DOMString sender, 1.30 + in DOMString receiver, 1.31 + in DOMString body, 1.32 + in DOMString messageClass, 1.33 + in unsigned long long timestamp, 1.34 + in unsigned long long sentTimestamp, 1.35 + in unsigned long long deliveryTimestamp, 1.36 + in bool read); 1.37 + 1.38 + [implicit_jscontext] 1.39 + nsIDOMMozMmsMessage createMmsMessage(in long id, 1.40 + in unsigned long long threadId, 1.41 + in DOMString iccId, 1.42 + in DOMString delivery, 1.43 + in jsval deliveryInfo, 1.44 + in DOMString sender, 1.45 + in jsval receivers, 1.46 + in unsigned long long timestamp, 1.47 + in unsigned long long sentTimestamp, 1.48 + in boolean read, 1.49 + in DOMString subject, 1.50 + in DOMString smil, 1.51 + in jsval attachments, 1.52 + in unsigned long long expiryDate, 1.53 + in boolean readReportRequested); 1.54 + 1.55 + nsIDOMMozSmsSegmentInfo createSmsSegmentInfo(in long segments, 1.56 + in long charsPerSegment, 1.57 + in long charsAvailableInLastSegment); 1.58 + 1.59 + [implicit_jscontext] 1.60 + nsIDOMMozMobileMessageThread createThread(in unsigned long long id, 1.61 + in jsval participants, 1.62 + in unsigned long long timestamp, 1.63 + in DOMString lastMessageSubject, 1.64 + in DOMString body, 1.65 + in unsigned long long unreadCount, 1.66 + in DOMString aLastMessageType); 1.67 +};