mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 901457 - [sms][mms] We need a property for the "sent" timestamp (part 1, IDL changes). sr=sicking f=vicamo
This commit is contained in:
parent
3a5747f366
commit
10d0a19371
@ -27,7 +27,7 @@ dictionary MmsDeliveryInfo
|
||||
// |delivery| = "received" or not yet read).
|
||||
};
|
||||
|
||||
[scriptable, builtinclass, uuid(4ca3a456-0e25-4331-974a-a8f11a5efb4b)]
|
||||
[scriptable, builtinclass, uuid(f41d7400-0026-11e3-829d-eb7459c03810)]
|
||||
interface nsIDOMMozMmsMessage : nsISupports
|
||||
{
|
||||
/**
|
||||
@ -61,6 +61,10 @@ interface nsIDOMMozMmsMessage : nsISupports
|
||||
|
||||
readonly attribute DOMTimeStamp timestamp;
|
||||
|
||||
readonly attribute DOMTimeStamp sentTimestamp;
|
||||
// 0 if not available (e.g., |delivery| =
|
||||
// "sending").
|
||||
|
||||
readonly attribute boolean read;
|
||||
readonly attribute DOMString subject;
|
||||
readonly attribute DOMString smil;
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "domstubs.idl"
|
||||
#include "nsISupports.idl"
|
||||
|
||||
[scriptable, builtinclass, uuid(c591dcf8-5322-11e3-899e-9baad640ca82)]
|
||||
[scriptable, builtinclass, uuid(fc8153d2-0026-11e3-bf31-8b0c1d5e7638)]
|
||||
interface nsIDOMMozSmsMessage : nsISupports
|
||||
{
|
||||
/**
|
||||
@ -52,6 +52,10 @@ interface nsIDOMMozSmsMessage : nsISupports
|
||||
|
||||
readonly attribute DOMTimeStamp timestamp;
|
||||
|
||||
readonly attribute DOMTimeStamp sentTimestamp;
|
||||
// 0 if not available (e.g., |delivery| =
|
||||
// "sending").
|
||||
|
||||
readonly attribute DOMTimeStamp deliveryTimestamp;
|
||||
// 0 if not available (e.g., |delivery| =
|
||||
// "received" or not yet delivered).
|
||||
|
@ -570,6 +570,13 @@ MmsMessage::GetTimestamp(DOMTimeStamp* aTimestamp)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
MmsMessage::GetSentTimestamp(DOMTimeStamp* aSentTimestamp)
|
||||
{
|
||||
*aSentTimestamp = 0;
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
MmsMessage::GetRead(bool* aRead)
|
||||
{
|
||||
|
@ -260,12 +260,19 @@ SmsMessage::GetMessageClass(nsAString& aMessageClass)
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
SmsMessage::GetTimestamp(DOMTimeStamp* aDate)
|
||||
SmsMessage::GetTimestamp(DOMTimeStamp* aTimestamp)
|
||||
{
|
||||
*aDate = mData.timestamp();
|
||||
*aTimestamp = mData.timestamp();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
SmsMessage::GetSentTimestamp(DOMTimeStamp* aSentTimestamp)
|
||||
{
|
||||
*aSentTimestamp = 0;
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
SmsMessage::GetDeliveryTimestamp(DOMTimeStamp* aDate)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user