Bug 867227 - Part 1: Interface changes. r=vyang, sr=mounir
authorChia-hung Tai <ctai@mozilla.com>
Tue, 30 Apr 2013 15:59:03 -0700
changeset 141564 f2cc1aab0edf9261eaa549f3f8d13cae731e910c
parent 141563 9fd2515981bf4e2553adcc09bcf208083ad889a6
child 141565 3e0f1e2b853b7c84956398369bf8b9c591fad6e9
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvyang, mounir
bugs867227
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 867227 - Part 1: Interface changes. r=vyang, sr=mounir
dom/mobilemessage/interfaces/nsIDOMMozMmsMessage.idl
dom/mobilemessage/interfaces/nsIMobileMessageService.idl
dom/mobilemessage/src/ipc/SmsTypes.ipdlh
--- a/dom/mobilemessage/interfaces/nsIDOMMozMmsMessage.idl
+++ b/dom/mobilemessage/interfaces/nsIDOMMozMmsMessage.idl
@@ -8,17 +8,17 @@ interface nsIDOMBlob;
 
 dictionary MmsAttachment
 {
   DOMString? id;
   DOMString? location;
   nsIDOMBlob content;
 };
 
-[scriptable, builtinclass, uuid(210654af-4cc8-42e5-81b2-051f0f393c3a)]
+[scriptable, builtinclass, uuid(e916d5c8-dbf4-4fdc-a463-793b67491863)]
 interface nsIDOMMozMmsMessage : nsISupports
 {
   /**
    * |type| is always "mms".
    */
   readonly attribute DOMString type;
 
   readonly attribute long      id;
@@ -42,9 +42,13 @@ interface nsIDOMMozMmsMessage : nsISuppo
   readonly attribute jsval     timestamp;      // Date
 
   readonly attribute boolean   read;
   readonly attribute DOMString subject;
   readonly attribute DOMString smil;
 
   [implicit_jscontext]
   readonly attribute jsval     attachments;    // MmsAttachment[]
+
+  [implicit_jscontext]
+  readonly attribute jsval     expiryDate;     // Expiry date of manually
+                                               // downloading multimedia message.
 };
--- a/dom/mobilemessage/interfaces/nsIMobileMessageService.idl
+++ b/dom/mobilemessage/interfaces/nsIMobileMessageService.idl
@@ -9,17 +9,17 @@ interface nsIDOMMozMmsMessage;
 interface nsIDOMMozMobileMessageThread;
 interface nsIDOMMozSmsSegmentInfo;
 
 %{C++
 #define MOBILE_MESSAGE_SERVICE_CID { 0x829c1dd6, 0x0466, 0x4591, { 0x83, 0x6f, 0xb8, 0xf6, 0xfd, 0x1f, 0x7b, 0xa5 } }
 #define MOBILE_MESSAGE_SERVICE_CONTRACTID "@mozilla.org/mobilemessage/mobilemessageservice;1"
 %}
 
-[scriptable, builtinclass, uuid(18e4b86e-4e19-4ee5-90bf-a29328149677)]
+[scriptable, builtinclass, uuid(4d3fec1d-56c8-46f9-9400-3a95e5534357)]
 interface nsIMobileMessageService : nsISupports
 {
   [implicit_jscontext]
   nsIDOMMozSmsMessage createSmsMessage(in long      id,
                                        in unsigned long long threadId,
                                        in DOMString delivery,
                                        in DOMString deliveryStatus,
                                        in DOMString sender,
@@ -35,17 +35,18 @@ interface nsIMobileMessageService : nsIS
                                        in DOMString delivery,
                                        in jsval     deliveryStatus,
                                        in DOMString sender,
                                        in jsval     receivers,
                                        in jsval     timestamp,
                                        in boolean   read,
                                        in DOMString subject,
                                        in DOMString smil,
-                                       in jsval     attachments);
+                                       in jsval     attachments,
+                                       in jsval     expiryDate);
 
   nsIDOMMozSmsSegmentInfo createSmsSegmentInfo(in long segments,
                                                in long charsPerSegment,
                                                in long charsAvailableInLastSegment);
 
   [implicit_jscontext]
   nsIDOMMozMobileMessageThread createThread(in unsigned long long id,
                                             in jsval              participants,
--- a/dom/mobilemessage/src/ipc/SmsTypes.ipdlh
+++ b/dom/mobilemessage/src/ipc/SmsTypes.ipdlh
@@ -51,16 +51,17 @@ struct MmsMessageData
   DeliveryStatus[]    deliveryStatus;
   nsString            sender;
   nsString[]          receivers;
   uint64_t            timestamp;
   bool                read;
   nsString            subject;
   nsString            smil;
   MmsAttachmentData[] attachments;
+  uint64_t            expiryDate;
 };
 
 union MobileMessageData
 {
   MmsMessageData;
   SmsMessageData;
 };