Bug 888904 - Part 2: MobileConnection.cpp additions for supporting CLIR. r=smaug

This commit is contained in:
Jose Antonio Olivera Ortega 2013-07-17 23:18:24 +02:00
parent 0fa93036b0
commit 90976cb1fe

View File

@ -382,6 +382,39 @@ MobileConnection::SetCallWaitingOption(bool aEnabled,
return mProvider->SetCallWaitingOption(GetOwner(), aEnabled, aRequest);
}
NS_IMETHODIMP
MobileConnection::GetCallingLineIdRestriction(nsIDOMDOMRequest** aRequest)
{
*aRequest = nullptr;
if (!CheckPermission("mobileconnection")) {
return NS_OK;
}
if (!mProvider) {
return NS_ERROR_FAILURE;
}
return mProvider->GetCallingLineIdRestriction(GetOwner(), aRequest);
}
NS_IMETHODIMP
MobileConnection::SetCallingLineIdRestriction(unsigned short aClirMode,
nsIDOMDOMRequest** aRequest)
{
*aRequest = nullptr;
if (!CheckPermission("mobileconnection")) {
return NS_OK;
}
if (!mProvider) {
return NS_ERROR_FAILURE;
}
return mProvider->SetCallingLineIdRestriction(GetOwner(), aClirMode, aRequest);
}
// nsIMobileConnectionListener
NS_IMETHODIMP