Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype VpnConnection = VpnConnection (ManagedPtr VpnConnection)
- class (GObject o, IsDescendantOf VpnConnection o) => IsVpnConnection o
- toVpnConnection :: (MonadIO m, IsVpnConnection o) => o -> m VpnConnection
- vpnConnectionGetBanner :: (HasCallStack, MonadIO m, IsVpnConnection a) => a -> m Text
- vpnConnectionGetVpnState :: (HasCallStack, MonadIO m, IsVpnConnection a) => a -> m VpnConnectionState
- getVpnConnectionBanner :: (MonadIO m, IsVpnConnection o) => o -> m Text
- getVpnConnectionVpnState :: (MonadIO m, IsVpnConnection o) => o -> m VpnConnectionState
- type VpnConnectionVpnStateChangedCallback = Word32 -> Word32 -> IO ()
- afterVpnConnectionVpnStateChanged :: (IsVpnConnection a, MonadIO m) => a -> ((?self :: a) => VpnConnectionVpnStateChangedCallback) -> m SignalHandlerId
- onVpnConnectionVpnStateChanged :: (IsVpnConnection a, MonadIO m) => a -> ((?self :: a) => VpnConnectionVpnStateChangedCallback) -> m SignalHandlerId
Exported types
newtype VpnConnection Source #
Memory-managed wrapper type.
Instances
Eq VpnConnection Source # | |
Defined in GI.NM.Objects.VpnConnection (==) :: VpnConnection -> VpnConnection -> Bool # (/=) :: VpnConnection -> VpnConnection -> Bool # | |
GObject VpnConnection Source # | |
Defined in GI.NM.Objects.VpnConnection | |
ManagedPtrNewtype VpnConnection Source # | |
Defined in GI.NM.Objects.VpnConnection | |
TypedObject VpnConnection Source # | |
Defined in GI.NM.Objects.VpnConnection | |
HasParentTypes VpnConnection Source # | |
Defined in GI.NM.Objects.VpnConnection | |
IsGValue (Maybe VpnConnection) Source # | Convert |
Defined in GI.NM.Objects.VpnConnection gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe VpnConnection -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe VpnConnection) # | |
type ParentTypes VpnConnection Source # | |
Defined in GI.NM.Objects.VpnConnection |
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
(GObject o, IsDescendantOf VpnConnection o) => IsVpnConnection o Source # | |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getBanner, getClient, getConnection, getConnectionType, getController, getData, getDefault, getDefault6, getDevices, getDhcp4Config, getDhcp6Config, getId, getIp4Config, getIp6Config, getMaster, getPath, getProperty, getQdata, getSpecificObjectPath, getState, getStateFlags, getStateReason, getUuid, getVpn, getVpnState.
Setters
getBanner
vpnConnectionGetBanner Source #
:: (HasCallStack, MonadIO m, IsVpnConnection a) | |
=> a |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsVpnConnection a) | |
=> a |
|
-> 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