dom/mobilemessage/interfaces/nsIMobileMessageService.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial