gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.SettingProxy

Description

WWW Proxy Settings

Synopsis

Exported types

class (GObject o, IsDescendantOf SettingProxy o) => IsSettingProxy o Source #

Type class for types which can be safely cast to SettingProxy, for instance with toSettingProxy.

Instances

Instances details
(GObject o, IsDescendantOf SettingProxy o) => IsSettingProxy o Source # 
Instance details

Defined in GI.NM.Objects.SettingProxy

toSettingProxy :: (MonadIO m, IsSettingProxy o) => o -> m SettingProxy Source #

Cast to SettingProxy, for types for which this is known to be safe. For general casts, use castTo.

Methods

getBrowserOnly

settingProxyGetBrowserOnly Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingProxy a) 
=> a

setting: the SettingProxy

-> m Bool

Returns: True if this proxy configuration is only for browser clients/schemes, False otherwise.

No description available in the introspection data.

Since: 1.6

getMethod

settingProxyGetMethod Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingProxy a) 
=> a

setting: the SettingProxy

-> m SettingProxyMethod

Returns: the proxy configuration method

Returns the proxy configuration method. By default the value is SettingProxyMethodNone. SettingProxyMethodNone should be selected for a connection intended for direct network access.

Since: 1.6

getPacScript

settingProxyGetPacScript Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingProxy a) 
=> a

setting: the SettingProxy

-> m Text

Returns: the PAC script.

No description available in the introspection data.

Since: 1.6

getPacUrl

settingProxyGetPacUrl Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingProxy a) 
=> a

setting: the SettingProxy

-> m Text

Returns: the PAC URL for obtaining PAC file

No description available in the introspection data.

Since: 1.6

new

settingProxyNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SettingProxy

Returns: the new empty SettingProxy object

Creates a new SettingProxy object.

Since: 1.6

Properties

browserOnly

Whether the proxy configuration is for browser only.

Since: 1.6

constructSettingProxyBrowserOnly :: (IsSettingProxy o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “browser-only” property. This is rarely needed directly, but it is used by new.

getSettingProxyBrowserOnly :: (MonadIO m, IsSettingProxy o) => o -> m Bool Source #

Get the value of the “browser-only” property. When overloading is enabled, this is equivalent to

get settingProxy #browserOnly

setSettingProxyBrowserOnly :: (MonadIO m, IsSettingProxy o) => o -> Bool -> m () Source #

Set the value of the “browser-only” property. When overloading is enabled, this is equivalent to

set settingProxy [ #browserOnly := value ]

method

Method for proxy configuration, Default is SettingProxyMethodNone

Since: 1.6

constructSettingProxyMethod :: (IsSettingProxy o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “method” property. This is rarely needed directly, but it is used by new.

getSettingProxyMethod :: (MonadIO m, IsSettingProxy o) => o -> m Int32 Source #

Get the value of the “method” property. When overloading is enabled, this is equivalent to

get settingProxy #method

setSettingProxyMethod :: (MonadIO m, IsSettingProxy o) => o -> Int32 -> m () Source #

Set the value of the “method” property. When overloading is enabled, this is equivalent to

set settingProxy [ #method := value ]

pacScript

PAC script for the connection. This is an UTF-8 encoded javascript code that defines a FindProxyForURL() function.

Since: 1.6

clearSettingProxyPacScript :: (MonadIO m, IsSettingProxy o) => o -> m () Source #

Set the value of the “pac-script” property to Nothing. When overloading is enabled, this is equivalent to

clear #pacScript

constructSettingProxyPacScript :: (IsSettingProxy o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pac-script” property. This is rarely needed directly, but it is used by new.

getSettingProxyPacScript :: (MonadIO m, IsSettingProxy o) => o -> m Text Source #

Get the value of the “pac-script” property. When overloading is enabled, this is equivalent to

get settingProxy #pacScript

setSettingProxyPacScript :: (MonadIO m, IsSettingProxy o) => o -> Text -> m () Source #

Set the value of the “pac-script” property. When overloading is enabled, this is equivalent to

set settingProxy [ #pacScript := value ]

pacUrl

PAC URL for obtaining PAC file.

Since: 1.6

clearSettingProxyPacUrl :: (MonadIO m, IsSettingProxy o) => o -> m () Source #

Set the value of the “pac-url” property to Nothing. When overloading is enabled, this is equivalent to

clear #pacUrl

constructSettingProxyPacUrl :: (IsSettingProxy o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pac-url” property. This is rarely needed directly, but it is used by new.

getSettingProxyPacUrl :: (MonadIO m, IsSettingProxy o) => o -> m Text Source #

Get the value of the “pac-url” property. When overloading is enabled, this is equivalent to

get settingProxy #pacUrl

setSettingProxyPacUrl :: (MonadIO m, IsSettingProxy o) => o -> Text -> m () Source #

Set the value of the “pac-url” property. When overloading is enabled, this is equivalent to

set settingProxy [ #pacUrl := value ]