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

Description

No description available in the introspection data.

Synopsis

Exported types

class (GObject o, IsDescendantOf SimpleConnection o) => IsSimpleConnection o Source #

Type class for types which can be safely cast to SimpleConnection, for instance with toSimpleConnection.

Instances

Instances details
(GObject o, IsDescendantOf SimpleConnection o) => IsSimpleConnection o Source # 
Instance details

Defined in GI.NM.Objects.SimpleConnection

toSimpleConnection :: (MonadIO m, IsSimpleConnection o) => o -> m SimpleConnection Source #

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

Methods

new

simpleConnectionNew Source #

Arguments

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

Returns: the new empty Connection object

Creates a new SimpleConnection object with no Setting objects.

newClone

simpleConnectionNewClone Source #

Arguments

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

connection: the Connection to clone

-> m Connection

Returns: a new Connection containing the same settings and properties as the source Connection

Clones an Connection as an SimpleConnection.

newFromDbus

simpleConnectionNewFromDbus Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GVariant

dict: a GVariant of type NM_VARIANT_TYPE_CONNECTION describing the connection

-> m Connection

Returns: the new SimpleConnection object, populated with settings created from the values in the hash table, or Nothing if the connection failed to normalize. (Can throw GError)

Creates a new SimpleConnection from a hash table describing the connection and normalize the connection. See connectionToDbus for a description of the expected hash table.