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.SettingGeneric

Description

Generic Link Settings

Synopsis

Exported types

class (GObject o, IsDescendantOf SettingGeneric o) => IsSettingGeneric o Source #

Type class for types which can be safely cast to SettingGeneric, for instance with toSettingGeneric.

Instances

Instances details
(GObject o, IsDescendantOf SettingGeneric o) => IsSettingGeneric o Source # 
Instance details

Defined in GI.NM.Objects.SettingGeneric

toSettingGeneric :: (MonadIO m, IsSettingGeneric o) => o -> m SettingGeneric Source #

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

Methods

getDeviceHandler

settingGenericGetDeviceHandler Source #

Arguments

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

setting: the SettingGeneric

-> m Text

Returns: the device handler name, or Nothing if no device handler is set

Returns the SettingGeneric:deviceHandler property of the connection.

Since: 1.46

new

settingGenericNew Source #

Arguments

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

Returns: the new empty SettingGeneric object

Creates a new SettingGeneric object with default values.

Properties

deviceHandler

Name of the device handler that will be invoked to add and delete the device for this connection. The name can only contain ASCII alphanumeric characters and '-', '_', '.'. It cannot start with '.'.

See the NetworkManager-dispatcher(8) man page for more details about how to write the device handler.

By setting this property the generic connection becomes "virtual", meaning that it can be activated without an existing device; the device will be created at the time the connection is started by invoking the device-handler.

Since: 1.46

clearSettingGenericDeviceHandler :: (MonadIO m, IsSettingGeneric o) => o -> m () Source #

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

clear #deviceHandler

constructSettingGenericDeviceHandler :: (IsSettingGeneric o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getSettingGenericDeviceHandler :: (MonadIO m, IsSettingGeneric o) => o -> m Text Source #

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

get settingGeneric #deviceHandler

setSettingGenericDeviceHandler :: (MonadIO m, IsSettingGeneric o) => o -> Text -> m () Source #

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

set settingGeneric [ #deviceHandler := value ]