Bug 847744: Part 3 - IPDL change. r=vicamo,jdm

This commit is contained in:
Patrick Wang 2013-04-10 20:18:38 +08:00
parent 7152e75547
commit 27cebb84cc
5 changed files with 55 additions and 11 deletions

View File

@ -400,7 +400,7 @@ parent:
PSms();
PSpeechSynthesis();
PStorage(StorageConstructData data);
PBluetooth();

View File

@ -7,6 +7,7 @@
include "mozilla/dom/mobilemessage/Types.h";
include protocol PSms;
include protocol PBlob;
include SmsTypes;
namespace mozilla {

View File

@ -7,18 +7,33 @@
include protocol PContent;
include protocol PSmsRequest;
include protocol PMobileMessageCursor;
include protocol PBlob;
include SmsTypes;
namespace mozilla {
namespace dom {
namespace mobilemessage {
struct SendMessageRequest
struct SendMmsMessageRequest
{
nsString[] receivers;
nsString subject;
nsString smil;
MmsAttachmentData[] attachments;
};
struct SendSmsMessageRequest
{
nsString number;
nsString message;
};
union SendMessageRequest
{
SendMmsMessageRequest;
SendSmsMessageRequest;
};
struct GetMessageRequest
{
int32_t messageId;
@ -65,17 +80,17 @@ sync protocol PSms {
manages PMobileMessageCursor;
child:
NotifyReceivedMessage(SmsMessageData aMessageData);
NotifyReceivedMessage(MobileMessageData aMessageData);
NotifySendingMessage(SmsMessageData aMessageData);
NotifySendingMessage(MobileMessageData aMessageData);
NotifySentMessage(SmsMessageData aMessageData);
NotifySentMessage(MobileMessageData aMessageData);
NotifyFailedMessage(SmsMessageData aMessageData);
NotifyFailedMessage(MobileMessageData aMessageData);
NotifyDeliverySuccessMessage(SmsMessageData aMessageData);
NotifyDeliverySuccessMessage(MobileMessageData aMessageData);
NotifyDeliveryErrorMessage(SmsMessageData aMessageData);
NotifyDeliveryErrorMessage(MobileMessageData aMessageData);
parent:
/**

View File

@ -8,6 +8,7 @@
include "mozilla/dom/mobilemessage/Types.h";
include protocol PSms;
include protocol PBlob;
include SmsTypes;
namespace mozilla {
@ -27,7 +28,7 @@ child:
struct ReplyMessageSend
{
SmsMessageData messageData;
MobileMessageData messageData;
};
struct ReplyMessageSendFail
@ -37,7 +38,7 @@ struct ReplyMessageSendFail
struct ReplyGetMessage
{
SmsMessageData messageData;
MobileMessageData messageData;
};
struct ReplyGetMessageFail

View File

@ -5,6 +5,7 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */
include "mozilla/dom/mobilemessage/Types.h";
include protocol PBlob;
using DeliveryState;
using DeliveryStatus;
@ -36,8 +37,33 @@ struct SmsMessageData
bool read;
};
struct SmsFilterData
struct MmsAttachmentData
{
nsString id;
nsString location;
PBlob content;
};
struct MmsMessageData
{
int32_t id;
DeliveryState delivery;
DeliveryStatus[] deliveryStatus;
nsString sender;
nsString[] receivers;
uint64_t timestamp;
bool read;
nsString subject;
nsString smil;
MmsAttachmentData[] attachments;
};
union MobileMessageData {
MmsMessageData;
SmsMessageData;
};
struct SmsFilterData {
uint64_t startDate;
uint64_t endDate;
nsString[] numbers;
@ -56,6 +82,7 @@ struct ThreadData
union MobileMessageCursorData
{
MmsMessageData;
SmsMessageData;
ThreadData;
};