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
Родитель 0fa93036b0
Коммит 90976cb1fe
1 изменённых файлов: 33 добавлений и 0 удалений

Просмотреть файл

@ -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