{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.NM.Objects.SettingWimax
(
SettingWimax(..) ,
IsSettingWimax ,
toSettingWimax ,
#if defined(ENABLE_OVERLOADING)
ResolveSettingWimaxMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingWimaxGetMacAddressMethodInfo ,
#endif
settingWimaxGetMacAddress ,
#if defined(ENABLE_OVERLOADING)
SettingWimaxGetNetworkNameMethodInfo ,
#endif
settingWimaxGetNetworkName ,
settingWimaxNew ,
#if defined(ENABLE_OVERLOADING)
SettingWimaxMacAddressPropertyInfo ,
#endif
clearSettingWimaxMacAddress ,
constructSettingWimaxMacAddress ,
getSettingWimaxMacAddress ,
setSettingWimaxMacAddress ,
#if defined(ENABLE_OVERLOADING)
settingWimaxMacAddress ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingWimaxNetworkNamePropertyInfo ,
#endif
clearSettingWimaxNetworkName ,
constructSettingWimaxNetworkName ,
getSettingWimaxNetworkName ,
setSettingWimaxNetworkName ,
#if defined(ENABLE_OVERLOADING)
settingWimaxNetworkName ,
#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.SettingConnection as NM.SettingConnection
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.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.Objects.Setting as NM.Setting
#endif
newtype SettingWimax = SettingWimax (SP.ManagedPtr SettingWimax)
deriving (SettingWimax -> SettingWimax -> Bool
(SettingWimax -> SettingWimax -> Bool)
-> (SettingWimax -> SettingWimax -> Bool) -> Eq SettingWimax
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SettingWimax -> SettingWimax -> Bool
== :: SettingWimax -> SettingWimax -> Bool
$c/= :: SettingWimax -> SettingWimax -> Bool
/= :: SettingWimax -> SettingWimax -> Bool
Eq)
instance SP.ManagedPtrNewtype SettingWimax where
toManagedPtr :: SettingWimax -> ManagedPtr SettingWimax
toManagedPtr (SettingWimax ManagedPtr SettingWimax
p) = ManagedPtr SettingWimax
p
foreign import ccall "nm_setting_wimax_get_type"
c_nm_setting_wimax_get_type :: IO B.Types.GType
instance B.Types.TypedObject SettingWimax where
glibType :: IO GType
glibType = IO GType
c_nm_setting_wimax_get_type
instance B.Types.GObject SettingWimax
class (SP.GObject o, O.IsDescendantOf SettingWimax o) => IsSettingWimax o
instance (SP.GObject o, O.IsDescendantOf SettingWimax o) => IsSettingWimax o
instance O.HasParentTypes SettingWimax
type instance O.ParentTypes SettingWimax = '[NM.Setting.Setting, GObject.Object.Object]
toSettingWimax :: (MIO.MonadIO m, IsSettingWimax o) => o -> m SettingWimax
toSettingWimax :: forall (m :: * -> *) o.
(MonadIO m, IsSettingWimax o) =>
o -> m SettingWimax
toSettingWimax = IO SettingWimax -> m SettingWimax
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO SettingWimax -> m SettingWimax)
-> (o -> IO SettingWimax) -> o -> m SettingWimax
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr SettingWimax -> SettingWimax) -> o -> IO SettingWimax
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr SettingWimax -> SettingWimax
SettingWimax
instance B.GValue.IsGValue (Maybe SettingWimax) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_nm_setting_wimax_get_type
gvalueSet_ :: Ptr GValue -> Maybe SettingWimax -> IO ()
gvalueSet_ Ptr GValue
gv Maybe SettingWimax
P.Nothing = Ptr GValue -> Ptr SettingWimax -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr SettingWimax
forall a. Ptr a
FP.nullPtr :: FP.Ptr SettingWimax)
gvalueSet_ Ptr GValue
gv (P.Just SettingWimax
obj) = SettingWimax -> (Ptr SettingWimax -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr SettingWimax
obj (Ptr GValue -> Ptr SettingWimax -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe SettingWimax)
gvalueGet_ Ptr GValue
gv = do
Ptr SettingWimax
ptr <- Ptr GValue -> IO (Ptr SettingWimax)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr SettingWimax)
if Ptr SettingWimax
ptr Ptr SettingWimax -> Ptr SettingWimax -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr SettingWimax
forall a. Ptr a
FP.nullPtr
then SettingWimax -> Maybe SettingWimax
forall a. a -> Maybe a
P.Just (SettingWimax -> Maybe SettingWimax)
-> IO SettingWimax -> IO (Maybe SettingWimax)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr SettingWimax -> SettingWimax)
-> Ptr SettingWimax -> IO SettingWimax
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr SettingWimax -> SettingWimax
SettingWimax Ptr SettingWimax
ptr
else Maybe SettingWimax -> IO (Maybe SettingWimax)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe SettingWimax
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveSettingWimaxMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveSettingWimaxMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveSettingWimaxMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveSettingWimaxMethod "compare" o = NM.Setting.SettingCompareMethodInfo
ResolveSettingWimaxMethod "diff" o = NM.Setting.SettingDiffMethodInfo
ResolveSettingWimaxMethod "duplicate" o = NM.Setting.SettingDuplicateMethodInfo
ResolveSettingWimaxMethod "enumerateValues" o = NM.Setting.SettingEnumerateValuesMethodInfo
ResolveSettingWimaxMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveSettingWimaxMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveSettingWimaxMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveSettingWimaxMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveSettingWimaxMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveSettingWimaxMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveSettingWimaxMethod "optionClearByName" o = NM.Setting.SettingOptionClearByNameMethodInfo
ResolveSettingWimaxMethod "optionGet" o = NM.Setting.SettingOptionGetMethodInfo
ResolveSettingWimaxMethod "optionGetAllNames" o = NM.Setting.SettingOptionGetAllNamesMethodInfo
ResolveSettingWimaxMethod "optionGetBoolean" o = NM.Setting.SettingOptionGetBooleanMethodInfo
ResolveSettingWimaxMethod "optionGetUint32" o = NM.Setting.SettingOptionGetUint32MethodInfo
ResolveSettingWimaxMethod "optionSet" o = NM.Setting.SettingOptionSetMethodInfo
ResolveSettingWimaxMethod "optionSetBoolean" o = NM.Setting.SettingOptionSetBooleanMethodInfo
ResolveSettingWimaxMethod "optionSetUint32" o = NM.Setting.SettingOptionSetUint32MethodInfo
ResolveSettingWimaxMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveSettingWimaxMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveSettingWimaxMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveSettingWimaxMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveSettingWimaxMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveSettingWimaxMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveSettingWimaxMethod "toString" o = NM.Setting.SettingToStringMethodInfo
ResolveSettingWimaxMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveSettingWimaxMethod "verify" o = NM.Setting.SettingVerifyMethodInfo
ResolveSettingWimaxMethod "verifySecrets" o = NM.Setting.SettingVerifySecretsMethodInfo
ResolveSettingWimaxMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveSettingWimaxMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveSettingWimaxMethod "getDbusPropertyType" o = NM.Setting.SettingGetDbusPropertyTypeMethodInfo
ResolveSettingWimaxMethod "getMacAddress" o = SettingWimaxGetMacAddressMethodInfo
ResolveSettingWimaxMethod "getName" o = NM.Setting.SettingGetNameMethodInfo
ResolveSettingWimaxMethod "getNetworkName" o = SettingWimaxGetNetworkNameMethodInfo
ResolveSettingWimaxMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveSettingWimaxMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveSettingWimaxMethod "getSecretFlags" o = NM.Setting.SettingGetSecretFlagsMethodInfo
ResolveSettingWimaxMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveSettingWimaxMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveSettingWimaxMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveSettingWimaxMethod "setSecretFlags" o = NM.Setting.SettingSetSecretFlagsMethodInfo
ResolveSettingWimaxMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveSettingWimaxMethod t SettingWimax, O.OverloadedMethod info SettingWimax p) => OL.IsLabel t (SettingWimax -> 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 ~ ResolveSettingWimaxMethod t SettingWimax, O.OverloadedMethod info SettingWimax p, R.HasField t SettingWimax p) => R.HasField t SettingWimax p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveSettingWimaxMethod t SettingWimax, O.OverloadedMethodInfo info SettingWimax) => OL.IsLabel t (O.MethodProxy info SettingWimax) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getSettingWimaxMacAddress :: (MonadIO m, IsSettingWimax o) => o -> m T.Text
getSettingWimaxMacAddress :: forall (m :: * -> *) o.
(MonadIO m, IsSettingWimax o) =>
o -> m Text
getSettingWimaxMacAddress 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
"getSettingWimaxMacAddress" (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
"mac-address"
setSettingWimaxMacAddress :: (MonadIO m, IsSettingWimax o) => o -> T.Text -> m ()
setSettingWimaxMacAddress :: forall (m :: * -> *) o.
(MonadIO m, IsSettingWimax o) =>
o -> Text -> m ()
setSettingWimaxMacAddress 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
"mac-address" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingWimaxMacAddress :: (IsSettingWimax o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingWimaxMacAddress :: forall o (m :: * -> *).
(IsSettingWimax o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingWimaxMacAddress 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
"mac-address" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingWimaxMacAddress :: (MonadIO m, IsSettingWimax o) => o -> m ()
clearSettingWimaxMacAddress :: forall (m :: * -> *) o. (MonadIO m, IsSettingWimax o) => o -> m ()
clearSettingWimaxMacAddress 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
"mac-address" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingWimaxMacAddressPropertyInfo
instance AttrInfo SettingWimaxMacAddressPropertyInfo where
type AttrAllowedOps SettingWimaxMacAddressPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingWimaxMacAddressPropertyInfo = IsSettingWimax
type AttrSetTypeConstraint SettingWimaxMacAddressPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingWimaxMacAddressPropertyInfo = (~) T.Text
type AttrTransferType SettingWimaxMacAddressPropertyInfo = T.Text
type AttrGetType SettingWimaxMacAddressPropertyInfo = T.Text
type AttrLabel SettingWimaxMacAddressPropertyInfo = "mac-address"
type AttrOrigin SettingWimaxMacAddressPropertyInfo = SettingWimax
attrGet = getSettingWimaxMacAddress
attrSet = setSettingWimaxMacAddress
attrTransfer _ v = do
return v
attrConstruct = constructSettingWimaxMacAddress
attrClear = clearSettingWimaxMacAddress
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingWimax.macAddress"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingWimax.html#g:attr:macAddress"
})
#endif
getSettingWimaxNetworkName :: (MonadIO m, IsSettingWimax o) => o -> m T.Text
getSettingWimaxNetworkName :: forall (m :: * -> *) o.
(MonadIO m, IsSettingWimax o) =>
o -> m Text
getSettingWimaxNetworkName 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
"getSettingWimaxNetworkName" (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
"network-name"
setSettingWimaxNetworkName :: (MonadIO m, IsSettingWimax o) => o -> T.Text -> m ()
setSettingWimaxNetworkName :: forall (m :: * -> *) o.
(MonadIO m, IsSettingWimax o) =>
o -> Text -> m ()
setSettingWimaxNetworkName 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
"network-name" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingWimaxNetworkName :: (IsSettingWimax o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingWimaxNetworkName :: forall o (m :: * -> *).
(IsSettingWimax o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingWimaxNetworkName 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
"network-name" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingWimaxNetworkName :: (MonadIO m, IsSettingWimax o) => o -> m ()
clearSettingWimaxNetworkName :: forall (m :: * -> *) o. (MonadIO m, IsSettingWimax o) => o -> m ()
clearSettingWimaxNetworkName 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
"network-name" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingWimaxNetworkNamePropertyInfo
instance AttrInfo SettingWimaxNetworkNamePropertyInfo where
type AttrAllowedOps SettingWimaxNetworkNamePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingWimaxNetworkNamePropertyInfo = IsSettingWimax
type AttrSetTypeConstraint SettingWimaxNetworkNamePropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingWimaxNetworkNamePropertyInfo = (~) T.Text
type AttrTransferType SettingWimaxNetworkNamePropertyInfo = T.Text
type AttrGetType SettingWimaxNetworkNamePropertyInfo = T.Text
type AttrLabel SettingWimaxNetworkNamePropertyInfo = "network-name"
type AttrOrigin SettingWimaxNetworkNamePropertyInfo = SettingWimax
attrGet = getSettingWimaxNetworkName
attrSet = setSettingWimaxNetworkName
attrTransfer _ v = do
return v
attrConstruct = constructSettingWimaxNetworkName
attrClear = clearSettingWimaxNetworkName
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingWimax.networkName"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingWimax.html#g:attr:networkName"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList SettingWimax
type instance O.AttributeList SettingWimax = SettingWimaxAttributeList
type SettingWimaxAttributeList = ('[ '("macAddress", SettingWimaxMacAddressPropertyInfo), '("name", NM.Setting.SettingNamePropertyInfo), '("networkName", SettingWimaxNetworkNamePropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
settingWimaxMacAddress :: AttrLabelProxy "macAddress"
settingWimaxMacAddress = AttrLabelProxy
settingWimaxNetworkName :: AttrLabelProxy "networkName"
settingWimaxNetworkName = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList SettingWimax = SettingWimaxSignalList
type SettingWimaxSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "nm_setting_wimax_new" nm_setting_wimax_new ::
IO (Ptr SettingWimax)
{-# DEPRECATED settingWimaxNew ["(Since version 1.2)","WiMAX is no longer supported."] #-}
settingWimaxNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m SettingWimax
settingWimaxNew :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m SettingWimax
settingWimaxNew = IO SettingWimax -> m SettingWimax
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingWimax -> m SettingWimax)
-> IO SettingWimax -> m SettingWimax
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingWimax
result <- IO (Ptr SettingWimax)
nm_setting_wimax_new
Text -> Ptr SettingWimax -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingWimaxNew" Ptr SettingWimax
result
SettingWimax
result' <- ((ManagedPtr SettingWimax -> SettingWimax)
-> Ptr SettingWimax -> IO SettingWimax
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr SettingWimax -> SettingWimax
SettingWimax) Ptr SettingWimax
result
SettingWimax -> IO SettingWimax
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingWimax
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "nm_setting_wimax_get_mac_address" nm_setting_wimax_get_mac_address ::
Ptr SettingWimax ->
IO CString
{-# DEPRECATED settingWimaxGetMacAddress ["(Since version 1.2)","WiMAX is no longer supported."] #-}
settingWimaxGetMacAddress ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingWimax a) =>
a
-> m T.Text
settingWimaxGetMacAddress :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingWimax a) =>
a -> m Text
settingWimaxGetMacAddress 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 SettingWimax
setting' <- a -> IO (Ptr SettingWimax)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingWimax -> IO CString
nm_setting_wimax_get_mac_address Ptr SettingWimax
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingWimaxGetMacAddress" 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 SettingWimaxGetMacAddressMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingWimax a) => O.OverloadedMethod SettingWimaxGetMacAddressMethodInfo a signature where
overloadedMethod = settingWimaxGetMacAddress
instance O.OverloadedMethodInfo SettingWimaxGetMacAddressMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingWimax.settingWimaxGetMacAddress",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingWimax.html#v:settingWimaxGetMacAddress"
})
#endif
foreign import ccall "nm_setting_wimax_get_network_name" nm_setting_wimax_get_network_name ::
Ptr SettingWimax ->
IO CString
{-# DEPRECATED settingWimaxGetNetworkName ["(Since version 1.2)","WiMAX is no longer supported."] #-}
settingWimaxGetNetworkName ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingWimax a) =>
a
-> m T.Text
settingWimaxGetNetworkName :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingWimax a) =>
a -> m Text
settingWimaxGetNetworkName 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 SettingWimax
setting' <- a -> IO (Ptr SettingWimax)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingWimax -> IO CString
nm_setting_wimax_get_network_name Ptr SettingWimax
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingWimaxGetNetworkName" 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 SettingWimaxGetNetworkNameMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingWimax a) => O.OverloadedMethod SettingWimaxGetNetworkNameMethodInfo a signature where
overloadedMethod = settingWimaxGetNetworkName
instance O.OverloadedMethodInfo SettingWimaxGetNetworkNameMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingWimax.settingWimaxGetNetworkName",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingWimax.html#v:settingWimaxGetNetworkName"
})
#endif