Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.NM.Objects.ActiveConnection
Description
No description available in the introspection data.
Synopsis
- newtype ActiveConnection = ActiveConnection (ManagedPtr ActiveConnection)
- class (GObject o, IsDescendantOf ActiveConnection o) => IsActiveConnection o
- toActiveConnection :: (MonadIO m, IsActiveConnection o) => o -> m ActiveConnection
- activeConnectionGetConnection :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m RemoteConnection
- activeConnectionGetConnectionType :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m Text
- activeConnectionGetController :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m (Ptr ())
- activeConnectionGetDefault :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m Bool
- activeConnectionGetDefault6 :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m Bool
- activeConnectionGetDevices :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m [Device]
- activeConnectionGetDhcp4Config :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m DhcpConfig
- activeConnectionGetDhcp6Config :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m DhcpConfig
- activeConnectionGetId :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m Text
- activeConnectionGetIp4Config :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m IPConfig
- activeConnectionGetIp6Config :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m IPConfig
- activeConnectionGetMaster :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m (Ptr ())
- activeConnectionGetSpecificObjectPath :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m Text
- activeConnectionGetState :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m ActiveConnectionState
- activeConnectionGetStateFlags :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m [ActivationStateFlags]
- activeConnectionGetStateReason :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m ActiveConnectionStateReason
- activeConnectionGetUuid :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m Text
- activeConnectionGetVpn :: (HasCallStack, MonadIO m, IsActiveConnection a) => a -> m Bool
- getActiveConnectionConnection :: (MonadIO m, IsActiveConnection o) => o -> m RemoteConnection
- getActiveConnectionController :: (MonadIO m, IsActiveConnection o) => o -> m (Maybe Device)
- getActiveConnectionDefault :: (MonadIO m, IsActiveConnection o) => o -> m Bool
- getActiveConnectionDefault6 :: (MonadIO m, IsActiveConnection o) => o -> m Bool
- getActiveConnectionDhcp4Config :: (MonadIO m, IsActiveConnection o) => o -> m DhcpConfig
- getActiveConnectionDhcp6Config :: (MonadIO m, IsActiveConnection o) => o -> m DhcpConfig
- getActiveConnectionId :: (MonadIO m, IsActiveConnection o) => o -> m Text
- getActiveConnectionIp4Config :: (MonadIO m, IsActiveConnection o) => o -> m IPConfig
- getActiveConnectionIp6Config :: (MonadIO m, IsActiveConnection o) => o -> m IPConfig
- getActiveConnectionMaster :: (MonadIO m, IsActiveConnection o) => o -> m (Maybe Device)
- getActiveConnectionSpecificObjectPath :: (MonadIO m, IsActiveConnection o) => o -> m Text
- getActiveConnectionState :: (MonadIO m, IsActiveConnection o) => o -> m ActiveConnectionState
- getActiveConnectionStateFlags :: (MonadIO m, IsActiveConnection o) => o -> m Word32
- getActiveConnectionType :: (MonadIO m, IsActiveConnection o) => o -> m (Maybe Text)
- getActiveConnectionUuid :: (MonadIO m, IsActiveConnection o) => o -> m Text
- getActiveConnectionVpn :: (MonadIO m, IsActiveConnection o) => o -> m Bool
- type ActiveConnectionStateChangedCallback = Word32 -> Word32 -> IO ()
- afterActiveConnectionStateChanged :: (IsActiveConnection a, MonadIO m) => a -> ((?self :: a) => ActiveConnectionStateChangedCallback) -> m SignalHandlerId
- onActiveConnectionStateChanged :: (IsActiveConnection a, MonadIO m) => a -> ((?self :: a) => ActiveConnectionStateChangedCallback) -> m SignalHandlerId
Exported types
newtype ActiveConnection Source #
Memory-managed wrapper type.
Constructors
ActiveConnection (ManagedPtr ActiveConnection) |
Instances
Eq ActiveConnection Source # | |
Defined in GI.NM.Objects.ActiveConnection Methods (==) :: ActiveConnection -> ActiveConnection -> Bool # (/=) :: ActiveConnection -> ActiveConnection -> Bool # | |
GObject ActiveConnection Source # | |
Defined in GI.NM.Objects.ActiveConnection | |
ManagedPtrNewtype ActiveConnection Source # | |
Defined in GI.NM.Objects.ActiveConnection Methods toManagedPtr :: ActiveConnection -> ManagedPtr ActiveConnection # | |
TypedObject ActiveConnection Source # | |
Defined in GI.NM.Objects.ActiveConnection | |
HasParentTypes ActiveConnection Source # | |
Defined in GI.NM.Objects.ActiveConnection | |
IsGValue (Maybe ActiveConnection) Source # | Convert |
Defined in GI.NM.Objects.ActiveConnection Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe ActiveConnection -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe ActiveConnection) # | |
type ParentTypes ActiveConnection Source # | |
Defined in GI.NM.Objects.ActiveConnection |
class (GObject o, IsDescendantOf ActiveConnection o) => IsActiveConnection o Source #
Type class for types which can be safely cast to ActiveConnection
, for instance with toActiveConnection
.
Instances
(GObject o, IsDescendantOf ActiveConnection o) => IsActiveConnection o Source # | |
Defined in GI.NM.Objects.ActiveConnection |
toActiveConnection :: (MonadIO m, IsActiveConnection o) => o -> m ActiveConnection Source #
Cast to ActiveConnection
, 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
getClient, getConnection, getConnectionType, getController, getData, getDefault, getDefault6, getDevices, getDhcp4Config, getDhcp6Config, getId, getIp4Config, getIp6Config, getMaster, getPath, getProperty, getQdata, getSpecificObjectPath, getState, getStateFlags, getStateReason, getUuid, getVpn.
Setters
getConnection
activeConnectionGetConnection Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m RemoteConnection | Returns: the |
Gets the RemoteConnection
associated with connection
.
getConnectionType
activeConnectionGetConnectionType Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m Text | Returns: the type of the |
Gets the Connection
's type.
getController
activeConnectionGetController Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m (Ptr ()) | Returns: the controller |
Gets the controller Device
of the connection. This replaces the
deprecated activeConnectionGetMaster
method.
Since: 1.44
getDefault
activeConnectionGetDefault Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m Bool | Returns: |
Whether the active connection is the default IPv4 one (that is, is used for the default IPv4 route and DNS information).
getDefault6
activeConnectionGetDefault6 Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m Bool | Returns: |
Whether the active connection is the default IPv6 one (that is, is used for the default IPv6 route and DNS information).
getDevices
activeConnectionGetDevices Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m [Device] | Returns: the |
Gets the NMDevices
used for the active connections.
getDhcp4Config
activeConnectionGetDhcp4Config Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m DhcpConfig | Returns: the IPv4 |
Gets the current IPv4 DhcpConfig
(if any) associated with the
ActiveConnection
.
getDhcp6Config
activeConnectionGetDhcp6Config Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m DhcpConfig | Returns: the IPv6 |
Gets the current IPv6 DhcpConfig
(if any) associated with the
ActiveConnection
.
getId
activeConnectionGetId Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m Text | Returns: the ID of the |
Gets the Connection
's ID.
getIp4Config
activeConnectionGetIp4Config Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m IPConfig | Returns: the IPv4 |
Gets the current IPv4 IPConfig
associated with the ActiveConnection
.
getIp6Config
activeConnectionGetIp6Config Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m IPConfig | Returns: the IPv6 |
Gets the current IPv6 IPConfig
associated with the ActiveConnection
.
getMaster
activeConnectionGetMaster Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m (Ptr ()) | Returns: the controller |
Deprecated: (Since version 1.44)Use activeConnectionGetController
instead.
Gets the controller Device
of the connection.
getSpecificObjectPath
activeConnectionGetSpecificObjectPath Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m Text | Returns: the specific object's D-Bus path. This is the internal string used by the connection, and must not be modified. |
Gets the path of the "specific object" used at activation.
Currently, there is no single method that will allow you to automatically turn
this into an appropriate Object
; you need to know what kind of object it
is based on other information. (Eg, if connection
corresponds to a Wi-Fi
connection, then the specific object will be an AccessPoint
, and you can
resolve it with deviceWifiGetAccessPointByPath
.)
getState
activeConnectionGetState Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m ActiveConnectionState | Returns: the state |
Gets the active connection's state.
getStateFlags
activeConnectionGetStateFlags Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m [ActivationStateFlags] | Returns: the state flags |
Gets the active connection's state flags.
Since: 1.10
getStateReason
activeConnectionGetStateReason Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m ActiveConnectionStateReason | Returns: the reason |
Gets the reason for active connection's state.
Since: 1.8
getUuid
activeConnectionGetUuid Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m Text | Returns: the UUID of the |
Gets the Connection
's UUID.
getVpn
activeConnectionGetVpn Source #
Arguments
:: (HasCallStack, MonadIO m, IsActiveConnection a) | |
=> a |
|
-> m Bool | Returns: |
Whether the active connection is a VPN connection.
Properties
connection
The connection that this is an active instance of.
getActiveConnectionConnection :: (MonadIO m, IsActiveConnection o) => o -> m RemoteConnection Source #
Get the value of the “connection
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #connection
controller
The controller device if one exists. This replaces the deprecated "master" property.
Since: 1.44
getActiveConnectionController :: (MonadIO m, IsActiveConnection o) => o -> m (Maybe Device) Source #
Get the value of the “controller
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #controller
default
Whether the active connection is the default IPv4 one.
getActiveConnectionDefault :: (MonadIO m, IsActiveConnection o) => o -> m Bool Source #
Get the value of the “default
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #default
default6
Whether the active connection is the default IPv6 one.
getActiveConnectionDefault6 :: (MonadIO m, IsActiveConnection o) => o -> m Bool Source #
Get the value of the “default6
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #default6
devices
dhcp4Config
The IPv4 DhcpConfig
of the connection.
getActiveConnectionDhcp4Config :: (MonadIO m, IsActiveConnection o) => o -> m DhcpConfig Source #
Get the value of the “dhcp4-config
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #dhcp4Config
dhcp6Config
The IPv6 DhcpConfig
of the connection.
getActiveConnectionDhcp6Config :: (MonadIO m, IsActiveConnection o) => o -> m DhcpConfig Source #
Get the value of the “dhcp6-config
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #dhcp6Config
id
The active connection's ID
getActiveConnectionId :: (MonadIO m, IsActiveConnection o) => o -> m Text Source #
Get the value of the “id
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #id
ip4Config
The IPv4 IPConfig
of the connection.
getActiveConnectionIp4Config :: (MonadIO m, IsActiveConnection o) => o -> m IPConfig Source #
Get the value of the “ip4-config
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #ip4Config
ip6Config
The IPv6 IPConfig
of the connection.
getActiveConnectionIp6Config :: (MonadIO m, IsActiveConnection o) => o -> m IPConfig Source #
Get the value of the “ip6-config
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #ip6Config
master
The controller device if one exists. Replaced by the "controller" property.
getActiveConnectionMaster :: (MonadIO m, IsActiveConnection o) => o -> m (Maybe Device) Source #
Get the value of the “master
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #master
specificObjectPath
The path to the "specific object" of the active connection; see
activeConnectionGetSpecificObjectPath
for more details.
getActiveConnectionSpecificObjectPath :: (MonadIO m, IsActiveConnection o) => o -> m Text Source #
Get the value of the “specific-object-path
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #specificObjectPath
state
The state of the active connection.
getActiveConnectionState :: (MonadIO m, IsActiveConnection o) => o -> m ActiveConnectionState Source #
Get the value of the “state
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #state
stateFlags
The state flags of the active connection.
Since: 1.10
getActiveConnectionStateFlags :: (MonadIO m, IsActiveConnection o) => o -> m Word32 Source #
Get the value of the “state-flags
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #stateFlags
type
The active connection's type
getActiveConnectionType :: (MonadIO m, IsActiveConnection o) => o -> m (Maybe Text) Source #
Get the value of the “type
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #type
uuid
The active connection's UUID
getActiveConnectionUuid :: (MonadIO m, IsActiveConnection o) => o -> m Text Source #
Get the value of the “uuid
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #uuid
vpn
Whether the active connection is a VPN connection.
getActiveConnectionVpn :: (MonadIO m, IsActiveConnection o) => o -> m Bool Source #
Get the value of the “vpn
” property.
When overloading is enabled, this is equivalent to
get
activeConnection #vpn
Signals
stateChanged
type ActiveConnectionStateChangedCallback Source #
Arguments
= Word32 |
|
-> Word32 |
|
-> IO () |
No description available in the introspection data.
afterActiveConnectionStateChanged :: (IsActiveConnection a, MonadIO m) => a -> ((?self :: a) => ActiveConnectionStateChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the stateChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
activeConnection #stateChanged 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.
onActiveConnectionStateChanged :: (IsActiveConnection a, MonadIO m) => a -> ((?self :: a) => ActiveConnectionStateChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the stateChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
activeConnection #stateChanged callback