result
SettingInfo::SetWallpaper(const String& filePath)
{
- result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_SETTING);
- SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method."));
return _SettingInfoImpl::SetWallpaper(filePath);
}
result
SettingInfo::SetRingtone(const String& filePath)
{
- result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_SETTING);
- SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method."));
return _SettingInfoImpl::SetRingtone(filePath);
}
result
SettingInfo::SetVolume(const String& soundCategory, int level)
{
- result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_SETTING);
- SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method."));
return _SettingInfoImpl::SetVolume(soundCategory, level);
}
result
SettingInfo::SetValue(const String& key, bool value)
-{
- result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_SETTING);
- SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method."));
+{
return _SettingInfoImpl::SetValue(key, value);
}
result
SettingInfo::SetValue(const String& key, int value)
{
- result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_SETTING);
- SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method."));
return _SettingInfoImpl::SetValue(key, value);
}
result
SettingInfo::SetValue(const String& key, String value)
{
- result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_SETTING);
- SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method."));
return _SettingInfoImpl::SetValue(key, value);
}
result
SettingInfo::SetValueAsync(const String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener)
{
- result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_SETTING);
- SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method."));
return _SettingInfoImpl::SetValueAsync(key, value, listener);
}
result
SettingInfo::SetValueAsyncForPrivilegedKey(const String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener)
{
- result r = E_SUCCESS;
return _SettingInfoImpl::SetValueAsyncForPrivilegedKey(key, value, listener);
}