Bug 818393 - Part 2: Call barring DOM implementation. r=htsai, smaug.

---
 dom/network/src/MobileConnection.cpp |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
This commit is contained in:
Szu-Yu Chen [:aknow] 2013-05-21 13:12:59 +08:00
parent b43baef554
commit c35a3a1739

View File

@ -391,6 +391,32 @@ MobileConnection::SetCallForwardingOption(nsIDOMMozMobileCFInfo* aCFInfo,
return mProvider->SetCallForwardingOption(GetOwner(), aCFInfo, aRequest);
}
NS_IMETHODIMP
MobileConnection::GetCallBarringOption(const JS::Value& aOption,
nsIDOMDOMRequest** aRequest)
{
*aRequest = nullptr;
if (!mProvider) {
return NS_ERROR_FAILURE;
}
return mProvider->GetCallBarringOption(GetOwner(), aOption, aRequest);
}
NS_IMETHODIMP
MobileConnection::SetCallBarringOption(const JS::Value& aOption,
nsIDOMDOMRequest** aRequest)
{
*aRequest = nullptr;
if (!mProvider) {
return NS_ERROR_FAILURE;
}
return mProvider->SetCallBarringOption(GetOwner(), aOption, aRequest);
}
NS_IMETHODIMP
MobileConnection::GetCallWaitingOption(nsIDOMDOMRequest** aRequest)
{