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

Description

No description available in the introspection data.

Synopsis

Exported types

class (GObject o, IsDescendantOf VpnConnection o) => IsVpnConnection o Source #

Type class for types which can be safely cast to VpnConnection, for instance with toVpnConnection.

Instances

Instances details
(GObject o, IsDescendantOf VpnConnection o) => IsVpnConnection o Source # 
Instance details

Defined in GI.NM.Objects.VpnConnection

toVpnConnection :: (MonadIO m, IsVpnConnection o) => o -> m VpnConnection Source #

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

Methods

getBanner

vpnConnectionGetBanner Source #

Arguments

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

vpn: a VpnConnection

-> m Text

Returns: the VPN login banner of the VPN connection. This is the internal string used by the connection, and must not be modified.

Gets the VPN login banner of the active VpnConnection.

getVpnState

vpnConnectionGetVpnState Source #

Arguments

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

vpn: a VpnConnection

-> m VpnConnectionState

Returns: the VPN state of the active VPN connection.

Gets the current VpnConnection state.

Properties

banner

The VPN login banner of the active VPN connection.

getVpnConnectionBanner :: (MonadIO m, IsVpnConnection o) => o -> m Text Source #

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

get vpnConnection #banner

vpnState

The VPN state of the active VPN connection.

getVpnConnectionVpnState :: (MonadIO m, IsVpnConnection o) => o -> m VpnConnectionState Source #

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

get vpnConnection #vpnState

Signals

vpnStateChanged

type VpnConnectionVpnStateChangedCallback = Word32 -> Word32 -> IO () Source #

No description available in the introspection data.

afterVpnConnectionVpnStateChanged :: (IsVpnConnection a, MonadIO m) => a -> ((?self :: a) => VpnConnectionVpnStateChangedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the vpnStateChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after vpnConnection #vpnStateChanged callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onVpnConnectionVpnStateChanged :: (IsVpnConnection a, MonadIO m) => a -> ((?self :: a) => VpnConnectionVpnStateChangedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the vpnStateChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on vpnConnection #vpnStateChanged callback