* @since 2.0
*
* @privlevel platform
- * @privilege %http://tizen.org/privilege/systemsetting.read
+ * @privilege %http://tizen.org/privilege/settingmanager.read
*
* @return An error code
* @param[in] key The <a href="../org.tizen.native.appprogramming/html/guide/system/settings_info.htm">key name</a> of the setting information
* @since 2.0
*
* @privlevel platform
- * @privilege %http://tizen.org/privilege/systemsetting.write
+ * @privilege %http://tizen.org/privilege/settingmanager.write
*
* @return An error code
* @param[in] key The <a href="../org.tizen.native.appprogramming/html/guide/system/settings_info.htm">key name</a> of the setting information
*
* @since 2.0
* @privlevel platform
- * @privilege %http://tizen.org/privilege/systemsetting.write
+ * @privilege %http://tizen.org/privilege/settingmanager.write
*
* @return An error code
* @param[in] key The <a href="../org.tizen.native.appprogramming/html/guide/system/settings_info.htm">key name</a> of the setting information
* @since 2.0
*
* @privlevel platform
- * @privilege %http://tizen.org/privilege/systemsetting.write
+ * @privilege %http://tizen.org/privilege/settingmanager.write
*
* @return An error code
* @param[in] key The <a href="../org.tizen.native.appprogramming/html/guide/system/settings_info.htm">key name</a> of the setting information
* @since 2.0
*
* @privlevel platform
- * @privilege %http://tizen.org/privilege/systemsetting.write
+ * @privilege %http://tizen.org/privilege/settingmanager.write
*
* @return An error code
* @exception E_SUCCESS The method is successful.
* @since 2.0
*
* @privlevel public
- * @privilege %http://tizen.org/privilege/platforminfo
+ * @privilege %http://tizen.org/privilege/system
*
* @return An error code
* @param[out] platformVersion The platform version
* @since 2.0
*
* @privlevel public
- * @privilege %http://tizen.org/privilege/platforminfo
+ * @privilege %http://tizen.org/privilege/system
*
* @return An error code
* @param[out] nativeApiVersion The Native API version
* @since 2.0
*
* @privlevel public
- * @privilege %http://tizen.org/privilege/platforminfo
+ * @privilege %http://tizen.org/privilege/system
*
* @return An error code
* @param[out] webApiVersion The %Tizen API version
* @since 2.1
*
* @privlevel public
- * @privilege %http://tizen.org/privilege/platforminfo
+ * @privilege %http://tizen.org/privilege/system
*
* @return An error code
* @param[out] buildInfo The %Tizen build information
* @since 2.0
*
* @privlevel partner
- * @privilege %http://tizen.org/privilege/useridentity
+ * @privilege %http://tizen.org/privilege/systemmanager
*
* @return An error code
* @param[out] imei The IMEI of the device
SettingInfo::GetValueForPrivilegedKey(const String& key, bool& value)
{
result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_SYSTEMSETTING_READ);
+ r = _AccessController::CheckUserPrivilege(_PRV_SETTINGMANAGER_READ);
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::GetValueForPrivilegedKey(key, value);
}
SettingInfo::SetValueForPrivilegedKey(const String& key, bool value)
{
result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_SYSTEMSETTING_WRITE);
+ r = _AccessController::CheckUserPrivilege(_PRV_SETTINGMANAGER_WRITE);
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::SetValueForPrivilegedKey(key, value);
}
SettingInfo::SetValueForPrivilegedKey(const String& key, String value)
{
result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_SYSTEMSETTING_WRITE);
+ r = _AccessController::CheckUserPrivilege(_PRV_SETTINGMANAGER_WRITE);
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::SetValueForPrivilegedKey(key, value);
}
SettingInfo::ResetToFactoryDefault(void)
{
result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_SYSTEMSETTING_WRITE);
+ r = _AccessController::CheckUserPrivilege(_PRV_SETTINGMANAGER_WRITE);
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::ResetToFactoryDefault();
}
result
SystemInfo::GetPlatformVersion(String& platformVersion)
{
- result r = _AccessController::CheckUserPrivilege(_PRV_PLATFORMINFO);
+ result r = _AccessController::CheckUserPrivilege(_PRV_SYSTEM);
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 _SystemInfoImpl::GetPlatformVersion(platformVersion);
}
result
SystemInfo::GetBuildInfo(String& buildInfo)
{
- result r = _AccessController::CheckUserPrivilege(_PRV_PLATFORMINFO);
+ result r = _AccessController::CheckUserPrivilege(_PRV_SYSTEM);
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 _SystemInfoImpl::GetBuildInfo(buildInfo);
}
result
SystemInfo::GetNativeApiVersion(String& nativeApiVersion)
{
- result r = _AccessController::CheckUserPrivilege(_PRV_PLATFORMINFO);
+ result r = _AccessController::CheckUserPrivilege(_PRV_SYSTEM);
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 _SystemInfoImpl::GetNativeApiVersion(nativeApiVersion);
}
result
SystemInfo::GetWebApiVersion(String& webApiVersion)
{
- result r = _AccessController::CheckUserPrivilege(_PRV_PLATFORMINFO);
+ result r = _AccessController::CheckUserPrivilege(_PRV_SYSTEM);
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 _SystemInfoImpl::GetWebApiVersion(webApiVersion);
}