Bug 854790 1/4: Support filtering mobile messages with thread id. Interface changes. sr=mounir

This commit is contained in:
Vicamo Yang 2013-04-12 14:56:12 +08:00
parent f8906b8557
commit 5c0ed72139
2 changed files with 10 additions and 3 deletions

View File

@ -4,7 +4,7 @@
#include "nsISupports.idl"
[scriptable, builtinclass, uuid(ce055c33-553d-4b0e-9bd8-91d93a057c90)]
[scriptable, builtinclass, uuid(17890b60-0367-45c6-9729-62e5bf349b2b)]
interface nsIDOMMozSmsFilter : nsISupports
{
// A date that can return null.
@ -26,4 +26,8 @@ interface nsIDOMMozSmsFilter : nsISupports
// A read flag that can be a boolean or undefined.
[implicit_jscontext]
attribute jsval read;
// A thread id that can be a numeric value or undefined.
[implicit_jscontext]
attribute jsval threadId;
};

View File

@ -58,17 +58,20 @@ struct MmsMessageData
MmsAttachmentData[] attachments;
};
union MobileMessageData {
union MobileMessageData
{
MmsMessageData;
SmsMessageData;
};
struct SmsFilterData {
struct SmsFilterData
{
uint64_t startDate;
uint64_t endDate;
nsString[] numbers;
DeliveryState delivery;
ReadState read;
uint64_t threadId;
};
struct ThreadData