Bug 1043250 - Part 4: Update SMS IPC implementation. r=btseng

PSmsRequest.ipdl:
- Update ReplyGetSmscAddress to include extra parameters.

SmsChild:
- Update Recv__delete__ to reflect the change of PSmsRequest.

SmsParent:
- Update NotifyGetSmscAddress to reflect the change of PSmsRequest.
This commit is contained in:
Samael Wang 2015-07-14 14:57:49 +08:00
parent 3943cc4770
commit c4b27691b2
3 changed files with 11 additions and 3 deletions

View File

@ -87,6 +87,8 @@ struct ReplyGetSegmentInfoForTextFail
struct ReplyGetSmscAddress
{
nsString smscAddress;
uint32_t typeOfNumber;
uint32_t numberPlanIdentification;
};
struct ReplyGetSmscAddressFail

View File

@ -259,7 +259,9 @@ SmsRequestChild::Recv__delete__(const MessageReply& aReply)
aReply.get_ReplyGetSegmentInfoForTextFail().error());
break;
case MessageReply::TReplyGetSmscAddress:
mReplyRequest->NotifyGetSmscAddress(aReply.get_ReplyGetSmscAddress().smscAddress());
mReplyRequest->NotifyGetSmscAddress(aReply.get_ReplyGetSmscAddress().smscAddress(),
aReply.get_ReplyGetSmscAddress().typeOfNumber(),
aReply.get_ReplyGetSmscAddress().numberPlanIdentification());
break;
case MessageReply::TReplyGetSmscAddressFail:
mReplyRequest->NotifyGetSmscAddressFailed(aReply.get_ReplyGetSmscAddressFail().error());

View File

@ -761,9 +761,13 @@ SmsRequestParent::NotifyGetSegmentInfoForTextFailed(int32_t aError)
}
NS_IMETHODIMP
SmsRequestParent::NotifyGetSmscAddress(const nsAString& aSmscAddress)
SmsRequestParent::NotifyGetSmscAddress(const nsAString& aSmscAddress,
uint32_t aTypeOfNumber,
uint32_t aNumberPlanIdentification)
{
return SendReply(ReplyGetSmscAddress(nsString(aSmscAddress)));
return SendReply(ReplyGetSmscAddress(nsString(aSmscAddress),
aTypeOfNumber,
aNumberPlanIdentification));
}
NS_IMETHODIMP