/**
 * nm_setting_proxy_get_pac_script:
 * @setting: the #NMSettingProxy
 *
 * Returns: the PAC Script
 *
 * Since: 1.6
 **/
const char *
nm_setting_proxy_get_pac_script (NMSettingProxy *setting)
{
	g_return_val_if_fail (NM_IS_SETTING_PROXY (setting), NULL);

	return NM_SETTING_PROXY_GET_PRIVATE (setting)->pac_script;
}
/**
 * nm_setting_proxy_get_method:
 * @setting: the #NMSettingProxy
 *
 * Returns the proxy configuration method. By default the value is "NONE".
 * "NONE" should be selected for a connection intended for direct network
 * access.
 *
 * Returns: the proxy configuration method
 *
 * Since: 1.6
 **/
NMSettingProxyMethod
nm_setting_proxy_get_method (NMSettingProxy *setting)
{
	g_return_val_if_fail (NM_IS_SETTING_PROXY (setting), NM_SETTING_PROXY_METHOD_NONE);

	return NM_SETTING_PROXY_GET_PRIVATE (setting)->method;
}
/**
 * nm_setting_proxy_get_browser_only:
 * @setting: the #NMSettingProxy
 *
 * Returns: TRUE if this proxy configuration is only for Browser
 * clients/schemes otherwise FALSE.
 *
 * Since: 1.6
 **/
gboolean
nm_setting_proxy_get_browser_only (NMSettingProxy *setting)
{
	g_return_val_if_fail (NM_IS_SETTING_PROXY (setting), FALSE);

	return NM_SETTING_PROXY_GET_PRIVATE (setting)->browser_only;
}
Esempio n. 4
0
/**
 * nm_setting_proxy_get_socks_version_5:
 * @setting: the #NMSettingProxy
 *
 * Returns: TRUE if SOCKS version is 5.
 * FALSE if SOCKS version is 4.
 *
 * Since: 1.4
**/
gboolean
nm_setting_proxy_get_socks_version_5 (NMSettingProxy *setting)
{
	g_return_val_if_fail (NM_IS_SETTING_PROXY (setting), FALSE);

	return NM_SETTING_PROXY_GET_PRIVATE (setting)->socks_version_5;
}
Esempio n. 5
0
/**
 * nm_setting_proxy_get_socks_port:
 * @setting: the #NMSettingProxy
 *
 * Returns: the SOCKS port number
 *
 * Since: 1.4
 **/
guint32
nm_setting_proxy_get_socks_port (NMSettingProxy *setting)
{
	g_return_val_if_fail (NM_IS_SETTING_PROXY (setting), 0);

	return NM_SETTING_PROXY_GET_PRIVATE (setting)->socks_port;
}
Esempio n. 6
0
/**
 * nm_setting_proxy_get_socks_proxy:
 * @setting: the #NMSettingProxy
 *
 * Returns: the SOCKS proxy
 *
 * Since: 1.4
 **/
const char *
nm_setting_proxy_get_socks_proxy (NMSettingProxy *setting)
{
	g_return_val_if_fail (NM_IS_SETTING_PROXY (setting), NULL);

	return NM_SETTING_PROXY_GET_PRIVATE (setting)->socks_proxy;
}
Esempio n. 7
0
/**
 * nm_setting_proxy_get_http_default:
 * @setting: the #NMSettingProxy
 *
 * Returns: TRUE if HTTP Proxy is default for all
 * protocols. FALSE if not.
 *
 * Since: 1.4
 **/
gboolean
nm_setting_proxy_get_http_default (NMSettingProxy *setting)
{
	g_return_val_if_fail (NM_IS_SETTING_PROXY (setting), FALSE);

	return NM_SETTING_PROXY_GET_PRIVATE (setting)->http_default;
}