Bug 963516 - Part 2: dom changes to support matchMvno(). f=hsinyi,edgar r=smaug

This commit is contained in:
Jessica Jong 2014-01-28 18:58:00 +08:00
parent 73e9931ee8
commit e37a31baae
2 changed files with 26 additions and 0 deletions

View File

@ -357,3 +357,25 @@ Icc::IccCloseChannel(int32_t aChannel, ErrorResult& aRv)
return request.forget();
}
already_AddRefed<nsISupports>
Icc::MatchMvno(const nsAString& aMvnoType,
const nsAString& aMvnoData,
ErrorResult& aRv)
{
if (!mProvider) {
aRv.Throw(NS_ERROR_FAILURE);
return nullptr;
}
nsRefPtr<nsIDOMDOMRequest> request;
nsresult rv = mProvider->MatchMvno(mClientId, GetOwner(),
aMvnoType, aMvnoData,
getter_AddRefs(request));
if (NS_FAILED(rv)) {
aRv.Throw(rv);
return nullptr;
}
return request.forget();
}

View File

@ -98,6 +98,10 @@ public:
already_AddRefed<nsISupports>
IccCloseChannel(int32_t aChannel, ErrorResult& aRv);
already_AddRefed<nsISupports>
MatchMvno(const nsAString& aMvnoType, const nsAString& aMatchData,
ErrorResult& aRv);
IMPL_EVENT_HANDLER(iccinfochange)
IMPL_EVENT_HANDLER(cardstatechange)
IMPL_EVENT_HANDLER(stkcommand)