{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.NM.Objects.SettingConnection
(
SettingConnection(..) ,
IsSettingConnection ,
toSettingConnection ,
#if defined(ENABLE_OVERLOADING)
ResolveSettingConnectionMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionAddPermissionMethodInfo,
#endif
settingConnectionAddPermission ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionAddSecondaryMethodInfo ,
#endif
settingConnectionAddSecondary ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetAuthRetriesMethodInfo,
#endif
settingConnectionGetAuthRetries ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetAutoconnectMethodInfo,
#endif
settingConnectionGetAutoconnect ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetAutoconnectPortsMethodInfo,
#endif
settingConnectionGetAutoconnectPorts ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetAutoconnectPriorityMethodInfo,
#endif
settingConnectionGetAutoconnectPriority ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetAutoconnectRetriesMethodInfo,
#endif
settingConnectionGetAutoconnectRetries ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetAutoconnectSlavesMethodInfo,
#endif
settingConnectionGetAutoconnectSlaves ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetConnectionTypeMethodInfo,
#endif
settingConnectionGetConnectionType ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetControllerMethodInfo,
#endif
settingConnectionGetController ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetDnsOverTlsMethodInfo,
#endif
settingConnectionGetDnsOverTls ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetDownOnPoweroffMethodInfo,
#endif
settingConnectionGetDownOnPoweroff ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetGatewayPingTimeoutMethodInfo,
#endif
settingConnectionGetGatewayPingTimeout ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetIdMethodInfo ,
#endif
settingConnectionGetId ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetInterfaceNameMethodInfo,
#endif
settingConnectionGetInterfaceName ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetLldpMethodInfo ,
#endif
settingConnectionGetLldp ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetLlmnrMethodInfo ,
#endif
settingConnectionGetLlmnr ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetMasterMethodInfo ,
#endif
settingConnectionGetMaster ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetMdnsMethodInfo ,
#endif
settingConnectionGetMdns ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetMeteredMethodInfo ,
#endif
settingConnectionGetMetered ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetMptcpFlagsMethodInfo,
#endif
settingConnectionGetMptcpFlags ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetMudUrlMethodInfo ,
#endif
settingConnectionGetMudUrl ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetMultiConnectMethodInfo,
#endif
settingConnectionGetMultiConnect ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetNumPermissionsMethodInfo,
#endif
settingConnectionGetNumPermissions ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetNumSecondariesMethodInfo,
#endif
settingConnectionGetNumSecondaries ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetPermissionMethodInfo,
#endif
settingConnectionGetPermission ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetPortTypeMethodInfo ,
#endif
settingConnectionGetPortType ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetReadOnlyMethodInfo ,
#endif
settingConnectionGetReadOnly ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetSecondaryMethodInfo ,
#endif
settingConnectionGetSecondary ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetSlaveTypeMethodInfo ,
#endif
settingConnectionGetSlaveType ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetStableIdMethodInfo ,
#endif
settingConnectionGetStableId ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetTimestampMethodInfo ,
#endif
settingConnectionGetTimestamp ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetUuidMethodInfo ,
#endif
settingConnectionGetUuid ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetWaitActivationDelayMethodInfo,
#endif
settingConnectionGetWaitActivationDelay ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetWaitDeviceTimeoutMethodInfo,
#endif
settingConnectionGetWaitDeviceTimeout ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionGetZoneMethodInfo ,
#endif
settingConnectionGetZone ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionIsSlaveTypeMethodInfo ,
#endif
settingConnectionIsSlaveType ,
settingConnectionNew ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionPermissionsUserAllowedMethodInfo,
#endif
settingConnectionPermissionsUserAllowed ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionRemovePermissionMethodInfo,
#endif
settingConnectionRemovePermission ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionRemovePermissionByValueMethodInfo,
#endif
settingConnectionRemovePermissionByValue,
#if defined(ENABLE_OVERLOADING)
SettingConnectionRemoveSecondaryMethodInfo,
#endif
settingConnectionRemoveSecondary ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionRemoveSecondaryByValueMethodInfo,
#endif
settingConnectionRemoveSecondaryByValue ,
#if defined(ENABLE_OVERLOADING)
SettingConnectionAuthRetriesPropertyInfo,
#endif
constructSettingConnectionAuthRetries ,
getSettingConnectionAuthRetries ,
setSettingConnectionAuthRetries ,
#if defined(ENABLE_OVERLOADING)
settingConnectionAuthRetries ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionAutoconnectPropertyInfo,
#endif
constructSettingConnectionAutoconnect ,
getSettingConnectionAutoconnect ,
setSettingConnectionAutoconnect ,
#if defined(ENABLE_OVERLOADING)
settingConnectionAutoconnect ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionAutoconnectPortsPropertyInfo,
#endif
constructSettingConnectionAutoconnectPorts,
getSettingConnectionAutoconnectPorts ,
setSettingConnectionAutoconnectPorts ,
#if defined(ENABLE_OVERLOADING)
settingConnectionAutoconnectPorts ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionAutoconnectPriorityPropertyInfo,
#endif
constructSettingConnectionAutoconnectPriority,
getSettingConnectionAutoconnectPriority ,
setSettingConnectionAutoconnectPriority ,
#if defined(ENABLE_OVERLOADING)
settingConnectionAutoconnectPriority ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionAutoconnectRetriesPropertyInfo,
#endif
constructSettingConnectionAutoconnectRetries,
getSettingConnectionAutoconnectRetries ,
setSettingConnectionAutoconnectRetries ,
#if defined(ENABLE_OVERLOADING)
settingConnectionAutoconnectRetries ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionAutoconnectSlavesPropertyInfo,
#endif
constructSettingConnectionAutoconnectSlaves,
getSettingConnectionAutoconnectSlaves ,
setSettingConnectionAutoconnectSlaves ,
#if defined(ENABLE_OVERLOADING)
settingConnectionAutoconnectSlaves ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionControllerPropertyInfo ,
#endif
clearSettingConnectionController ,
constructSettingConnectionController ,
getSettingConnectionController ,
setSettingConnectionController ,
#if defined(ENABLE_OVERLOADING)
settingConnectionController ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionDnsOverTlsPropertyInfo ,
#endif
constructSettingConnectionDnsOverTls ,
getSettingConnectionDnsOverTls ,
setSettingConnectionDnsOverTls ,
#if defined(ENABLE_OVERLOADING)
settingConnectionDnsOverTls ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionDownOnPoweroffPropertyInfo,
#endif
constructSettingConnectionDownOnPoweroff,
getSettingConnectionDownOnPoweroff ,
setSettingConnectionDownOnPoweroff ,
#if defined(ENABLE_OVERLOADING)
settingConnectionDownOnPoweroff ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionGatewayPingTimeoutPropertyInfo,
#endif
constructSettingConnectionGatewayPingTimeout,
getSettingConnectionGatewayPingTimeout ,
setSettingConnectionGatewayPingTimeout ,
#if defined(ENABLE_OVERLOADING)
settingConnectionGatewayPingTimeout ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionIdPropertyInfo ,
#endif
clearSettingConnectionId ,
constructSettingConnectionId ,
getSettingConnectionId ,
setSettingConnectionId ,
#if defined(ENABLE_OVERLOADING)
settingConnectionId ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionInterfaceNamePropertyInfo,
#endif
clearSettingConnectionInterfaceName ,
constructSettingConnectionInterfaceName ,
getSettingConnectionInterfaceName ,
setSettingConnectionInterfaceName ,
#if defined(ENABLE_OVERLOADING)
settingConnectionInterfaceName ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionLldpPropertyInfo ,
#endif
constructSettingConnectionLldp ,
getSettingConnectionLldp ,
setSettingConnectionLldp ,
#if defined(ENABLE_OVERLOADING)
settingConnectionLldp ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionLlmnrPropertyInfo ,
#endif
constructSettingConnectionLlmnr ,
getSettingConnectionLlmnr ,
setSettingConnectionLlmnr ,
#if defined(ENABLE_OVERLOADING)
settingConnectionLlmnr ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionMasterPropertyInfo ,
#endif
clearSettingConnectionMaster ,
constructSettingConnectionMaster ,
getSettingConnectionMaster ,
setSettingConnectionMaster ,
#if defined(ENABLE_OVERLOADING)
settingConnectionMaster ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionMdnsPropertyInfo ,
#endif
constructSettingConnectionMdns ,
getSettingConnectionMdns ,
setSettingConnectionMdns ,
#if defined(ENABLE_OVERLOADING)
settingConnectionMdns ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionMeteredPropertyInfo ,
#endif
constructSettingConnectionMetered ,
getSettingConnectionMetered ,
setSettingConnectionMetered ,
#if defined(ENABLE_OVERLOADING)
settingConnectionMetered ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionMptcpFlagsPropertyInfo ,
#endif
constructSettingConnectionMptcpFlags ,
getSettingConnectionMptcpFlags ,
setSettingConnectionMptcpFlags ,
#if defined(ENABLE_OVERLOADING)
settingConnectionMptcpFlags ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionMudUrlPropertyInfo ,
#endif
clearSettingConnectionMudUrl ,
constructSettingConnectionMudUrl ,
getSettingConnectionMudUrl ,
setSettingConnectionMudUrl ,
#if defined(ENABLE_OVERLOADING)
settingConnectionMudUrl ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionMultiConnectPropertyInfo,
#endif
constructSettingConnectionMultiConnect ,
getSettingConnectionMultiConnect ,
setSettingConnectionMultiConnect ,
#if defined(ENABLE_OVERLOADING)
settingConnectionMultiConnect ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionPermissionsPropertyInfo,
#endif
clearSettingConnectionPermissions ,
constructSettingConnectionPermissions ,
getSettingConnectionPermissions ,
setSettingConnectionPermissions ,
#if defined(ENABLE_OVERLOADING)
settingConnectionPermissions ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionPortTypePropertyInfo ,
#endif
clearSettingConnectionPortType ,
constructSettingConnectionPortType ,
getSettingConnectionPortType ,
setSettingConnectionPortType ,
#if defined(ENABLE_OVERLOADING)
settingConnectionPortType ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionReadOnlyPropertyInfo ,
#endif
constructSettingConnectionReadOnly ,
getSettingConnectionReadOnly ,
setSettingConnectionReadOnly ,
#if defined(ENABLE_OVERLOADING)
settingConnectionReadOnly ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionSecondariesPropertyInfo,
#endif
clearSettingConnectionSecondaries ,
constructSettingConnectionSecondaries ,
getSettingConnectionSecondaries ,
setSettingConnectionSecondaries ,
#if defined(ENABLE_OVERLOADING)
settingConnectionSecondaries ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionSlaveTypePropertyInfo ,
#endif
clearSettingConnectionSlaveType ,
constructSettingConnectionSlaveType ,
getSettingConnectionSlaveType ,
setSettingConnectionSlaveType ,
#if defined(ENABLE_OVERLOADING)
settingConnectionSlaveType ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionStableIdPropertyInfo ,
#endif
clearSettingConnectionStableId ,
constructSettingConnectionStableId ,
getSettingConnectionStableId ,
setSettingConnectionStableId ,
#if defined(ENABLE_OVERLOADING)
settingConnectionStableId ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionTimestampPropertyInfo ,
#endif
constructSettingConnectionTimestamp ,
getSettingConnectionTimestamp ,
setSettingConnectionTimestamp ,
#if defined(ENABLE_OVERLOADING)
settingConnectionTimestamp ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionTypePropertyInfo ,
#endif
clearSettingConnectionType ,
constructSettingConnectionType ,
getSettingConnectionType ,
setSettingConnectionType ,
#if defined(ENABLE_OVERLOADING)
settingConnectionType ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionUuidPropertyInfo ,
#endif
clearSettingConnectionUuid ,
constructSettingConnectionUuid ,
getSettingConnectionUuid ,
setSettingConnectionUuid ,
#if defined(ENABLE_OVERLOADING)
settingConnectionUuid ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionWaitActivationDelayPropertyInfo,
#endif
constructSettingConnectionWaitActivationDelay,
getSettingConnectionWaitActivationDelay ,
setSettingConnectionWaitActivationDelay ,
#if defined(ENABLE_OVERLOADING)
settingConnectionWaitActivationDelay ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionWaitDeviceTimeoutPropertyInfo,
#endif
constructSettingConnectionWaitDeviceTimeout,
getSettingConnectionWaitDeviceTimeout ,
setSettingConnectionWaitDeviceTimeout ,
#if defined(ENABLE_OVERLOADING)
settingConnectionWaitDeviceTimeout ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingConnectionZonePropertyInfo ,
#endif
clearSettingConnectionZone ,
constructSettingConnectionZone ,
getSettingConnectionZone ,
setSettingConnectionZone ,
#if defined(ENABLE_OVERLOADING)
settingConnectionZone ,
#endif
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT
#if MIN_VERSION_base(4,18,0)
import qualified GI.GLib.Structs.Bytes as GLib.Bytes
import qualified GI.GLib.Structs.VariantType as GLib.VariantType
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.NM.Callbacks as NM.Callbacks
import {-# SOURCE #-} qualified GI.NM.Enums as NM.Enums
import {-# SOURCE #-} qualified GI.NM.Flags as NM.Flags
import {-# SOURCE #-} qualified GI.NM.Interfaces.Connection as NM.Connection
import {-# SOURCE #-} qualified GI.NM.Objects.Setting as NM.Setting
import {-# SOURCE #-} qualified GI.NM.Objects.Setting8021x as NM.Setting8021x
import {-# SOURCE #-} qualified GI.NM.Objects.SettingAdsl as NM.SettingAdsl
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBluetooth as NM.SettingBluetooth
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBond as NM.SettingBond
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBridge as NM.SettingBridge
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBridgePort as NM.SettingBridgePort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingCdma as NM.SettingCdma
import {-# SOURCE #-} qualified GI.NM.Objects.SettingDcb as NM.SettingDcb
import {-# SOURCE #-} qualified GI.NM.Objects.SettingDummy as NM.SettingDummy
import {-# SOURCE #-} qualified GI.NM.Objects.SettingGeneric as NM.SettingGeneric
import {-# SOURCE #-} qualified GI.NM.Objects.SettingGsm as NM.SettingGsm
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIP4Config as NM.SettingIP4Config
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIP6Config as NM.SettingIP6Config
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIPConfig as NM.SettingIPConfig
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIPTunnel as NM.SettingIPTunnel
import {-# SOURCE #-} qualified GI.NM.Objects.SettingInfiniband as NM.SettingInfiniband
import {-# SOURCE #-} qualified GI.NM.Objects.SettingMacsec as NM.SettingMacsec
import {-# SOURCE #-} qualified GI.NM.Objects.SettingMacvlan as NM.SettingMacvlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOlpcMesh as NM.SettingOlpcMesh
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsBridge as NM.SettingOvsBridge
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsInterface as NM.SettingOvsInterface
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsPatch as NM.SettingOvsPatch
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsPort as NM.SettingOvsPort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingPpp as NM.SettingPpp
import {-# SOURCE #-} qualified GI.NM.Objects.SettingPppoe as NM.SettingPppoe
import {-# SOURCE #-} qualified GI.NM.Objects.SettingProxy as NM.SettingProxy
import {-# SOURCE #-} qualified GI.NM.Objects.SettingSerial as NM.SettingSerial
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTCConfig as NM.SettingTCConfig
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTeam as NM.SettingTeam
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTeamPort as NM.SettingTeamPort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTun as NM.SettingTun
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVlan as NM.SettingVlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVpn as NM.SettingVpn
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVxlan as NM.SettingVxlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWimax as NM.SettingWimax
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWired as NM.SettingWired
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWireless as NM.SettingWireless
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWirelessSecurity as NM.SettingWirelessSecurity
import {-# SOURCE #-} qualified GI.NM.Structs.BridgeVlan as NM.BridgeVlan
import {-# SOURCE #-} qualified GI.NM.Structs.IPAddress as NM.IPAddress
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoute as NM.IPRoute
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoutingRule as NM.IPRoutingRule
import {-# SOURCE #-} qualified GI.NM.Structs.Range as NM.Range
import {-# SOURCE #-} qualified GI.NM.Structs.TCAction as NM.TCAction
import {-# SOURCE #-} qualified GI.NM.Structs.TCQdisc as NM.TCQdisc
import {-# SOURCE #-} qualified GI.NM.Structs.TCTfilter as NM.TCTfilter
import {-# SOURCE #-} qualified GI.NM.Structs.TeamLinkWatcher as NM.TeamLinkWatcher
import {-# SOURCE #-} qualified GI.NM.Structs.VariantAttributeSpec as NM.VariantAttributeSpec
#else
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.NM.Enums as NM.Enums
import {-# SOURCE #-} qualified GI.NM.Flags as NM.Flags
import {-# SOURCE #-} qualified GI.NM.Objects.Setting as NM.Setting
#endif
newtype SettingConnection = SettingConnection (SP.ManagedPtr SettingConnection)
deriving (SettingConnection -> SettingConnection -> Bool
(SettingConnection -> SettingConnection -> Bool)
-> (SettingConnection -> SettingConnection -> Bool)
-> Eq SettingConnection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SettingConnection -> SettingConnection -> Bool
== :: SettingConnection -> SettingConnection -> Bool
$c/= :: SettingConnection -> SettingConnection -> Bool
/= :: SettingConnection -> SettingConnection -> Bool
Eq)
instance SP.ManagedPtrNewtype SettingConnection where
toManagedPtr :: SettingConnection -> ManagedPtr SettingConnection
toManagedPtr (SettingConnection ManagedPtr SettingConnection
p) = ManagedPtr SettingConnection
p
foreign import ccall "nm_setting_connection_get_type"
c_nm_setting_connection_get_type :: IO B.Types.GType
instance B.Types.TypedObject SettingConnection where
glibType :: IO GType
glibType = IO GType
c_nm_setting_connection_get_type
instance B.Types.GObject SettingConnection
class (SP.GObject o, O.IsDescendantOf SettingConnection o) => IsSettingConnection o
instance (SP.GObject o, O.IsDescendantOf SettingConnection o) => IsSettingConnection o
instance O.HasParentTypes SettingConnection
type instance O.ParentTypes SettingConnection = '[NM.Setting.Setting, GObject.Object.Object]
toSettingConnection :: (MIO.MonadIO m, IsSettingConnection o) => o -> m SettingConnection
toSettingConnection :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m SettingConnection
toSettingConnection = IO SettingConnection -> m SettingConnection
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO SettingConnection -> m SettingConnection)
-> (o -> IO SettingConnection) -> o -> m SettingConnection
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr SettingConnection -> SettingConnection)
-> o -> IO SettingConnection
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr SettingConnection -> SettingConnection
SettingConnection
instance B.GValue.IsGValue (Maybe SettingConnection) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_nm_setting_connection_get_type
gvalueSet_ :: Ptr GValue -> Maybe SettingConnection -> IO ()
gvalueSet_ Ptr GValue
gv Maybe SettingConnection
P.Nothing = Ptr GValue -> Ptr SettingConnection -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr SettingConnection
forall a. Ptr a
FP.nullPtr :: FP.Ptr SettingConnection)
gvalueSet_ Ptr GValue
gv (P.Just SettingConnection
obj) = SettingConnection -> (Ptr SettingConnection -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr SettingConnection
obj (Ptr GValue -> Ptr SettingConnection -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe SettingConnection)
gvalueGet_ Ptr GValue
gv = do
Ptr SettingConnection
ptr <- Ptr GValue -> IO (Ptr SettingConnection)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr SettingConnection)
if Ptr SettingConnection
ptr Ptr SettingConnection -> Ptr SettingConnection -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr SettingConnection
forall a. Ptr a
FP.nullPtr
then SettingConnection -> Maybe SettingConnection
forall a. a -> Maybe a
P.Just (SettingConnection -> Maybe SettingConnection)
-> IO SettingConnection -> IO (Maybe SettingConnection)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr SettingConnection -> SettingConnection)
-> Ptr SettingConnection -> IO SettingConnection
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr SettingConnection -> SettingConnection
SettingConnection Ptr SettingConnection
ptr
else Maybe SettingConnection -> IO (Maybe SettingConnection)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe SettingConnection
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveSettingConnectionMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveSettingConnectionMethod "addPermission" o = SettingConnectionAddPermissionMethodInfo
ResolveSettingConnectionMethod "addSecondary" o = SettingConnectionAddSecondaryMethodInfo
ResolveSettingConnectionMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveSettingConnectionMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveSettingConnectionMethod "compare" o = NM.Setting.SettingCompareMethodInfo
ResolveSettingConnectionMethod "diff" o = NM.Setting.SettingDiffMethodInfo
ResolveSettingConnectionMethod "duplicate" o = NM.Setting.SettingDuplicateMethodInfo
ResolveSettingConnectionMethod "enumerateValues" o = NM.Setting.SettingEnumerateValuesMethodInfo
ResolveSettingConnectionMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveSettingConnectionMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveSettingConnectionMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveSettingConnectionMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveSettingConnectionMethod "isSlaveType" o = SettingConnectionIsSlaveTypeMethodInfo
ResolveSettingConnectionMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveSettingConnectionMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveSettingConnectionMethod "optionClearByName" o = NM.Setting.SettingOptionClearByNameMethodInfo
ResolveSettingConnectionMethod "optionGet" o = NM.Setting.SettingOptionGetMethodInfo
ResolveSettingConnectionMethod "optionGetAllNames" o = NM.Setting.SettingOptionGetAllNamesMethodInfo
ResolveSettingConnectionMethod "optionGetBoolean" o = NM.Setting.SettingOptionGetBooleanMethodInfo
ResolveSettingConnectionMethod "optionGetUint32" o = NM.Setting.SettingOptionGetUint32MethodInfo
ResolveSettingConnectionMethod "optionSet" o = NM.Setting.SettingOptionSetMethodInfo
ResolveSettingConnectionMethod "optionSetBoolean" o = NM.Setting.SettingOptionSetBooleanMethodInfo
ResolveSettingConnectionMethod "optionSetUint32" o = NM.Setting.SettingOptionSetUint32MethodInfo
ResolveSettingConnectionMethod "permissionsUserAllowed" o = SettingConnectionPermissionsUserAllowedMethodInfo
ResolveSettingConnectionMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveSettingConnectionMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveSettingConnectionMethod "removePermission" o = SettingConnectionRemovePermissionMethodInfo
ResolveSettingConnectionMethod "removePermissionByValue" o = SettingConnectionRemovePermissionByValueMethodInfo
ResolveSettingConnectionMethod "removeSecondary" o = SettingConnectionRemoveSecondaryMethodInfo
ResolveSettingConnectionMethod "removeSecondaryByValue" o = SettingConnectionRemoveSecondaryByValueMethodInfo
ResolveSettingConnectionMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveSettingConnectionMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveSettingConnectionMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveSettingConnectionMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveSettingConnectionMethod "toString" o = NM.Setting.SettingToStringMethodInfo
ResolveSettingConnectionMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveSettingConnectionMethod "verify" o = NM.Setting.SettingVerifyMethodInfo
ResolveSettingConnectionMethod "verifySecrets" o = NM.Setting.SettingVerifySecretsMethodInfo
ResolveSettingConnectionMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveSettingConnectionMethod "getAuthRetries" o = SettingConnectionGetAuthRetriesMethodInfo
ResolveSettingConnectionMethod "getAutoconnect" o = SettingConnectionGetAutoconnectMethodInfo
ResolveSettingConnectionMethod "getAutoconnectPorts" o = SettingConnectionGetAutoconnectPortsMethodInfo
ResolveSettingConnectionMethod "getAutoconnectPriority" o = SettingConnectionGetAutoconnectPriorityMethodInfo
ResolveSettingConnectionMethod "getAutoconnectRetries" o = SettingConnectionGetAutoconnectRetriesMethodInfo
ResolveSettingConnectionMethod "getAutoconnectSlaves" o = SettingConnectionGetAutoconnectSlavesMethodInfo
ResolveSettingConnectionMethod "getConnectionType" o = SettingConnectionGetConnectionTypeMethodInfo
ResolveSettingConnectionMethod "getController" o = SettingConnectionGetControllerMethodInfo
ResolveSettingConnectionMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveSettingConnectionMethod "getDbusPropertyType" o = NM.Setting.SettingGetDbusPropertyTypeMethodInfo
ResolveSettingConnectionMethod "getDnsOverTls" o = SettingConnectionGetDnsOverTlsMethodInfo
ResolveSettingConnectionMethod "getDownOnPoweroff" o = SettingConnectionGetDownOnPoweroffMethodInfo
ResolveSettingConnectionMethod "getGatewayPingTimeout" o = SettingConnectionGetGatewayPingTimeoutMethodInfo
ResolveSettingConnectionMethod "getId" o = SettingConnectionGetIdMethodInfo
ResolveSettingConnectionMethod "getInterfaceName" o = SettingConnectionGetInterfaceNameMethodInfo
ResolveSettingConnectionMethod "getLldp" o = SettingConnectionGetLldpMethodInfo
ResolveSettingConnectionMethod "getLlmnr" o = SettingConnectionGetLlmnrMethodInfo
ResolveSettingConnectionMethod "getMaster" o = SettingConnectionGetMasterMethodInfo
ResolveSettingConnectionMethod "getMdns" o = SettingConnectionGetMdnsMethodInfo
ResolveSettingConnectionMethod "getMetered" o = SettingConnectionGetMeteredMethodInfo
ResolveSettingConnectionMethod "getMptcpFlags" o = SettingConnectionGetMptcpFlagsMethodInfo
ResolveSettingConnectionMethod "getMudUrl" o = SettingConnectionGetMudUrlMethodInfo
ResolveSettingConnectionMethod "getMultiConnect" o = SettingConnectionGetMultiConnectMethodInfo
ResolveSettingConnectionMethod "getName" o = NM.Setting.SettingGetNameMethodInfo
ResolveSettingConnectionMethod "getNumPermissions" o = SettingConnectionGetNumPermissionsMethodInfo
ResolveSettingConnectionMethod "getNumSecondaries" o = SettingConnectionGetNumSecondariesMethodInfo
ResolveSettingConnectionMethod "getPermission" o = SettingConnectionGetPermissionMethodInfo
ResolveSettingConnectionMethod "getPortType" o = SettingConnectionGetPortTypeMethodInfo
ResolveSettingConnectionMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveSettingConnectionMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveSettingConnectionMethod "getReadOnly" o = SettingConnectionGetReadOnlyMethodInfo
ResolveSettingConnectionMethod "getSecondary" o = SettingConnectionGetSecondaryMethodInfo
ResolveSettingConnectionMethod "getSecretFlags" o = NM.Setting.SettingGetSecretFlagsMethodInfo
ResolveSettingConnectionMethod "getSlaveType" o = SettingConnectionGetSlaveTypeMethodInfo
ResolveSettingConnectionMethod "getStableId" o = SettingConnectionGetStableIdMethodInfo
ResolveSettingConnectionMethod "getTimestamp" o = SettingConnectionGetTimestampMethodInfo
ResolveSettingConnectionMethod "getUuid" o = SettingConnectionGetUuidMethodInfo
ResolveSettingConnectionMethod "getWaitActivationDelay" o = SettingConnectionGetWaitActivationDelayMethodInfo
ResolveSettingConnectionMethod "getWaitDeviceTimeout" o = SettingConnectionGetWaitDeviceTimeoutMethodInfo
ResolveSettingConnectionMethod "getZone" o = SettingConnectionGetZoneMethodInfo
ResolveSettingConnectionMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveSettingConnectionMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveSettingConnectionMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveSettingConnectionMethod "setSecretFlags" o = NM.Setting.SettingSetSecretFlagsMethodInfo
ResolveSettingConnectionMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveSettingConnectionMethod t SettingConnection, O.OverloadedMethod info SettingConnection p) => OL.IsLabel t (SettingConnection -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveSettingConnectionMethod t SettingConnection, O.OverloadedMethod info SettingConnection p, R.HasField t SettingConnection p) => R.HasField t SettingConnection p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveSettingConnectionMethod t SettingConnection, O.OverloadedMethodInfo info SettingConnection) => OL.IsLabel t (O.MethodProxy info SettingConnection) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getSettingConnectionAuthRetries :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionAuthRetries :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionAuthRetries o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"auth-retries"
setSettingConnectionAuthRetries :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionAuthRetries :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionAuthRetries o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"auth-retries" Int32
val
constructSettingConnectionAuthRetries :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionAuthRetries :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionAuthRetries Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"auth-retries" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionAuthRetriesPropertyInfo
instance AttrInfo SettingConnectionAuthRetriesPropertyInfo where
type AttrAllowedOps SettingConnectionAuthRetriesPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionAuthRetriesPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionAuthRetriesPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionAuthRetriesPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionAuthRetriesPropertyInfo = Int32
type AttrGetType SettingConnectionAuthRetriesPropertyInfo = Int32
type AttrLabel SettingConnectionAuthRetriesPropertyInfo = "auth-retries"
type AttrOrigin SettingConnectionAuthRetriesPropertyInfo = SettingConnection
attrGet = getSettingConnectionAuthRetries
attrSet = setSettingConnectionAuthRetries
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionAuthRetries
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.authRetries"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:authRetries"
})
#endif
getSettingConnectionAutoconnect :: (MonadIO m, IsSettingConnection o) => o -> m Bool
getSettingConnectionAutoconnect :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Bool
getSettingConnectionAutoconnect o
obj = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"autoconnect"
setSettingConnectionAutoconnect :: (MonadIO m, IsSettingConnection o) => o -> Bool -> m ()
setSettingConnectionAutoconnect :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Bool -> m ()
setSettingConnectionAutoconnect o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"autoconnect" Bool
val
constructSettingConnectionAutoconnect :: (IsSettingConnection o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructSettingConnectionAutoconnect :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructSettingConnectionAutoconnect Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"autoconnect" Bool
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionAutoconnectPropertyInfo
instance AttrInfo SettingConnectionAutoconnectPropertyInfo where
type AttrAllowedOps SettingConnectionAutoconnectPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionAutoconnectPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionAutoconnectPropertyInfo = (~) Bool
type AttrTransferTypeConstraint SettingConnectionAutoconnectPropertyInfo = (~) Bool
type AttrTransferType SettingConnectionAutoconnectPropertyInfo = Bool
type AttrGetType SettingConnectionAutoconnectPropertyInfo = Bool
type AttrLabel SettingConnectionAutoconnectPropertyInfo = "autoconnect"
type AttrOrigin SettingConnectionAutoconnectPropertyInfo = SettingConnection
attrGet = getSettingConnectionAutoconnect
attrSet = setSettingConnectionAutoconnect
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionAutoconnect
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.autoconnect"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:autoconnect"
})
#endif
getSettingConnectionAutoconnectPorts :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionAutoconnectPorts :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionAutoconnectPorts o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"autoconnect-ports"
setSettingConnectionAutoconnectPorts :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionAutoconnectPorts :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionAutoconnectPorts o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"autoconnect-ports" Int32
val
constructSettingConnectionAutoconnectPorts :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionAutoconnectPorts :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionAutoconnectPorts Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"autoconnect-ports" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionAutoconnectPortsPropertyInfo
instance AttrInfo SettingConnectionAutoconnectPortsPropertyInfo where
type AttrAllowedOps SettingConnectionAutoconnectPortsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionAutoconnectPortsPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionAutoconnectPortsPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionAutoconnectPortsPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionAutoconnectPortsPropertyInfo = Int32
type AttrGetType SettingConnectionAutoconnectPortsPropertyInfo = Int32
type AttrLabel SettingConnectionAutoconnectPortsPropertyInfo = "autoconnect-ports"
type AttrOrigin SettingConnectionAutoconnectPortsPropertyInfo = SettingConnection
attrGet = getSettingConnectionAutoconnectPorts
attrSet = setSettingConnectionAutoconnectPorts
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionAutoconnectPorts
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.autoconnectPorts"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:autoconnectPorts"
})
#endif
getSettingConnectionAutoconnectPriority :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionAutoconnectPriority :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionAutoconnectPriority o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"autoconnect-priority"
setSettingConnectionAutoconnectPriority :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionAutoconnectPriority :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionAutoconnectPriority o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"autoconnect-priority" Int32
val
constructSettingConnectionAutoconnectPriority :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionAutoconnectPriority :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionAutoconnectPriority Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"autoconnect-priority" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionAutoconnectPriorityPropertyInfo
instance AttrInfo SettingConnectionAutoconnectPriorityPropertyInfo where
type AttrAllowedOps SettingConnectionAutoconnectPriorityPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionAutoconnectPriorityPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionAutoconnectPriorityPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionAutoconnectPriorityPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionAutoconnectPriorityPropertyInfo = Int32
type AttrGetType SettingConnectionAutoconnectPriorityPropertyInfo = Int32
type AttrLabel SettingConnectionAutoconnectPriorityPropertyInfo = "autoconnect-priority"
type AttrOrigin SettingConnectionAutoconnectPriorityPropertyInfo = SettingConnection
attrGet = getSettingConnectionAutoconnectPriority
attrSet = setSettingConnectionAutoconnectPriority
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionAutoconnectPriority
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.autoconnectPriority"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:autoconnectPriority"
})
#endif
getSettingConnectionAutoconnectRetries :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionAutoconnectRetries :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionAutoconnectRetries o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"autoconnect-retries"
setSettingConnectionAutoconnectRetries :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionAutoconnectRetries :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionAutoconnectRetries o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"autoconnect-retries" Int32
val
constructSettingConnectionAutoconnectRetries :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionAutoconnectRetries :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionAutoconnectRetries Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"autoconnect-retries" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionAutoconnectRetriesPropertyInfo
instance AttrInfo SettingConnectionAutoconnectRetriesPropertyInfo where
type AttrAllowedOps SettingConnectionAutoconnectRetriesPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionAutoconnectRetriesPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionAutoconnectRetriesPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionAutoconnectRetriesPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionAutoconnectRetriesPropertyInfo = Int32
type AttrGetType SettingConnectionAutoconnectRetriesPropertyInfo = Int32
type AttrLabel SettingConnectionAutoconnectRetriesPropertyInfo = "autoconnect-retries"
type AttrOrigin SettingConnectionAutoconnectRetriesPropertyInfo = SettingConnection
attrGet = getSettingConnectionAutoconnectRetries
attrSet = setSettingConnectionAutoconnectRetries
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionAutoconnectRetries
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.autoconnectRetries"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:autoconnectRetries"
})
#endif
getSettingConnectionAutoconnectSlaves :: (MonadIO m, IsSettingConnection o) => o -> m NM.Enums.SettingConnectionAutoconnectSlaves
getSettingConnectionAutoconnectSlaves :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m SettingConnectionAutoconnectSlaves
getSettingConnectionAutoconnectSlaves o
obj = IO SettingConnectionAutoconnectSlaves
-> m SettingConnectionAutoconnectSlaves
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO SettingConnectionAutoconnectSlaves
-> m SettingConnectionAutoconnectSlaves)
-> IO SettingConnectionAutoconnectSlaves
-> m SettingConnectionAutoconnectSlaves
forall a b. (a -> b) -> a -> b
$ o -> String -> IO SettingConnectionAutoconnectSlaves
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"autoconnect-slaves"
setSettingConnectionAutoconnectSlaves :: (MonadIO m, IsSettingConnection o) => o -> NM.Enums.SettingConnectionAutoconnectSlaves -> m ()
setSettingConnectionAutoconnectSlaves :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> SettingConnectionAutoconnectSlaves -> m ()
setSettingConnectionAutoconnectSlaves o
obj SettingConnectionAutoconnectSlaves
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> SettingConnectionAutoconnectSlaves -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"autoconnect-slaves" SettingConnectionAutoconnectSlaves
val
constructSettingConnectionAutoconnectSlaves :: (IsSettingConnection o, MIO.MonadIO m) => NM.Enums.SettingConnectionAutoconnectSlaves -> m (GValueConstruct o)
constructSettingConnectionAutoconnectSlaves :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
SettingConnectionAutoconnectSlaves -> m (GValueConstruct o)
constructSettingConnectionAutoconnectSlaves SettingConnectionAutoconnectSlaves
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String
-> SettingConnectionAutoconnectSlaves -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"autoconnect-slaves" SettingConnectionAutoconnectSlaves
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionAutoconnectSlavesPropertyInfo
instance AttrInfo SettingConnectionAutoconnectSlavesPropertyInfo where
type AttrAllowedOps SettingConnectionAutoconnectSlavesPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionAutoconnectSlavesPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionAutoconnectSlavesPropertyInfo = (~) NM.Enums.SettingConnectionAutoconnectSlaves
type AttrTransferTypeConstraint SettingConnectionAutoconnectSlavesPropertyInfo = (~) NM.Enums.SettingConnectionAutoconnectSlaves
type AttrTransferType SettingConnectionAutoconnectSlavesPropertyInfo = NM.Enums.SettingConnectionAutoconnectSlaves
type AttrGetType SettingConnectionAutoconnectSlavesPropertyInfo = NM.Enums.SettingConnectionAutoconnectSlaves
type AttrLabel SettingConnectionAutoconnectSlavesPropertyInfo = "autoconnect-slaves"
type AttrOrigin SettingConnectionAutoconnectSlavesPropertyInfo = SettingConnection
attrGet = getSettingConnectionAutoconnectSlaves
attrSet = setSettingConnectionAutoconnectSlaves
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionAutoconnectSlaves
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.autoconnectSlaves"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:autoconnectSlaves"
})
#endif
getSettingConnectionController :: (MonadIO m, IsSettingConnection o) => o -> m T.Text
getSettingConnectionController :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Text
getSettingConnectionController o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingConnectionController" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"controller"
setSettingConnectionController :: (MonadIO m, IsSettingConnection o) => o -> T.Text -> m ()
setSettingConnectionController :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Text -> m ()
setSettingConnectionController o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"controller" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingConnectionController :: (IsSettingConnection o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingConnectionController :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingConnectionController Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"controller" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingConnectionController :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionController :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionController o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"controller" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingConnectionControllerPropertyInfo
instance AttrInfo SettingConnectionControllerPropertyInfo where
type AttrAllowedOps SettingConnectionControllerPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionControllerPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionControllerPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingConnectionControllerPropertyInfo = (~) T.Text
type AttrTransferType SettingConnectionControllerPropertyInfo = T.Text
type AttrGetType SettingConnectionControllerPropertyInfo = T.Text
type AttrLabel SettingConnectionControllerPropertyInfo = "controller"
type AttrOrigin SettingConnectionControllerPropertyInfo = SettingConnection
attrGet = getSettingConnectionController
attrSet = setSettingConnectionController
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionController
attrClear = clearSettingConnectionController
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.controller"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:controller"
})
#endif
getSettingConnectionDnsOverTls :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionDnsOverTls :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionDnsOverTls o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"dns-over-tls"
setSettingConnectionDnsOverTls :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionDnsOverTls :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionDnsOverTls o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"dns-over-tls" Int32
val
constructSettingConnectionDnsOverTls :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionDnsOverTls :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionDnsOverTls Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"dns-over-tls" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionDnsOverTlsPropertyInfo
instance AttrInfo SettingConnectionDnsOverTlsPropertyInfo where
type AttrAllowedOps SettingConnectionDnsOverTlsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionDnsOverTlsPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionDnsOverTlsPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionDnsOverTlsPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionDnsOverTlsPropertyInfo = Int32
type AttrGetType SettingConnectionDnsOverTlsPropertyInfo = Int32
type AttrLabel SettingConnectionDnsOverTlsPropertyInfo = "dns-over-tls"
type AttrOrigin SettingConnectionDnsOverTlsPropertyInfo = SettingConnection
attrGet = getSettingConnectionDnsOverTls
attrSet = setSettingConnectionDnsOverTls
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionDnsOverTls
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.dnsOverTls"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:dnsOverTls"
})
#endif
getSettingConnectionDownOnPoweroff :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionDownOnPoweroff :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionDownOnPoweroff o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"down-on-poweroff"
setSettingConnectionDownOnPoweroff :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionDownOnPoweroff :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionDownOnPoweroff o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"down-on-poweroff" Int32
val
constructSettingConnectionDownOnPoweroff :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionDownOnPoweroff :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionDownOnPoweroff Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"down-on-poweroff" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionDownOnPoweroffPropertyInfo
instance AttrInfo SettingConnectionDownOnPoweroffPropertyInfo where
type AttrAllowedOps SettingConnectionDownOnPoweroffPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionDownOnPoweroffPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionDownOnPoweroffPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionDownOnPoweroffPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionDownOnPoweroffPropertyInfo = Int32
type AttrGetType SettingConnectionDownOnPoweroffPropertyInfo = Int32
type AttrLabel SettingConnectionDownOnPoweroffPropertyInfo = "down-on-poweroff"
type AttrOrigin SettingConnectionDownOnPoweroffPropertyInfo = SettingConnection
attrGet = getSettingConnectionDownOnPoweroff
attrSet = setSettingConnectionDownOnPoweroff
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionDownOnPoweroff
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.downOnPoweroff"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:downOnPoweroff"
})
#endif
getSettingConnectionGatewayPingTimeout :: (MonadIO m, IsSettingConnection o) => o -> m Word32
getSettingConnectionGatewayPingTimeout :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Word32
getSettingConnectionGatewayPingTimeout o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"gateway-ping-timeout"
setSettingConnectionGatewayPingTimeout :: (MonadIO m, IsSettingConnection o) => o -> Word32 -> m ()
setSettingConnectionGatewayPingTimeout :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Word32 -> m ()
setSettingConnectionGatewayPingTimeout o
obj Word32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"gateway-ping-timeout" Word32
val
constructSettingConnectionGatewayPingTimeout :: (IsSettingConnection o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructSettingConnectionGatewayPingTimeout :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructSettingConnectionGatewayPingTimeout Word32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"gateway-ping-timeout" Word32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGatewayPingTimeoutPropertyInfo
instance AttrInfo SettingConnectionGatewayPingTimeoutPropertyInfo where
type AttrAllowedOps SettingConnectionGatewayPingTimeoutPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionGatewayPingTimeoutPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionGatewayPingTimeoutPropertyInfo = (~) Word32
type AttrTransferTypeConstraint SettingConnectionGatewayPingTimeoutPropertyInfo = (~) Word32
type AttrTransferType SettingConnectionGatewayPingTimeoutPropertyInfo = Word32
type AttrGetType SettingConnectionGatewayPingTimeoutPropertyInfo = Word32
type AttrLabel SettingConnectionGatewayPingTimeoutPropertyInfo = "gateway-ping-timeout"
type AttrOrigin SettingConnectionGatewayPingTimeoutPropertyInfo = SettingConnection
attrGet = getSettingConnectionGatewayPingTimeout
attrSet = setSettingConnectionGatewayPingTimeout
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionGatewayPingTimeout
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.gatewayPingTimeout"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:gatewayPingTimeout"
})
#endif
getSettingConnectionId :: (MonadIO m, IsSettingConnection o) => o -> m T.Text
getSettingConnectionId :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Text
getSettingConnectionId o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingConnectionId" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"id"
setSettingConnectionId :: (MonadIO m, IsSettingConnection o) => o -> T.Text -> m ()
setSettingConnectionId :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Text -> m ()
setSettingConnectionId o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"id" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingConnectionId :: (IsSettingConnection o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingConnectionId :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingConnectionId Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"id" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingConnectionId :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionId :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionId o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"id" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingConnectionIdPropertyInfo
instance AttrInfo SettingConnectionIdPropertyInfo where
type AttrAllowedOps SettingConnectionIdPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionIdPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionIdPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingConnectionIdPropertyInfo = (~) T.Text
type AttrTransferType SettingConnectionIdPropertyInfo = T.Text
type AttrGetType SettingConnectionIdPropertyInfo = T.Text
type AttrLabel SettingConnectionIdPropertyInfo = "id"
type AttrOrigin SettingConnectionIdPropertyInfo = SettingConnection
attrGet = getSettingConnectionId
attrSet = setSettingConnectionId
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionId
attrClear = clearSettingConnectionId
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.id"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:id"
})
#endif
getSettingConnectionInterfaceName :: (MonadIO m, IsSettingConnection o) => o -> m T.Text
getSettingConnectionInterfaceName :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Text
getSettingConnectionInterfaceName o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingConnectionInterfaceName" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"interface-name"
setSettingConnectionInterfaceName :: (MonadIO m, IsSettingConnection o) => o -> T.Text -> m ()
setSettingConnectionInterfaceName :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Text -> m ()
setSettingConnectionInterfaceName o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"interface-name" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingConnectionInterfaceName :: (IsSettingConnection o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingConnectionInterfaceName :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingConnectionInterfaceName Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"interface-name" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingConnectionInterfaceName :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionInterfaceName :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionInterfaceName o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"interface-name" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingConnectionInterfaceNamePropertyInfo
instance AttrInfo SettingConnectionInterfaceNamePropertyInfo where
type AttrAllowedOps SettingConnectionInterfaceNamePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionInterfaceNamePropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionInterfaceNamePropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingConnectionInterfaceNamePropertyInfo = (~) T.Text
type AttrTransferType SettingConnectionInterfaceNamePropertyInfo = T.Text
type AttrGetType SettingConnectionInterfaceNamePropertyInfo = T.Text
type AttrLabel SettingConnectionInterfaceNamePropertyInfo = "interface-name"
type AttrOrigin SettingConnectionInterfaceNamePropertyInfo = SettingConnection
attrGet = getSettingConnectionInterfaceName
attrSet = setSettingConnectionInterfaceName
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionInterfaceName
attrClear = clearSettingConnectionInterfaceName
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.interfaceName"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:interfaceName"
})
#endif
getSettingConnectionLldp :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionLldp :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionLldp o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"lldp"
setSettingConnectionLldp :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionLldp :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionLldp o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"lldp" Int32
val
constructSettingConnectionLldp :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionLldp :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionLldp Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"lldp" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionLldpPropertyInfo
instance AttrInfo SettingConnectionLldpPropertyInfo where
type AttrAllowedOps SettingConnectionLldpPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionLldpPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionLldpPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionLldpPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionLldpPropertyInfo = Int32
type AttrGetType SettingConnectionLldpPropertyInfo = Int32
type AttrLabel SettingConnectionLldpPropertyInfo = "lldp"
type AttrOrigin SettingConnectionLldpPropertyInfo = SettingConnection
attrGet = getSettingConnectionLldp
attrSet = setSettingConnectionLldp
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionLldp
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.lldp"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:lldp"
})
#endif
getSettingConnectionLlmnr :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionLlmnr :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionLlmnr o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"llmnr"
setSettingConnectionLlmnr :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionLlmnr :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionLlmnr o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"llmnr" Int32
val
constructSettingConnectionLlmnr :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionLlmnr :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionLlmnr Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"llmnr" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionLlmnrPropertyInfo
instance AttrInfo SettingConnectionLlmnrPropertyInfo where
type AttrAllowedOps SettingConnectionLlmnrPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionLlmnrPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionLlmnrPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionLlmnrPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionLlmnrPropertyInfo = Int32
type AttrGetType SettingConnectionLlmnrPropertyInfo = Int32
type AttrLabel SettingConnectionLlmnrPropertyInfo = "llmnr"
type AttrOrigin SettingConnectionLlmnrPropertyInfo = SettingConnection
attrGet = getSettingConnectionLlmnr
attrSet = setSettingConnectionLlmnr
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionLlmnr
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.llmnr"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:llmnr"
})
#endif
getSettingConnectionMaster :: (MonadIO m, IsSettingConnection o) => o -> m T.Text
getSettingConnectionMaster :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Text
getSettingConnectionMaster o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingConnectionMaster" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"master"
setSettingConnectionMaster :: (MonadIO m, IsSettingConnection o) => o -> T.Text -> m ()
setSettingConnectionMaster :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Text -> m ()
setSettingConnectionMaster o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"master" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingConnectionMaster :: (IsSettingConnection o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingConnectionMaster :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingConnectionMaster Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"master" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingConnectionMaster :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionMaster :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionMaster o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"master" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingConnectionMasterPropertyInfo
instance AttrInfo SettingConnectionMasterPropertyInfo where
type AttrAllowedOps SettingConnectionMasterPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionMasterPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionMasterPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingConnectionMasterPropertyInfo = (~) T.Text
type AttrTransferType SettingConnectionMasterPropertyInfo = T.Text
type AttrGetType SettingConnectionMasterPropertyInfo = T.Text
type AttrLabel SettingConnectionMasterPropertyInfo = "master"
type AttrOrigin SettingConnectionMasterPropertyInfo = SettingConnection
attrGet = getSettingConnectionMaster
attrSet = setSettingConnectionMaster
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionMaster
attrClear = clearSettingConnectionMaster
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.master"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:master"
})
#endif
getSettingConnectionMdns :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionMdns :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionMdns o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"mdns"
setSettingConnectionMdns :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionMdns :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionMdns o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"mdns" Int32
val
constructSettingConnectionMdns :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionMdns :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionMdns Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"mdns" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionMdnsPropertyInfo
instance AttrInfo SettingConnectionMdnsPropertyInfo where
type AttrAllowedOps SettingConnectionMdnsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionMdnsPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionMdnsPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionMdnsPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionMdnsPropertyInfo = Int32
type AttrGetType SettingConnectionMdnsPropertyInfo = Int32
type AttrLabel SettingConnectionMdnsPropertyInfo = "mdns"
type AttrOrigin SettingConnectionMdnsPropertyInfo = SettingConnection
attrGet = getSettingConnectionMdns
attrSet = setSettingConnectionMdns
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionMdns
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.mdns"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:mdns"
})
#endif
getSettingConnectionMetered :: (MonadIO m, IsSettingConnection o) => o -> m NM.Enums.Metered
getSettingConnectionMetered :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Metered
getSettingConnectionMetered o
obj = IO Metered -> m Metered
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Metered -> m Metered) -> IO Metered -> m Metered
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Metered
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"metered"
setSettingConnectionMetered :: (MonadIO m, IsSettingConnection o) => o -> NM.Enums.Metered -> m ()
setSettingConnectionMetered :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Metered -> m ()
setSettingConnectionMetered o
obj Metered
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Metered -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"metered" Metered
val
constructSettingConnectionMetered :: (IsSettingConnection o, MIO.MonadIO m) => NM.Enums.Metered -> m (GValueConstruct o)
constructSettingConnectionMetered :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Metered -> m (GValueConstruct o)
constructSettingConnectionMetered Metered
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Metered -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"metered" Metered
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionMeteredPropertyInfo
instance AttrInfo SettingConnectionMeteredPropertyInfo where
type AttrAllowedOps SettingConnectionMeteredPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionMeteredPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionMeteredPropertyInfo = (~) NM.Enums.Metered
type AttrTransferTypeConstraint SettingConnectionMeteredPropertyInfo = (~) NM.Enums.Metered
type AttrTransferType SettingConnectionMeteredPropertyInfo = NM.Enums.Metered
type AttrGetType SettingConnectionMeteredPropertyInfo = NM.Enums.Metered
type AttrLabel SettingConnectionMeteredPropertyInfo = "metered"
type AttrOrigin SettingConnectionMeteredPropertyInfo = SettingConnection
attrGet = getSettingConnectionMetered
attrSet = setSettingConnectionMetered
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionMetered
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.metered"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:metered"
})
#endif
getSettingConnectionMptcpFlags :: (MonadIO m, IsSettingConnection o) => o -> m Word32
getSettingConnectionMptcpFlags :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Word32
getSettingConnectionMptcpFlags o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"mptcp-flags"
setSettingConnectionMptcpFlags :: (MonadIO m, IsSettingConnection o) => o -> Word32 -> m ()
setSettingConnectionMptcpFlags :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Word32 -> m ()
setSettingConnectionMptcpFlags o
obj Word32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"mptcp-flags" Word32
val
constructSettingConnectionMptcpFlags :: (IsSettingConnection o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructSettingConnectionMptcpFlags :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructSettingConnectionMptcpFlags Word32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"mptcp-flags" Word32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionMptcpFlagsPropertyInfo
instance AttrInfo SettingConnectionMptcpFlagsPropertyInfo where
type AttrAllowedOps SettingConnectionMptcpFlagsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionMptcpFlagsPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionMptcpFlagsPropertyInfo = (~) Word32
type AttrTransferTypeConstraint SettingConnectionMptcpFlagsPropertyInfo = (~) Word32
type AttrTransferType SettingConnectionMptcpFlagsPropertyInfo = Word32
type AttrGetType SettingConnectionMptcpFlagsPropertyInfo = Word32
type AttrLabel SettingConnectionMptcpFlagsPropertyInfo = "mptcp-flags"
type AttrOrigin SettingConnectionMptcpFlagsPropertyInfo = SettingConnection
attrGet = getSettingConnectionMptcpFlags
attrSet = setSettingConnectionMptcpFlags
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionMptcpFlags
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.mptcpFlags"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:mptcpFlags"
})
#endif
getSettingConnectionMudUrl :: (MonadIO m, IsSettingConnection o) => o -> m T.Text
getSettingConnectionMudUrl :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Text
getSettingConnectionMudUrl o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingConnectionMudUrl" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"mud-url"
setSettingConnectionMudUrl :: (MonadIO m, IsSettingConnection o) => o -> T.Text -> m ()
setSettingConnectionMudUrl :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Text -> m ()
setSettingConnectionMudUrl o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"mud-url" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingConnectionMudUrl :: (IsSettingConnection o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingConnectionMudUrl :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingConnectionMudUrl Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"mud-url" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingConnectionMudUrl :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionMudUrl :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionMudUrl o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"mud-url" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingConnectionMudUrlPropertyInfo
instance AttrInfo SettingConnectionMudUrlPropertyInfo where
type AttrAllowedOps SettingConnectionMudUrlPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionMudUrlPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionMudUrlPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingConnectionMudUrlPropertyInfo = (~) T.Text
type AttrTransferType SettingConnectionMudUrlPropertyInfo = T.Text
type AttrGetType SettingConnectionMudUrlPropertyInfo = T.Text
type AttrLabel SettingConnectionMudUrlPropertyInfo = "mud-url"
type AttrOrigin SettingConnectionMudUrlPropertyInfo = SettingConnection
attrGet = getSettingConnectionMudUrl
attrSet = setSettingConnectionMudUrl
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionMudUrl
attrClear = clearSettingConnectionMudUrl
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.mudUrl"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:mudUrl"
})
#endif
getSettingConnectionMultiConnect :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionMultiConnect :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionMultiConnect o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"multi-connect"
setSettingConnectionMultiConnect :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionMultiConnect :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionMultiConnect o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"multi-connect" Int32
val
constructSettingConnectionMultiConnect :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionMultiConnect :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionMultiConnect Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"multi-connect" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionMultiConnectPropertyInfo
instance AttrInfo SettingConnectionMultiConnectPropertyInfo where
type AttrAllowedOps SettingConnectionMultiConnectPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionMultiConnectPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionMultiConnectPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionMultiConnectPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionMultiConnectPropertyInfo = Int32
type AttrGetType SettingConnectionMultiConnectPropertyInfo = Int32
type AttrLabel SettingConnectionMultiConnectPropertyInfo = "multi-connect"
type AttrOrigin SettingConnectionMultiConnectPropertyInfo = SettingConnection
attrGet = getSettingConnectionMultiConnect
attrSet = setSettingConnectionMultiConnect
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionMultiConnect
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.multiConnect"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:multiConnect"
})
#endif
getSettingConnectionPermissions :: (MonadIO m, IsSettingConnection o) => o -> m (Maybe [T.Text])
getSettingConnectionPermissions :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m (Maybe [Text])
getSettingConnectionPermissions o
obj = IO (Maybe [Text]) -> m (Maybe [Text])
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe [Text]) -> m (Maybe [Text]))
-> IO (Maybe [Text]) -> m (Maybe [Text])
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe [Text])
forall a. GObject a => a -> String -> IO (Maybe [Text])
B.Properties.getObjectPropertyStringArray o
obj String
"permissions"
setSettingConnectionPermissions :: (MonadIO m, IsSettingConnection o) => o -> [T.Text] -> m ()
setSettingConnectionPermissions :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> [Text] -> m ()
setSettingConnectionPermissions o
obj [Text]
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"permissions" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
Just [Text]
val)
constructSettingConnectionPermissions :: (IsSettingConnection o, MIO.MonadIO m) => [T.Text] -> m (GValueConstruct o)
constructSettingConnectionPermissions :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
[Text] -> m (GValueConstruct o)
constructSettingConnectionPermissions [Text]
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe [Text] -> IO (GValueConstruct o)
forall o. String -> Maybe [Text] -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyStringArray String
"permissions" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
P.Just [Text]
val)
clearSettingConnectionPermissions :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionPermissions :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionPermissions o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"permissions" (Maybe [Text]
forall a. Maybe a
Nothing :: Maybe [T.Text])
#if defined(ENABLE_OVERLOADING)
data SettingConnectionPermissionsPropertyInfo
instance AttrInfo SettingConnectionPermissionsPropertyInfo where
type AttrAllowedOps SettingConnectionPermissionsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionPermissionsPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionPermissionsPropertyInfo = (~) [T.Text]
type AttrTransferTypeConstraint SettingConnectionPermissionsPropertyInfo = (~) [T.Text]
type AttrTransferType SettingConnectionPermissionsPropertyInfo = [T.Text]
type AttrGetType SettingConnectionPermissionsPropertyInfo = (Maybe [T.Text])
type AttrLabel SettingConnectionPermissionsPropertyInfo = "permissions"
type AttrOrigin SettingConnectionPermissionsPropertyInfo = SettingConnection
attrGet = getSettingConnectionPermissions
attrSet = setSettingConnectionPermissions
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionPermissions
attrClear = clearSettingConnectionPermissions
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.permissions"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:permissions"
})
#endif
getSettingConnectionPortType :: (MonadIO m, IsSettingConnection o) => o -> m T.Text
getSettingConnectionPortType :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Text
getSettingConnectionPortType o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingConnectionPortType" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"port-type"
setSettingConnectionPortType :: (MonadIO m, IsSettingConnection o) => o -> T.Text -> m ()
setSettingConnectionPortType :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Text -> m ()
setSettingConnectionPortType o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"port-type" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingConnectionPortType :: (IsSettingConnection o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingConnectionPortType :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingConnectionPortType Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"port-type" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingConnectionPortType :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionPortType :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionPortType o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"port-type" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingConnectionPortTypePropertyInfo
instance AttrInfo SettingConnectionPortTypePropertyInfo where
type AttrAllowedOps SettingConnectionPortTypePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionPortTypePropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionPortTypePropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingConnectionPortTypePropertyInfo = (~) T.Text
type AttrTransferType SettingConnectionPortTypePropertyInfo = T.Text
type AttrGetType SettingConnectionPortTypePropertyInfo = T.Text
type AttrLabel SettingConnectionPortTypePropertyInfo = "port-type"
type AttrOrigin SettingConnectionPortTypePropertyInfo = SettingConnection
attrGet = getSettingConnectionPortType
attrSet = setSettingConnectionPortType
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionPortType
attrClear = clearSettingConnectionPortType
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.portType"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:portType"
})
#endif
getSettingConnectionReadOnly :: (MonadIO m, IsSettingConnection o) => o -> m Bool
getSettingConnectionReadOnly :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Bool
getSettingConnectionReadOnly o
obj = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"read-only"
setSettingConnectionReadOnly :: (MonadIO m, IsSettingConnection o) => o -> Bool -> m ()
setSettingConnectionReadOnly :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Bool -> m ()
setSettingConnectionReadOnly o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"read-only" Bool
val
constructSettingConnectionReadOnly :: (IsSettingConnection o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructSettingConnectionReadOnly :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructSettingConnectionReadOnly Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"read-only" Bool
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionReadOnlyPropertyInfo
instance AttrInfo SettingConnectionReadOnlyPropertyInfo where
type AttrAllowedOps SettingConnectionReadOnlyPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionReadOnlyPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionReadOnlyPropertyInfo = (~) Bool
type AttrTransferTypeConstraint SettingConnectionReadOnlyPropertyInfo = (~) Bool
type AttrTransferType SettingConnectionReadOnlyPropertyInfo = Bool
type AttrGetType SettingConnectionReadOnlyPropertyInfo = Bool
type AttrLabel SettingConnectionReadOnlyPropertyInfo = "read-only"
type AttrOrigin SettingConnectionReadOnlyPropertyInfo = SettingConnection
attrGet = getSettingConnectionReadOnly
attrSet = setSettingConnectionReadOnly
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionReadOnly
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.readOnly"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:readOnly"
})
#endif
getSettingConnectionSecondaries :: (MonadIO m, IsSettingConnection o) => o -> m (Maybe [T.Text])
getSettingConnectionSecondaries :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m (Maybe [Text])
getSettingConnectionSecondaries o
obj = IO (Maybe [Text]) -> m (Maybe [Text])
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe [Text]) -> m (Maybe [Text]))
-> IO (Maybe [Text]) -> m (Maybe [Text])
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe [Text])
forall a. GObject a => a -> String -> IO (Maybe [Text])
B.Properties.getObjectPropertyStringArray o
obj String
"secondaries"
setSettingConnectionSecondaries :: (MonadIO m, IsSettingConnection o) => o -> [T.Text] -> m ()
setSettingConnectionSecondaries :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> [Text] -> m ()
setSettingConnectionSecondaries o
obj [Text]
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"secondaries" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
Just [Text]
val)
constructSettingConnectionSecondaries :: (IsSettingConnection o, MIO.MonadIO m) => [T.Text] -> m (GValueConstruct o)
constructSettingConnectionSecondaries :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
[Text] -> m (GValueConstruct o)
constructSettingConnectionSecondaries [Text]
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe [Text] -> IO (GValueConstruct o)
forall o. String -> Maybe [Text] -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyStringArray String
"secondaries" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
P.Just [Text]
val)
clearSettingConnectionSecondaries :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionSecondaries :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionSecondaries o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"secondaries" (Maybe [Text]
forall a. Maybe a
Nothing :: Maybe [T.Text])
#if defined(ENABLE_OVERLOADING)
data SettingConnectionSecondariesPropertyInfo
instance AttrInfo SettingConnectionSecondariesPropertyInfo where
type AttrAllowedOps SettingConnectionSecondariesPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionSecondariesPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionSecondariesPropertyInfo = (~) [T.Text]
type AttrTransferTypeConstraint SettingConnectionSecondariesPropertyInfo = (~) [T.Text]
type AttrTransferType SettingConnectionSecondariesPropertyInfo = [T.Text]
type AttrGetType SettingConnectionSecondariesPropertyInfo = (Maybe [T.Text])
type AttrLabel SettingConnectionSecondariesPropertyInfo = "secondaries"
type AttrOrigin SettingConnectionSecondariesPropertyInfo = SettingConnection
attrGet = getSettingConnectionSecondaries
attrSet = setSettingConnectionSecondaries
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionSecondaries
attrClear = clearSettingConnectionSecondaries
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.secondaries"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:secondaries"
})
#endif
getSettingConnectionSlaveType :: (MonadIO m, IsSettingConnection o) => o -> m T.Text
getSettingConnectionSlaveType :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Text
getSettingConnectionSlaveType o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingConnectionSlaveType" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"slave-type"
setSettingConnectionSlaveType :: (MonadIO m, IsSettingConnection o) => o -> T.Text -> m ()
setSettingConnectionSlaveType :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Text -> m ()
setSettingConnectionSlaveType o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"slave-type" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingConnectionSlaveType :: (IsSettingConnection o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingConnectionSlaveType :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingConnectionSlaveType Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"slave-type" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingConnectionSlaveType :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionSlaveType :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionSlaveType o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"slave-type" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingConnectionSlaveTypePropertyInfo
instance AttrInfo SettingConnectionSlaveTypePropertyInfo where
type AttrAllowedOps SettingConnectionSlaveTypePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionSlaveTypePropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionSlaveTypePropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingConnectionSlaveTypePropertyInfo = (~) T.Text
type AttrTransferType SettingConnectionSlaveTypePropertyInfo = T.Text
type AttrGetType SettingConnectionSlaveTypePropertyInfo = T.Text
type AttrLabel SettingConnectionSlaveTypePropertyInfo = "slave-type"
type AttrOrigin SettingConnectionSlaveTypePropertyInfo = SettingConnection
attrGet = getSettingConnectionSlaveType
attrSet = setSettingConnectionSlaveType
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionSlaveType
attrClear = clearSettingConnectionSlaveType
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.slaveType"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:slaveType"
})
#endif
getSettingConnectionStableId :: (MonadIO m, IsSettingConnection o) => o -> m T.Text
getSettingConnectionStableId :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Text
getSettingConnectionStableId o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingConnectionStableId" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"stable-id"
setSettingConnectionStableId :: (MonadIO m, IsSettingConnection o) => o -> T.Text -> m ()
setSettingConnectionStableId :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Text -> m ()
setSettingConnectionStableId o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"stable-id" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingConnectionStableId :: (IsSettingConnection o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingConnectionStableId :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingConnectionStableId Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"stable-id" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingConnectionStableId :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionStableId :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionStableId o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"stable-id" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingConnectionStableIdPropertyInfo
instance AttrInfo SettingConnectionStableIdPropertyInfo where
type AttrAllowedOps SettingConnectionStableIdPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionStableIdPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionStableIdPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingConnectionStableIdPropertyInfo = (~) T.Text
type AttrTransferType SettingConnectionStableIdPropertyInfo = T.Text
type AttrGetType SettingConnectionStableIdPropertyInfo = T.Text
type AttrLabel SettingConnectionStableIdPropertyInfo = "stable-id"
type AttrOrigin SettingConnectionStableIdPropertyInfo = SettingConnection
attrGet = getSettingConnectionStableId
attrSet = setSettingConnectionStableId
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionStableId
attrClear = clearSettingConnectionStableId
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.stableId"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:stableId"
})
#endif
getSettingConnectionTimestamp :: (MonadIO m, IsSettingConnection o) => o -> m Word64
getSettingConnectionTimestamp :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Word64
getSettingConnectionTimestamp o
obj = IO Word64 -> m Word64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word64 -> m Word64) -> IO Word64 -> m Word64
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word64
forall a. GObject a => a -> String -> IO Word64
B.Properties.getObjectPropertyUInt64 o
obj String
"timestamp"
setSettingConnectionTimestamp :: (MonadIO m, IsSettingConnection o) => o -> Word64 -> m ()
setSettingConnectionTimestamp :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Word64 -> m ()
setSettingConnectionTimestamp o
obj Word64
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Word64 -> IO ()
forall a. GObject a => a -> String -> Word64 -> IO ()
B.Properties.setObjectPropertyUInt64 o
obj String
"timestamp" Word64
val
constructSettingConnectionTimestamp :: (IsSettingConnection o, MIO.MonadIO m) => Word64 -> m (GValueConstruct o)
constructSettingConnectionTimestamp :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Word64 -> m (GValueConstruct o)
constructSettingConnectionTimestamp Word64
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word64 -> IO (GValueConstruct o)
forall o. String -> Word64 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt64 String
"timestamp" Word64
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionTimestampPropertyInfo
instance AttrInfo SettingConnectionTimestampPropertyInfo where
type AttrAllowedOps SettingConnectionTimestampPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionTimestampPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionTimestampPropertyInfo = (~) Word64
type AttrTransferTypeConstraint SettingConnectionTimestampPropertyInfo = (~) Word64
type AttrTransferType SettingConnectionTimestampPropertyInfo = Word64
type AttrGetType SettingConnectionTimestampPropertyInfo = Word64
type AttrLabel SettingConnectionTimestampPropertyInfo = "timestamp"
type AttrOrigin SettingConnectionTimestampPropertyInfo = SettingConnection
attrGet = getSettingConnectionTimestamp
attrSet = setSettingConnectionTimestamp
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionTimestamp
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.timestamp"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:timestamp"
})
#endif
getSettingConnectionType :: (MonadIO m, IsSettingConnection o) => o -> m (Maybe T.Text)
getSettingConnectionType :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m (Maybe Text)
getSettingConnectionType o
obj = IO (Maybe Text) -> m (Maybe Text)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"type"
setSettingConnectionType :: (MonadIO m, IsSettingConnection o) => o -> T.Text -> m ()
setSettingConnectionType :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Text -> m ()
setSettingConnectionType o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"type" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingConnectionType :: (IsSettingConnection o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingConnectionType :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingConnectionType Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"type" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingConnectionType :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionType :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionType o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"type" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingConnectionTypePropertyInfo
instance AttrInfo SettingConnectionTypePropertyInfo where
type AttrAllowedOps SettingConnectionTypePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionTypePropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionTypePropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingConnectionTypePropertyInfo = (~) T.Text
type AttrTransferType SettingConnectionTypePropertyInfo = T.Text
type AttrGetType SettingConnectionTypePropertyInfo = (Maybe T.Text)
type AttrLabel SettingConnectionTypePropertyInfo = "type"
type AttrOrigin SettingConnectionTypePropertyInfo = SettingConnection
attrGet = getSettingConnectionType
attrSet = setSettingConnectionType
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionType
attrClear = clearSettingConnectionType
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.type"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:type"
})
#endif
getSettingConnectionUuid :: (MonadIO m, IsSettingConnection o) => o -> m T.Text
getSettingConnectionUuid :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Text
getSettingConnectionUuid o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingConnectionUuid" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"uuid"
setSettingConnectionUuid :: (MonadIO m, IsSettingConnection o) => o -> T.Text -> m ()
setSettingConnectionUuid :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Text -> m ()
setSettingConnectionUuid o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"uuid" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingConnectionUuid :: (IsSettingConnection o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingConnectionUuid :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingConnectionUuid Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"uuid" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingConnectionUuid :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionUuid :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionUuid o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"uuid" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingConnectionUuidPropertyInfo
instance AttrInfo SettingConnectionUuidPropertyInfo where
type AttrAllowedOps SettingConnectionUuidPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionUuidPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionUuidPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingConnectionUuidPropertyInfo = (~) T.Text
type AttrTransferType SettingConnectionUuidPropertyInfo = T.Text
type AttrGetType SettingConnectionUuidPropertyInfo = T.Text
type AttrLabel SettingConnectionUuidPropertyInfo = "uuid"
type AttrOrigin SettingConnectionUuidPropertyInfo = SettingConnection
attrGet = getSettingConnectionUuid
attrSet = setSettingConnectionUuid
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionUuid
attrClear = clearSettingConnectionUuid
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.uuid"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:uuid"
})
#endif
getSettingConnectionWaitActivationDelay :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionWaitActivationDelay :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionWaitActivationDelay o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"wait-activation-delay"
setSettingConnectionWaitActivationDelay :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionWaitActivationDelay :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionWaitActivationDelay o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"wait-activation-delay" Int32
val
constructSettingConnectionWaitActivationDelay :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionWaitActivationDelay :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionWaitActivationDelay Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"wait-activation-delay" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionWaitActivationDelayPropertyInfo
instance AttrInfo SettingConnectionWaitActivationDelayPropertyInfo where
type AttrAllowedOps SettingConnectionWaitActivationDelayPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionWaitActivationDelayPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionWaitActivationDelayPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionWaitActivationDelayPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionWaitActivationDelayPropertyInfo = Int32
type AttrGetType SettingConnectionWaitActivationDelayPropertyInfo = Int32
type AttrLabel SettingConnectionWaitActivationDelayPropertyInfo = "wait-activation-delay"
type AttrOrigin SettingConnectionWaitActivationDelayPropertyInfo = SettingConnection
attrGet = getSettingConnectionWaitActivationDelay
attrSet = setSettingConnectionWaitActivationDelay
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionWaitActivationDelay
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.waitActivationDelay"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:waitActivationDelay"
})
#endif
getSettingConnectionWaitDeviceTimeout :: (MonadIO m, IsSettingConnection o) => o -> m Int32
getSettingConnectionWaitDeviceTimeout :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Int32
getSettingConnectionWaitDeviceTimeout o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"wait-device-timeout"
setSettingConnectionWaitDeviceTimeout :: (MonadIO m, IsSettingConnection o) => o -> Int32 -> m ()
setSettingConnectionWaitDeviceTimeout :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Int32 -> m ()
setSettingConnectionWaitDeviceTimeout o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"wait-device-timeout" Int32
val
constructSettingConnectionWaitDeviceTimeout :: (IsSettingConnection o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingConnectionWaitDeviceTimeout :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingConnectionWaitDeviceTimeout Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"wait-device-timeout" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingConnectionWaitDeviceTimeoutPropertyInfo
instance AttrInfo SettingConnectionWaitDeviceTimeoutPropertyInfo where
type AttrAllowedOps SettingConnectionWaitDeviceTimeoutPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingConnectionWaitDeviceTimeoutPropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionWaitDeviceTimeoutPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingConnectionWaitDeviceTimeoutPropertyInfo = (~) Int32
type AttrTransferType SettingConnectionWaitDeviceTimeoutPropertyInfo = Int32
type AttrGetType SettingConnectionWaitDeviceTimeoutPropertyInfo = Int32
type AttrLabel SettingConnectionWaitDeviceTimeoutPropertyInfo = "wait-device-timeout"
type AttrOrigin SettingConnectionWaitDeviceTimeoutPropertyInfo = SettingConnection
attrGet = getSettingConnectionWaitDeviceTimeout
attrSet = setSettingConnectionWaitDeviceTimeout
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionWaitDeviceTimeout
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.waitDeviceTimeout"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:waitDeviceTimeout"
})
#endif
getSettingConnectionZone :: (MonadIO m, IsSettingConnection o) => o -> m T.Text
getSettingConnectionZone :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m Text
getSettingConnectionZone o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingConnectionZone" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"zone"
setSettingConnectionZone :: (MonadIO m, IsSettingConnection o) => o -> T.Text -> m ()
setSettingConnectionZone :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> Text -> m ()
setSettingConnectionZone o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"zone" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingConnectionZone :: (IsSettingConnection o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingConnectionZone :: forall o (m :: * -> *).
(IsSettingConnection o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingConnectionZone Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"zone" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingConnectionZone :: (MonadIO m, IsSettingConnection o) => o -> m ()
clearSettingConnectionZone :: forall (m :: * -> *) o.
(MonadIO m, IsSettingConnection o) =>
o -> m ()
clearSettingConnectionZone o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"zone" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingConnectionZonePropertyInfo
instance AttrInfo SettingConnectionZonePropertyInfo where
type AttrAllowedOps SettingConnectionZonePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingConnectionZonePropertyInfo = IsSettingConnection
type AttrSetTypeConstraint SettingConnectionZonePropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingConnectionZonePropertyInfo = (~) T.Text
type AttrTransferType SettingConnectionZonePropertyInfo = T.Text
type AttrGetType SettingConnectionZonePropertyInfo = T.Text
type AttrLabel SettingConnectionZonePropertyInfo = "zone"
type AttrOrigin SettingConnectionZonePropertyInfo = SettingConnection
attrGet = getSettingConnectionZone
attrSet = setSettingConnectionZone
attrTransfer _ v = do
return v
attrConstruct = constructSettingConnectionZone
attrClear = clearSettingConnectionZone
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.zone"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#g:attr:zone"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList SettingConnection
type instance O.AttributeList SettingConnection = SettingConnectionAttributeList
type SettingConnectionAttributeList = ('[ '("authRetries", SettingConnectionAuthRetriesPropertyInfo), '("autoconnect", SettingConnectionAutoconnectPropertyInfo), '("autoconnectPorts", SettingConnectionAutoconnectPortsPropertyInfo), '("autoconnectPriority", SettingConnectionAutoconnectPriorityPropertyInfo), '("autoconnectRetries", SettingConnectionAutoconnectRetriesPropertyInfo), '("autoconnectSlaves", SettingConnectionAutoconnectSlavesPropertyInfo), '("controller", SettingConnectionControllerPropertyInfo), '("dnsOverTls", SettingConnectionDnsOverTlsPropertyInfo), '("downOnPoweroff", SettingConnectionDownOnPoweroffPropertyInfo), '("gatewayPingTimeout", SettingConnectionGatewayPingTimeoutPropertyInfo), '("id", SettingConnectionIdPropertyInfo), '("interfaceName", SettingConnectionInterfaceNamePropertyInfo), '("lldp", SettingConnectionLldpPropertyInfo), '("llmnr", SettingConnectionLlmnrPropertyInfo), '("master", SettingConnectionMasterPropertyInfo), '("mdns", SettingConnectionMdnsPropertyInfo), '("metered", SettingConnectionMeteredPropertyInfo), '("mptcpFlags", SettingConnectionMptcpFlagsPropertyInfo), '("mudUrl", SettingConnectionMudUrlPropertyInfo), '("multiConnect", SettingConnectionMultiConnectPropertyInfo), '("name", NM.Setting.SettingNamePropertyInfo), '("permissions", SettingConnectionPermissionsPropertyInfo), '("portType", SettingConnectionPortTypePropertyInfo), '("readOnly", SettingConnectionReadOnlyPropertyInfo), '("secondaries", SettingConnectionSecondariesPropertyInfo), '("slaveType", SettingConnectionSlaveTypePropertyInfo), '("stableId", SettingConnectionStableIdPropertyInfo), '("timestamp", SettingConnectionTimestampPropertyInfo), '("type", SettingConnectionTypePropertyInfo), '("uuid", SettingConnectionUuidPropertyInfo), '("waitActivationDelay", SettingConnectionWaitActivationDelayPropertyInfo), '("waitDeviceTimeout", SettingConnectionWaitDeviceTimeoutPropertyInfo), '("zone", SettingConnectionZonePropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
settingConnectionAuthRetries :: AttrLabelProxy "authRetries"
settingConnectionAuthRetries = AttrLabelProxy
settingConnectionAutoconnect :: AttrLabelProxy "autoconnect"
settingConnectionAutoconnect = AttrLabelProxy
settingConnectionAutoconnectPorts :: AttrLabelProxy "autoconnectPorts"
settingConnectionAutoconnectPorts = AttrLabelProxy
settingConnectionAutoconnectPriority :: AttrLabelProxy "autoconnectPriority"
settingConnectionAutoconnectPriority = AttrLabelProxy
settingConnectionAutoconnectRetries :: AttrLabelProxy "autoconnectRetries"
settingConnectionAutoconnectRetries = AttrLabelProxy
settingConnectionAutoconnectSlaves :: AttrLabelProxy "autoconnectSlaves"
settingConnectionAutoconnectSlaves = AttrLabelProxy
settingConnectionController :: AttrLabelProxy "controller"
settingConnectionController = AttrLabelProxy
settingConnectionDnsOverTls :: AttrLabelProxy "dnsOverTls"
settingConnectionDnsOverTls = AttrLabelProxy
settingConnectionDownOnPoweroff :: AttrLabelProxy "downOnPoweroff"
settingConnectionDownOnPoweroff = AttrLabelProxy
settingConnectionGatewayPingTimeout :: AttrLabelProxy "gatewayPingTimeout"
settingConnectionGatewayPingTimeout = AttrLabelProxy
settingConnectionId :: AttrLabelProxy "id"
settingConnectionId = AttrLabelProxy
settingConnectionInterfaceName :: AttrLabelProxy "interfaceName"
settingConnectionInterfaceName = AttrLabelProxy
settingConnectionLldp :: AttrLabelProxy "lldp"
settingConnectionLldp = AttrLabelProxy
settingConnectionLlmnr :: AttrLabelProxy "llmnr"
settingConnectionLlmnr = AttrLabelProxy
settingConnectionMaster :: AttrLabelProxy "master"
settingConnectionMaster = AttrLabelProxy
settingConnectionMdns :: AttrLabelProxy "mdns"
settingConnectionMdns = AttrLabelProxy
settingConnectionMetered :: AttrLabelProxy "metered"
settingConnectionMetered = AttrLabelProxy
settingConnectionMptcpFlags :: AttrLabelProxy "mptcpFlags"
settingConnectionMptcpFlags = AttrLabelProxy
settingConnectionMudUrl :: AttrLabelProxy "mudUrl"
settingConnectionMudUrl = AttrLabelProxy
settingConnectionMultiConnect :: AttrLabelProxy "multiConnect"
settingConnectionMultiConnect = AttrLabelProxy
settingConnectionPermissions :: AttrLabelProxy "permissions"
settingConnectionPermissions = AttrLabelProxy
settingConnectionPortType :: AttrLabelProxy "portType"
settingConnectionPortType = AttrLabelProxy
settingConnectionReadOnly :: AttrLabelProxy "readOnly"
settingConnectionReadOnly = AttrLabelProxy
settingConnectionSecondaries :: AttrLabelProxy "secondaries"
settingConnectionSecondaries = AttrLabelProxy
settingConnectionSlaveType :: AttrLabelProxy "slaveType"
settingConnectionSlaveType = AttrLabelProxy
settingConnectionStableId :: AttrLabelProxy "stableId"
settingConnectionStableId = AttrLabelProxy
settingConnectionTimestamp :: AttrLabelProxy "timestamp"
settingConnectionTimestamp = AttrLabelProxy
settingConnectionType :: AttrLabelProxy "type"
settingConnectionType = AttrLabelProxy
settingConnectionUuid :: AttrLabelProxy "uuid"
settingConnectionUuid = AttrLabelProxy
settingConnectionWaitActivationDelay :: AttrLabelProxy "waitActivationDelay"
settingConnectionWaitActivationDelay = AttrLabelProxy
settingConnectionWaitDeviceTimeout :: AttrLabelProxy "waitDeviceTimeout"
settingConnectionWaitDeviceTimeout = AttrLabelProxy
settingConnectionZone :: AttrLabelProxy "zone"
settingConnectionZone = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList SettingConnection = SettingConnectionSignalList
type SettingConnectionSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "nm_setting_connection_new" nm_setting_connection_new ::
IO (Ptr SettingConnection)
settingConnectionNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m SettingConnection
settingConnectionNew :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
m SettingConnection
settingConnectionNew = IO SettingConnection -> m SettingConnection
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingConnection -> m SettingConnection)
-> IO SettingConnection -> m SettingConnection
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
result <- IO (Ptr SettingConnection)
nm_setting_connection_new
Text -> Ptr SettingConnection -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionNew" Ptr SettingConnection
result
SettingConnection
result' <- ((ManagedPtr SettingConnection -> SettingConnection)
-> Ptr SettingConnection -> IO SettingConnection
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr SettingConnection -> SettingConnection
SettingConnection) Ptr SettingConnection
result
SettingConnection -> IO SettingConnection
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingConnection
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "nm_setting_connection_add_permission" nm_setting_connection_add_permission ::
Ptr SettingConnection ->
CString ->
CString ->
CString ->
IO CInt
settingConnectionAddPermission ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> T.Text
-> T.Text
-> Maybe (T.Text)
-> m Bool
settingConnectionAddPermission :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> Text -> Text -> Maybe Text -> m Bool
settingConnectionAddPermission a
setting Text
ptype Text
pitem Maybe Text
detail = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
ptype' <- Text -> IO CString
textToCString Text
ptype
CString
pitem' <- Text -> IO CString
textToCString Text
pitem
CString
maybeDetail <- case Maybe Text
detail of
Maybe Text
Nothing -> CString -> IO CString
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CString
forall a. Ptr a
FP.nullPtr
Just Text
jDetail -> do
CString
jDetail' <- Text -> IO CString
textToCString Text
jDetail
CString -> IO CString
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CString
jDetail'
CInt
result <- Ptr SettingConnection -> CString -> CString -> CString -> IO CInt
nm_setting_connection_add_permission Ptr SettingConnection
setting' CString
ptype' CString
pitem' CString
maybeDetail
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
ptype'
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
pitem'
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
maybeDetail
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionAddPermissionMethodInfo
instance (signature ~ (T.Text -> T.Text -> Maybe (T.Text) -> m Bool), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionAddPermissionMethodInfo a signature where
overloadedMethod = settingConnectionAddPermission
instance O.OverloadedMethodInfo SettingConnectionAddPermissionMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionAddPermission",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionAddPermission"
})
#endif
foreign import ccall "nm_setting_connection_add_secondary" nm_setting_connection_add_secondary ::
Ptr SettingConnection ->
CString ->
IO CInt
settingConnectionAddSecondary ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> T.Text
-> m Bool
settingConnectionAddSecondary :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> Text -> m Bool
settingConnectionAddSecondary a
setting Text
secUuid = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
secUuid' <- Text -> IO CString
textToCString Text
secUuid
CInt
result <- Ptr SettingConnection -> CString -> IO CInt
nm_setting_connection_add_secondary Ptr SettingConnection
setting' CString
secUuid'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
secUuid'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionAddSecondaryMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionAddSecondaryMethodInfo a signature where
overloadedMethod = settingConnectionAddSecondary
instance O.OverloadedMethodInfo SettingConnectionAddSecondaryMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionAddSecondary",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionAddSecondary"
})
#endif
foreign import ccall "nm_setting_connection_get_auth_retries" nm_setting_connection_get_auth_retries ::
Ptr SettingConnection ->
IO Int32
settingConnectionGetAuthRetries ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m Int32
settingConnectionGetAuthRetries :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Int32
settingConnectionGetAuthRetries a
setting = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Int32
result <- Ptr SettingConnection -> IO Int32
nm_setting_connection_get_auth_retries Ptr SettingConnection
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetAuthRetriesMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetAuthRetriesMethodInfo a signature where
overloadedMethod = settingConnectionGetAuthRetries
instance O.OverloadedMethodInfo SettingConnectionGetAuthRetriesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetAuthRetries",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetAuthRetries"
})
#endif
foreign import ccall "nm_setting_connection_get_autoconnect" nm_setting_connection_get_autoconnect ::
Ptr SettingConnection ->
IO CInt
settingConnectionGetAutoconnect ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m Bool
settingConnectionGetAutoconnect :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Bool
settingConnectionGetAutoconnect a
setting = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingConnection -> IO CInt
nm_setting_connection_get_autoconnect Ptr SettingConnection
setting'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetAutoconnectMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetAutoconnectMethodInfo a signature where
overloadedMethod = settingConnectionGetAutoconnect
instance O.OverloadedMethodInfo SettingConnectionGetAutoconnectMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetAutoconnect",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetAutoconnect"
})
#endif
foreign import ccall "nm_setting_connection_get_autoconnect_ports" nm_setting_connection_get_autoconnect_ports ::
Ptr SettingConnection ->
IO CInt
settingConnectionGetAutoconnectPorts ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m NM.Enums.Ternary
settingConnectionGetAutoconnectPorts :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Ternary
settingConnectionGetAutoconnectPorts a
setting = IO Ternary -> m Ternary
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Ternary -> m Ternary) -> IO Ternary -> m Ternary
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingConnection -> IO CInt
nm_setting_connection_get_autoconnect_ports Ptr SettingConnection
setting'
let result' :: Ternary
result' = (Int -> Ternary
forall a. Enum a => Int -> a
toEnum (Int -> Ternary) -> (CInt -> Int) -> CInt -> Ternary
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Ternary -> IO Ternary
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ternary
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetAutoconnectPortsMethodInfo
instance (signature ~ (m NM.Enums.Ternary), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetAutoconnectPortsMethodInfo a signature where
overloadedMethod = settingConnectionGetAutoconnectPorts
instance O.OverloadedMethodInfo SettingConnectionGetAutoconnectPortsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetAutoconnectPorts",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetAutoconnectPorts"
})
#endif
foreign import ccall "nm_setting_connection_get_autoconnect_priority" nm_setting_connection_get_autoconnect_priority ::
Ptr SettingConnection ->
IO Int32
settingConnectionGetAutoconnectPriority ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m Int32
settingConnectionGetAutoconnectPriority :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Int32
settingConnectionGetAutoconnectPriority a
setting = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Int32
result <- Ptr SettingConnection -> IO Int32
nm_setting_connection_get_autoconnect_priority Ptr SettingConnection
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetAutoconnectPriorityMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetAutoconnectPriorityMethodInfo a signature where
overloadedMethod = settingConnectionGetAutoconnectPriority
instance O.OverloadedMethodInfo SettingConnectionGetAutoconnectPriorityMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetAutoconnectPriority",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetAutoconnectPriority"
})
#endif
foreign import ccall "nm_setting_connection_get_autoconnect_retries" nm_setting_connection_get_autoconnect_retries ::
Ptr SettingConnection ->
IO Int32
settingConnectionGetAutoconnectRetries ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m Int32
settingConnectionGetAutoconnectRetries :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Int32
settingConnectionGetAutoconnectRetries a
setting = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Int32
result <- Ptr SettingConnection -> IO Int32
nm_setting_connection_get_autoconnect_retries Ptr SettingConnection
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetAutoconnectRetriesMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetAutoconnectRetriesMethodInfo a signature where
overloadedMethod = settingConnectionGetAutoconnectRetries
instance O.OverloadedMethodInfo SettingConnectionGetAutoconnectRetriesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetAutoconnectRetries",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetAutoconnectRetries"
})
#endif
foreign import ccall "nm_setting_connection_get_autoconnect_slaves" nm_setting_connection_get_autoconnect_slaves ::
Ptr SettingConnection ->
IO CInt
{-# DEPRECATED settingConnectionGetAutoconnectSlaves ["(Since version 1.46.)","Use 'GI.NM.Objects.SettingConnection.settingConnectionGetAutoconnectPorts' instead, this","is just an alias."] #-}
settingConnectionGetAutoconnectSlaves ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m NM.Enums.SettingConnectionAutoconnectSlaves
settingConnectionGetAutoconnectSlaves :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m SettingConnectionAutoconnectSlaves
settingConnectionGetAutoconnectSlaves a
setting = IO SettingConnectionAutoconnectSlaves
-> m SettingConnectionAutoconnectSlaves
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingConnectionAutoconnectSlaves
-> m SettingConnectionAutoconnectSlaves)
-> IO SettingConnectionAutoconnectSlaves
-> m SettingConnectionAutoconnectSlaves
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingConnection -> IO CInt
nm_setting_connection_get_autoconnect_slaves Ptr SettingConnection
setting'
let result' :: SettingConnectionAutoconnectSlaves
result' = (Int -> SettingConnectionAutoconnectSlaves
forall a. Enum a => Int -> a
toEnum (Int -> SettingConnectionAutoconnectSlaves)
-> (CInt -> Int) -> CInt -> SettingConnectionAutoconnectSlaves
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
SettingConnectionAutoconnectSlaves
-> IO SettingConnectionAutoconnectSlaves
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingConnectionAutoconnectSlaves
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetAutoconnectSlavesMethodInfo
instance (signature ~ (m NM.Enums.SettingConnectionAutoconnectSlaves), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetAutoconnectSlavesMethodInfo a signature where
overloadedMethod = settingConnectionGetAutoconnectSlaves
instance O.OverloadedMethodInfo SettingConnectionGetAutoconnectSlavesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetAutoconnectSlaves",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetAutoconnectSlaves"
})
#endif
foreign import ccall "nm_setting_connection_get_connection_type" nm_setting_connection_get_connection_type ::
Ptr SettingConnection ->
IO CString
settingConnectionGetConnectionType ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m T.Text
settingConnectionGetConnectionType :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Text
settingConnectionGetConnectionType a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> IO CString
nm_setting_connection_get_connection_type Ptr SettingConnection
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetConnectionType" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetConnectionTypeMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetConnectionTypeMethodInfo a signature where
overloadedMethod = settingConnectionGetConnectionType
instance O.OverloadedMethodInfo SettingConnectionGetConnectionTypeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetConnectionType",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetConnectionType"
})
#endif
foreign import ccall "nm_setting_connection_get_controller" nm_setting_connection_get_controller ::
Ptr SettingConnection ->
IO CString
settingConnectionGetController ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m T.Text
settingConnectionGetController :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Text
settingConnectionGetController a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> IO CString
nm_setting_connection_get_controller Ptr SettingConnection
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetController" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetControllerMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetControllerMethodInfo a signature where
overloadedMethod = settingConnectionGetController
instance O.OverloadedMethodInfo SettingConnectionGetControllerMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetController",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetController"
})
#endif
foreign import ccall "nm_setting_connection_get_dns_over_tls" nm_setting_connection_get_dns_over_tls ::
Ptr SettingConnection ->
IO CInt
settingConnectionGetDnsOverTls ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m NM.Enums.SettingConnectionDnsOverTls
settingConnectionGetDnsOverTls :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m SettingConnectionDnsOverTls
settingConnectionGetDnsOverTls a
setting = IO SettingConnectionDnsOverTls -> m SettingConnectionDnsOverTls
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingConnectionDnsOverTls -> m SettingConnectionDnsOverTls)
-> IO SettingConnectionDnsOverTls -> m SettingConnectionDnsOverTls
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingConnection -> IO CInt
nm_setting_connection_get_dns_over_tls Ptr SettingConnection
setting'
let result' :: SettingConnectionDnsOverTls
result' = (Int -> SettingConnectionDnsOverTls
forall a. Enum a => Int -> a
toEnum (Int -> SettingConnectionDnsOverTls)
-> (CInt -> Int) -> CInt -> SettingConnectionDnsOverTls
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
SettingConnectionDnsOverTls -> IO SettingConnectionDnsOverTls
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingConnectionDnsOverTls
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetDnsOverTlsMethodInfo
instance (signature ~ (m NM.Enums.SettingConnectionDnsOverTls), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetDnsOverTlsMethodInfo a signature where
overloadedMethod = settingConnectionGetDnsOverTls
instance O.OverloadedMethodInfo SettingConnectionGetDnsOverTlsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetDnsOverTls",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetDnsOverTls"
})
#endif
foreign import ccall "nm_setting_connection_get_down_on_poweroff" nm_setting_connection_get_down_on_poweroff ::
Ptr SettingConnection ->
IO CInt
settingConnectionGetDownOnPoweroff ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m NM.Enums.SettingConnectionDownOnPoweroff
settingConnectionGetDownOnPoweroff :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m SettingConnectionDownOnPoweroff
settingConnectionGetDownOnPoweroff a
setting = IO SettingConnectionDownOnPoweroff
-> m SettingConnectionDownOnPoweroff
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingConnectionDownOnPoweroff
-> m SettingConnectionDownOnPoweroff)
-> IO SettingConnectionDownOnPoweroff
-> m SettingConnectionDownOnPoweroff
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingConnection -> IO CInt
nm_setting_connection_get_down_on_poweroff Ptr SettingConnection
setting'
let result' :: SettingConnectionDownOnPoweroff
result' = (Int -> SettingConnectionDownOnPoweroff
forall a. Enum a => Int -> a
toEnum (Int -> SettingConnectionDownOnPoweroff)
-> (CInt -> Int) -> CInt -> SettingConnectionDownOnPoweroff
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
SettingConnectionDownOnPoweroff
-> IO SettingConnectionDownOnPoweroff
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingConnectionDownOnPoweroff
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetDownOnPoweroffMethodInfo
instance (signature ~ (m NM.Enums.SettingConnectionDownOnPoweroff), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetDownOnPoweroffMethodInfo a signature where
overloadedMethod = settingConnectionGetDownOnPoweroff
instance O.OverloadedMethodInfo SettingConnectionGetDownOnPoweroffMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetDownOnPoweroff",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetDownOnPoweroff"
})
#endif
foreign import ccall "nm_setting_connection_get_gateway_ping_timeout" nm_setting_connection_get_gateway_ping_timeout ::
Ptr SettingConnection ->
IO Word32
settingConnectionGetGatewayPingTimeout ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m Word32
settingConnectionGetGatewayPingTimeout :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Word32
settingConnectionGetGatewayPingTimeout a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word32
result <- Ptr SettingConnection -> IO Word32
nm_setting_connection_get_gateway_ping_timeout Ptr SettingConnection
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetGatewayPingTimeoutMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetGatewayPingTimeoutMethodInfo a signature where
overloadedMethod = settingConnectionGetGatewayPingTimeout
instance O.OverloadedMethodInfo SettingConnectionGetGatewayPingTimeoutMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetGatewayPingTimeout",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetGatewayPingTimeout"
})
#endif
foreign import ccall "nm_setting_connection_get_id" nm_setting_connection_get_id ::
Ptr SettingConnection ->
IO CString
settingConnectionGetId ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m T.Text
settingConnectionGetId :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Text
settingConnectionGetId a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> IO CString
nm_setting_connection_get_id Ptr SettingConnection
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetId" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetIdMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetIdMethodInfo a signature where
overloadedMethod = settingConnectionGetId
instance O.OverloadedMethodInfo SettingConnectionGetIdMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetId",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetId"
})
#endif
foreign import ccall "nm_setting_connection_get_interface_name" nm_setting_connection_get_interface_name ::
Ptr SettingConnection ->
IO CString
settingConnectionGetInterfaceName ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m T.Text
settingConnectionGetInterfaceName :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Text
settingConnectionGetInterfaceName a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> IO CString
nm_setting_connection_get_interface_name Ptr SettingConnection
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetInterfaceName" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetInterfaceNameMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetInterfaceNameMethodInfo a signature where
overloadedMethod = settingConnectionGetInterfaceName
instance O.OverloadedMethodInfo SettingConnectionGetInterfaceNameMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetInterfaceName",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetInterfaceName"
})
#endif
foreign import ccall "nm_setting_connection_get_lldp" nm_setting_connection_get_lldp ::
Ptr SettingConnection ->
IO CInt
settingConnectionGetLldp ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m NM.Enums.SettingConnectionLldp
settingConnectionGetLldp :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m SettingConnectionLldp
settingConnectionGetLldp a
setting = IO SettingConnectionLldp -> m SettingConnectionLldp
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingConnectionLldp -> m SettingConnectionLldp)
-> IO SettingConnectionLldp -> m SettingConnectionLldp
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingConnection -> IO CInt
nm_setting_connection_get_lldp Ptr SettingConnection
setting'
let result' :: SettingConnectionLldp
result' = (Int -> SettingConnectionLldp
forall a. Enum a => Int -> a
toEnum (Int -> SettingConnectionLldp)
-> (CInt -> Int) -> CInt -> SettingConnectionLldp
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
SettingConnectionLldp -> IO SettingConnectionLldp
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingConnectionLldp
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetLldpMethodInfo
instance (signature ~ (m NM.Enums.SettingConnectionLldp), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetLldpMethodInfo a signature where
overloadedMethod = settingConnectionGetLldp
instance O.OverloadedMethodInfo SettingConnectionGetLldpMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetLldp",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetLldp"
})
#endif
foreign import ccall "nm_setting_connection_get_llmnr" nm_setting_connection_get_llmnr ::
Ptr SettingConnection ->
IO CInt
settingConnectionGetLlmnr ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m NM.Enums.SettingConnectionLlmnr
settingConnectionGetLlmnr :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m SettingConnectionLlmnr
settingConnectionGetLlmnr a
setting = IO SettingConnectionLlmnr -> m SettingConnectionLlmnr
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingConnectionLlmnr -> m SettingConnectionLlmnr)
-> IO SettingConnectionLlmnr -> m SettingConnectionLlmnr
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingConnection -> IO CInt
nm_setting_connection_get_llmnr Ptr SettingConnection
setting'
let result' :: SettingConnectionLlmnr
result' = (Int -> SettingConnectionLlmnr
forall a. Enum a => Int -> a
toEnum (Int -> SettingConnectionLlmnr)
-> (CInt -> Int) -> CInt -> SettingConnectionLlmnr
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
SettingConnectionLlmnr -> IO SettingConnectionLlmnr
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingConnectionLlmnr
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetLlmnrMethodInfo
instance (signature ~ (m NM.Enums.SettingConnectionLlmnr), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetLlmnrMethodInfo a signature where
overloadedMethod = settingConnectionGetLlmnr
instance O.OverloadedMethodInfo SettingConnectionGetLlmnrMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetLlmnr",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetLlmnr"
})
#endif
foreign import ccall "nm_setting_connection_get_master" nm_setting_connection_get_master ::
Ptr SettingConnection ->
IO CString
{-# DEPRECATED settingConnectionGetMaster ["(Since version 1.46.)","Use 'GI.NM.Objects.SettingConnection.settingConnectionGetMaster' instead which","is just an alias."] #-}
settingConnectionGetMaster ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m T.Text
settingConnectionGetMaster :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Text
settingConnectionGetMaster a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> IO CString
nm_setting_connection_get_master Ptr SettingConnection
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetMaster" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetMasterMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetMasterMethodInfo a signature where
overloadedMethod = settingConnectionGetMaster
instance O.OverloadedMethodInfo SettingConnectionGetMasterMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetMaster",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetMaster"
})
#endif
foreign import ccall "nm_setting_connection_get_mdns" nm_setting_connection_get_mdns ::
Ptr SettingConnection ->
IO CInt
settingConnectionGetMdns ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m NM.Enums.SettingConnectionMdns
settingConnectionGetMdns :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m SettingConnectionMdns
settingConnectionGetMdns a
setting = IO SettingConnectionMdns -> m SettingConnectionMdns
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingConnectionMdns -> m SettingConnectionMdns)
-> IO SettingConnectionMdns -> m SettingConnectionMdns
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingConnection -> IO CInt
nm_setting_connection_get_mdns Ptr SettingConnection
setting'
let result' :: SettingConnectionMdns
result' = (Int -> SettingConnectionMdns
forall a. Enum a => Int -> a
toEnum (Int -> SettingConnectionMdns)
-> (CInt -> Int) -> CInt -> SettingConnectionMdns
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
SettingConnectionMdns -> IO SettingConnectionMdns
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingConnectionMdns
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetMdnsMethodInfo
instance (signature ~ (m NM.Enums.SettingConnectionMdns), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetMdnsMethodInfo a signature where
overloadedMethod = settingConnectionGetMdns
instance O.OverloadedMethodInfo SettingConnectionGetMdnsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetMdns",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetMdns"
})
#endif
foreign import ccall "nm_setting_connection_get_metered" nm_setting_connection_get_metered ::
Ptr SettingConnection ->
IO CUInt
settingConnectionGetMetered ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m NM.Enums.Metered
settingConnectionGetMetered :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Metered
settingConnectionGetMetered a
setting = IO Metered -> m Metered
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Metered -> m Metered) -> IO Metered -> m Metered
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CUInt
result <- Ptr SettingConnection -> IO CUInt
nm_setting_connection_get_metered Ptr SettingConnection
setting'
let result' :: Metered
result' = (Int -> Metered
forall a. Enum a => Int -> a
toEnum (Int -> Metered) -> (CUInt -> Int) -> CUInt -> Metered
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Metered -> IO Metered
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Metered
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetMeteredMethodInfo
instance (signature ~ (m NM.Enums.Metered), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetMeteredMethodInfo a signature where
overloadedMethod = settingConnectionGetMetered
instance O.OverloadedMethodInfo SettingConnectionGetMeteredMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetMetered",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetMetered"
})
#endif
foreign import ccall "nm_setting_connection_get_mptcp_flags" nm_setting_connection_get_mptcp_flags ::
Ptr SettingConnection ->
IO CUInt
settingConnectionGetMptcpFlags ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m [NM.Flags.MptcpFlags]
settingConnectionGetMptcpFlags :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m [MptcpFlags]
settingConnectionGetMptcpFlags a
setting = IO [MptcpFlags] -> m [MptcpFlags]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [MptcpFlags] -> m [MptcpFlags])
-> IO [MptcpFlags] -> m [MptcpFlags]
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CUInt
result <- Ptr SettingConnection -> IO CUInt
nm_setting_connection_get_mptcp_flags Ptr SettingConnection
setting'
let result' :: [MptcpFlags]
result' = CUInt -> [MptcpFlags]
forall a b. (Storable a, Integral a, Bits a, IsGFlag b) => a -> [b]
wordToGFlags CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
[MptcpFlags] -> IO [MptcpFlags]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [MptcpFlags]
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetMptcpFlagsMethodInfo
instance (signature ~ (m [NM.Flags.MptcpFlags]), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetMptcpFlagsMethodInfo a signature where
overloadedMethod = settingConnectionGetMptcpFlags
instance O.OverloadedMethodInfo SettingConnectionGetMptcpFlagsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetMptcpFlags",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetMptcpFlags"
})
#endif
foreign import ccall "nm_setting_connection_get_mud_url" nm_setting_connection_get_mud_url ::
Ptr SettingConnection ->
IO CString
settingConnectionGetMudUrl ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m T.Text
settingConnectionGetMudUrl :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Text
settingConnectionGetMudUrl a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> IO CString
nm_setting_connection_get_mud_url Ptr SettingConnection
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetMudUrl" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetMudUrlMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetMudUrlMethodInfo a signature where
overloadedMethod = settingConnectionGetMudUrl
instance O.OverloadedMethodInfo SettingConnectionGetMudUrlMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetMudUrl",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetMudUrl"
})
#endif
foreign import ccall "nm_setting_connection_get_multi_connect" nm_setting_connection_get_multi_connect ::
Ptr SettingConnection ->
IO CUInt
settingConnectionGetMultiConnect ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m NM.Enums.ConnectionMultiConnect
settingConnectionGetMultiConnect :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m ConnectionMultiConnect
settingConnectionGetMultiConnect a
setting = IO ConnectionMultiConnect -> m ConnectionMultiConnect
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO ConnectionMultiConnect -> m ConnectionMultiConnect)
-> IO ConnectionMultiConnect -> m ConnectionMultiConnect
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CUInt
result <- Ptr SettingConnection -> IO CUInt
nm_setting_connection_get_multi_connect Ptr SettingConnection
setting'
let result' :: ConnectionMultiConnect
result' = (Int -> ConnectionMultiConnect
forall a. Enum a => Int -> a
toEnum (Int -> ConnectionMultiConnect)
-> (CUInt -> Int) -> CUInt -> ConnectionMultiConnect
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
ConnectionMultiConnect -> IO ConnectionMultiConnect
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ConnectionMultiConnect
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetMultiConnectMethodInfo
instance (signature ~ (m NM.Enums.ConnectionMultiConnect), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetMultiConnectMethodInfo a signature where
overloadedMethod = settingConnectionGetMultiConnect
instance O.OverloadedMethodInfo SettingConnectionGetMultiConnectMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetMultiConnect",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetMultiConnect"
})
#endif
foreign import ccall "nm_setting_connection_get_num_permissions" nm_setting_connection_get_num_permissions ::
Ptr SettingConnection ->
IO Word32
settingConnectionGetNumPermissions ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m Word32
settingConnectionGetNumPermissions :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Word32
settingConnectionGetNumPermissions a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word32
result <- Ptr SettingConnection -> IO Word32
nm_setting_connection_get_num_permissions Ptr SettingConnection
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetNumPermissionsMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetNumPermissionsMethodInfo a signature where
overloadedMethod = settingConnectionGetNumPermissions
instance O.OverloadedMethodInfo SettingConnectionGetNumPermissionsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetNumPermissions",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetNumPermissions"
})
#endif
foreign import ccall "nm_setting_connection_get_num_secondaries" nm_setting_connection_get_num_secondaries ::
Ptr SettingConnection ->
IO Word32
settingConnectionGetNumSecondaries ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m Word32
settingConnectionGetNumSecondaries :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Word32
settingConnectionGetNumSecondaries a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word32
result <- Ptr SettingConnection -> IO Word32
nm_setting_connection_get_num_secondaries Ptr SettingConnection
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetNumSecondariesMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetNumSecondariesMethodInfo a signature where
overloadedMethod = settingConnectionGetNumSecondaries
instance O.OverloadedMethodInfo SettingConnectionGetNumSecondariesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetNumSecondaries",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetNumSecondaries"
})
#endif
foreign import ccall "nm_setting_connection_get_permission" nm_setting_connection_get_permission ::
Ptr SettingConnection ->
Word32 ->
CString ->
CString ->
CString ->
IO CInt
settingConnectionGetPermission ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> Word32
-> T.Text
-> T.Text
-> T.Text
-> m Bool
settingConnectionGetPermission :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> Word32 -> Text -> Text -> Text -> m Bool
settingConnectionGetPermission a
setting Word32
idx Text
outPtype Text
outPitem Text
outDetail = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
outPtype' <- Text -> IO CString
textToCString Text
outPtype
CString
outPitem' <- Text -> IO CString
textToCString Text
outPitem
CString
outDetail' <- Text -> IO CString
textToCString Text
outDetail
CInt
result <- Ptr SettingConnection
-> Word32 -> CString -> CString -> CString -> IO CInt
nm_setting_connection_get_permission Ptr SettingConnection
setting' Word32
idx CString
outPtype' CString
outPitem' CString
outDetail'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
outPtype'
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
outPitem'
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
outDetail'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetPermissionMethodInfo
instance (signature ~ (Word32 -> T.Text -> T.Text -> T.Text -> m Bool), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetPermissionMethodInfo a signature where
overloadedMethod = settingConnectionGetPermission
instance O.OverloadedMethodInfo SettingConnectionGetPermissionMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetPermission",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetPermission"
})
#endif
foreign import ccall "nm_setting_connection_get_port_type" nm_setting_connection_get_port_type ::
Ptr SettingConnection ->
IO CString
settingConnectionGetPortType ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m T.Text
settingConnectionGetPortType :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Text
settingConnectionGetPortType a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> IO CString
nm_setting_connection_get_port_type Ptr SettingConnection
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetPortType" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetPortTypeMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetPortTypeMethodInfo a signature where
overloadedMethod = settingConnectionGetPortType
instance O.OverloadedMethodInfo SettingConnectionGetPortTypeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetPortType",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetPortType"
})
#endif
foreign import ccall "nm_setting_connection_get_read_only" nm_setting_connection_get_read_only ::
Ptr SettingConnection ->
IO CInt
{-# DEPRECATED settingConnectionGetReadOnly ["(Since version 1.44)","This property is deprecated and has no meaning."] #-}
settingConnectionGetReadOnly ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m Bool
settingConnectionGetReadOnly :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Bool
settingConnectionGetReadOnly a
setting = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingConnection -> IO CInt
nm_setting_connection_get_read_only Ptr SettingConnection
setting'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetReadOnlyMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetReadOnlyMethodInfo a signature where
overloadedMethod = settingConnectionGetReadOnly
instance O.OverloadedMethodInfo SettingConnectionGetReadOnlyMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetReadOnly",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetReadOnly"
})
#endif
foreign import ccall "nm_setting_connection_get_secondary" nm_setting_connection_get_secondary ::
Ptr SettingConnection ->
Word32 ->
IO CString
settingConnectionGetSecondary ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> Word32
-> m T.Text
settingConnectionGetSecondary :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> Word32 -> m Text
settingConnectionGetSecondary a
setting Word32
idx = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> Word32 -> IO CString
nm_setting_connection_get_secondary Ptr SettingConnection
setting' Word32
idx
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetSecondary" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetSecondaryMethodInfo
instance (signature ~ (Word32 -> m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetSecondaryMethodInfo a signature where
overloadedMethod = settingConnectionGetSecondary
instance O.OverloadedMethodInfo SettingConnectionGetSecondaryMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetSecondary",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetSecondary"
})
#endif
foreign import ccall "nm_setting_connection_get_slave_type" nm_setting_connection_get_slave_type ::
Ptr SettingConnection ->
IO CString
{-# DEPRECATED settingConnectionGetSlaveType ["(Since version 1.46.)","Use 'GI.NM.Objects.SettingConnection.settingConnectionGetPortType' instead which","is just an alias."] #-}
settingConnectionGetSlaveType ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m T.Text
settingConnectionGetSlaveType :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Text
settingConnectionGetSlaveType a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> IO CString
nm_setting_connection_get_slave_type Ptr SettingConnection
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetSlaveType" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetSlaveTypeMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetSlaveTypeMethodInfo a signature where
overloadedMethod = settingConnectionGetSlaveType
instance O.OverloadedMethodInfo SettingConnectionGetSlaveTypeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetSlaveType",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetSlaveType"
})
#endif
foreign import ccall "nm_setting_connection_get_stable_id" nm_setting_connection_get_stable_id ::
Ptr SettingConnection ->
IO CString
settingConnectionGetStableId ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m T.Text
settingConnectionGetStableId :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Text
settingConnectionGetStableId a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> IO CString
nm_setting_connection_get_stable_id Ptr SettingConnection
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetStableId" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetStableIdMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetStableIdMethodInfo a signature where
overloadedMethod = settingConnectionGetStableId
instance O.OverloadedMethodInfo SettingConnectionGetStableIdMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetStableId",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetStableId"
})
#endif
foreign import ccall "nm_setting_connection_get_timestamp" nm_setting_connection_get_timestamp ::
Ptr SettingConnection ->
IO Word64
settingConnectionGetTimestamp ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m Word64
settingConnectionGetTimestamp :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Word64
settingConnectionGetTimestamp a
setting = IO Word64 -> m Word64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word64 -> m Word64) -> IO Word64 -> m Word64
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word64
result <- Ptr SettingConnection -> IO Word64
nm_setting_connection_get_timestamp Ptr SettingConnection
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Word64 -> IO Word64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word64
result
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetTimestampMethodInfo
instance (signature ~ (m Word64), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetTimestampMethodInfo a signature where
overloadedMethod = settingConnectionGetTimestamp
instance O.OverloadedMethodInfo SettingConnectionGetTimestampMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetTimestamp",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetTimestamp"
})
#endif
foreign import ccall "nm_setting_connection_get_uuid" nm_setting_connection_get_uuid ::
Ptr SettingConnection ->
IO CString
settingConnectionGetUuid ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m T.Text
settingConnectionGetUuid :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Text
settingConnectionGetUuid a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> IO CString
nm_setting_connection_get_uuid Ptr SettingConnection
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetUuid" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetUuidMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetUuidMethodInfo a signature where
overloadedMethod = settingConnectionGetUuid
instance O.OverloadedMethodInfo SettingConnectionGetUuidMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetUuid",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetUuid"
})
#endif
foreign import ccall "nm_setting_connection_get_wait_activation_delay" nm_setting_connection_get_wait_activation_delay ::
Ptr SettingConnection ->
IO Int32
settingConnectionGetWaitActivationDelay ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m Int32
settingConnectionGetWaitActivationDelay :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Int32
settingConnectionGetWaitActivationDelay a
setting = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Int32
result <- Ptr SettingConnection -> IO Int32
nm_setting_connection_get_wait_activation_delay Ptr SettingConnection
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetWaitActivationDelayMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetWaitActivationDelayMethodInfo a signature where
overloadedMethod = settingConnectionGetWaitActivationDelay
instance O.OverloadedMethodInfo SettingConnectionGetWaitActivationDelayMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetWaitActivationDelay",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetWaitActivationDelay"
})
#endif
foreign import ccall "nm_setting_connection_get_wait_device_timeout" nm_setting_connection_get_wait_device_timeout ::
Ptr SettingConnection ->
IO Int32
settingConnectionGetWaitDeviceTimeout ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m Int32
settingConnectionGetWaitDeviceTimeout :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Int32
settingConnectionGetWaitDeviceTimeout a
setting = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Int32
result <- Ptr SettingConnection -> IO Int32
nm_setting_connection_get_wait_device_timeout Ptr SettingConnection
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetWaitDeviceTimeoutMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetWaitDeviceTimeoutMethodInfo a signature where
overloadedMethod = settingConnectionGetWaitDeviceTimeout
instance O.OverloadedMethodInfo SettingConnectionGetWaitDeviceTimeoutMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetWaitDeviceTimeout",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetWaitDeviceTimeout"
})
#endif
foreign import ccall "nm_setting_connection_get_zone" nm_setting_connection_get_zone ::
Ptr SettingConnection ->
IO CString
settingConnectionGetZone ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> m T.Text
settingConnectionGetZone :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> m Text
settingConnectionGetZone a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingConnection -> IO CString
nm_setting_connection_get_zone Ptr SettingConnection
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingConnectionGetZone" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionGetZoneMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionGetZoneMethodInfo a signature where
overloadedMethod = settingConnectionGetZone
instance O.OverloadedMethodInfo SettingConnectionGetZoneMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionGetZone",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionGetZone"
})
#endif
foreign import ccall "nm_setting_connection_is_slave_type" nm_setting_connection_is_slave_type ::
Ptr SettingConnection ->
CString ->
IO CInt
{-# DEPRECATED settingConnectionIsSlaveType ["(Since version 1.46.)"] #-}
settingConnectionIsSlaveType ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> T.Text
-> m Bool
settingConnectionIsSlaveType :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> Text -> m Bool
settingConnectionIsSlaveType a
setting Text
type_ = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
type_' <- Text -> IO CString
textToCString Text
type_
CInt
result <- Ptr SettingConnection -> CString -> IO CInt
nm_setting_connection_is_slave_type Ptr SettingConnection
setting' CString
type_'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
type_'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionIsSlaveTypeMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionIsSlaveTypeMethodInfo a signature where
overloadedMethod = settingConnectionIsSlaveType
instance O.OverloadedMethodInfo SettingConnectionIsSlaveTypeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionIsSlaveType",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionIsSlaveType"
})
#endif
foreign import ccall "nm_setting_connection_permissions_user_allowed" nm_setting_connection_permissions_user_allowed ::
Ptr SettingConnection ->
CString ->
IO CInt
settingConnectionPermissionsUserAllowed ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> T.Text
-> m Bool
settingConnectionPermissionsUserAllowed :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> Text -> m Bool
settingConnectionPermissionsUserAllowed a
setting Text
uname = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
uname' <- Text -> IO CString
textToCString Text
uname
CInt
result <- Ptr SettingConnection -> CString -> IO CInt
nm_setting_connection_permissions_user_allowed Ptr SettingConnection
setting' CString
uname'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
uname'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionPermissionsUserAllowedMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionPermissionsUserAllowedMethodInfo a signature where
overloadedMethod = settingConnectionPermissionsUserAllowed
instance O.OverloadedMethodInfo SettingConnectionPermissionsUserAllowedMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionPermissionsUserAllowed",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionPermissionsUserAllowed"
})
#endif
foreign import ccall "nm_setting_connection_remove_permission" nm_setting_connection_remove_permission ::
Ptr SettingConnection ->
Word32 ->
IO ()
settingConnectionRemovePermission ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> Word32
-> m ()
settingConnectionRemovePermission :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> Word32 -> m ()
settingConnectionRemovePermission a
setting Word32
idx = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingConnection -> Word32 -> IO ()
nm_setting_connection_remove_permission Ptr SettingConnection
setting' Word32
idx
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingConnectionRemovePermissionMethodInfo
instance (signature ~ (Word32 -> m ()), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionRemovePermissionMethodInfo a signature where
overloadedMethod = settingConnectionRemovePermission
instance O.OverloadedMethodInfo SettingConnectionRemovePermissionMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionRemovePermission",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionRemovePermission"
})
#endif
foreign import ccall "nm_setting_connection_remove_permission_by_value" nm_setting_connection_remove_permission_by_value ::
Ptr SettingConnection ->
CString ->
CString ->
CString ->
IO CInt
settingConnectionRemovePermissionByValue ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> T.Text
-> T.Text
-> Maybe (T.Text)
-> m Bool
settingConnectionRemovePermissionByValue :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> Text -> Text -> Maybe Text -> m Bool
settingConnectionRemovePermissionByValue a
setting Text
ptype Text
pitem Maybe Text
detail = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
ptype' <- Text -> IO CString
textToCString Text
ptype
CString
pitem' <- Text -> IO CString
textToCString Text
pitem
CString
maybeDetail <- case Maybe Text
detail of
Maybe Text
Nothing -> CString -> IO CString
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CString
forall a. Ptr a
FP.nullPtr
Just Text
jDetail -> do
CString
jDetail' <- Text -> IO CString
textToCString Text
jDetail
CString -> IO CString
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CString
jDetail'
CInt
result <- Ptr SettingConnection -> CString -> CString -> CString -> IO CInt
nm_setting_connection_remove_permission_by_value Ptr SettingConnection
setting' CString
ptype' CString
pitem' CString
maybeDetail
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
ptype'
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
pitem'
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
maybeDetail
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionRemovePermissionByValueMethodInfo
instance (signature ~ (T.Text -> T.Text -> Maybe (T.Text) -> m Bool), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionRemovePermissionByValueMethodInfo a signature where
overloadedMethod = settingConnectionRemovePermissionByValue
instance O.OverloadedMethodInfo SettingConnectionRemovePermissionByValueMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionRemovePermissionByValue",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionRemovePermissionByValue"
})
#endif
foreign import ccall "nm_setting_connection_remove_secondary" nm_setting_connection_remove_secondary ::
Ptr SettingConnection ->
Word32 ->
IO ()
settingConnectionRemoveSecondary ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> Word32
-> m ()
settingConnectionRemoveSecondary :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> Word32 -> m ()
settingConnectionRemoveSecondary a
setting Word32
idx = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingConnection -> Word32 -> IO ()
nm_setting_connection_remove_secondary Ptr SettingConnection
setting' Word32
idx
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingConnectionRemoveSecondaryMethodInfo
instance (signature ~ (Word32 -> m ()), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionRemoveSecondaryMethodInfo a signature where
overloadedMethod = settingConnectionRemoveSecondary
instance O.OverloadedMethodInfo SettingConnectionRemoveSecondaryMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionRemoveSecondary",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionRemoveSecondary"
})
#endif
foreign import ccall "nm_setting_connection_remove_secondary_by_value" nm_setting_connection_remove_secondary_by_value ::
Ptr SettingConnection ->
CString ->
IO CInt
settingConnectionRemoveSecondaryByValue ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingConnection a) =>
a
-> T.Text
-> m Bool
settingConnectionRemoveSecondaryByValue :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingConnection a) =>
a -> Text -> m Bool
settingConnectionRemoveSecondaryByValue a
setting Text
secUuid = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingConnection
setting' <- a -> IO (Ptr SettingConnection)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
secUuid' <- Text -> IO CString
textToCString Text
secUuid
CInt
result <- Ptr SettingConnection -> CString -> IO CInt
nm_setting_connection_remove_secondary_by_value Ptr SettingConnection
setting' CString
secUuid'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
secUuid'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingConnectionRemoveSecondaryByValueMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsSettingConnection a) => O.OverloadedMethod SettingConnectionRemoveSecondaryByValueMethodInfo a signature where
overloadedMethod = settingConnectionRemoveSecondaryByValue
instance O.OverloadedMethodInfo SettingConnectionRemoveSecondaryByValueMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingConnection.settingConnectionRemoveSecondaryByValue",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingConnection.html#v:settingConnectionRemoveSecondaryByValue"
})
#endif