{-# LANGUAGE TypeApplications #-}


-- | Copyright  : Will Thompson and Iñaki García Etxebarria
-- License    : LGPL-2.1
-- Maintainer : Iñaki García Etxebarria
-- 
-- WiMax Settings

#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif

module GI.NM.Objects.SettingWimax
    ( 

-- * Exported types
    SettingWimax(..)                        ,
    IsSettingWimax                          ,
    toSettingWimax                          ,


 -- * Methods
-- | 
-- 
--  === __Click to display all available methods, including inherited ones__
-- ==== Methods
-- [bindProperty]("GI.GObject.Objects.Object#g:method:bindProperty"), [bindPropertyFull]("GI.GObject.Objects.Object#g:method:bindPropertyFull"), [compare]("GI.NM.Objects.Setting#g:method:compare"), [diff]("GI.NM.Objects.Setting#g:method:diff"), [duplicate]("GI.NM.Objects.Setting#g:method:duplicate"), [enumerateValues]("GI.NM.Objects.Setting#g:method:enumerateValues"), [forceFloating]("GI.GObject.Objects.Object#g:method:forceFloating"), [freezeNotify]("GI.GObject.Objects.Object#g:method:freezeNotify"), [getv]("GI.GObject.Objects.Object#g:method:getv"), [isFloating]("GI.GObject.Objects.Object#g:method:isFloating"), [notify]("GI.GObject.Objects.Object#g:method:notify"), [notifyByPspec]("GI.GObject.Objects.Object#g:method:notifyByPspec"), [optionClearByName]("GI.NM.Objects.Setting#g:method:optionClearByName"), [optionGet]("GI.NM.Objects.Setting#g:method:optionGet"), [optionGetAllNames]("GI.NM.Objects.Setting#g:method:optionGetAllNames"), [optionGetBoolean]("GI.NM.Objects.Setting#g:method:optionGetBoolean"), [optionGetUint32]("GI.NM.Objects.Setting#g:method:optionGetUint32"), [optionSet]("GI.NM.Objects.Setting#g:method:optionSet"), [optionSetBoolean]("GI.NM.Objects.Setting#g:method:optionSetBoolean"), [optionSetUint32]("GI.NM.Objects.Setting#g:method:optionSetUint32"), [ref]("GI.GObject.Objects.Object#g:method:ref"), [refSink]("GI.GObject.Objects.Object#g:method:refSink"), [runDispose]("GI.GObject.Objects.Object#g:method:runDispose"), [stealData]("GI.GObject.Objects.Object#g:method:stealData"), [stealQdata]("GI.GObject.Objects.Object#g:method:stealQdata"), [thawNotify]("GI.GObject.Objects.Object#g:method:thawNotify"), [toString]("GI.NM.Objects.Setting#g:method:toString"), [unref]("GI.GObject.Objects.Object#g:method:unref"), [verify]("GI.NM.Objects.Setting#g:method:verify"), [verifySecrets]("GI.NM.Objects.Setting#g:method:verifySecrets"), [watchClosure]("GI.GObject.Objects.Object#g:method:watchClosure").
-- 
-- ==== Getters
-- [getData]("GI.GObject.Objects.Object#g:method:getData"), [getDbusPropertyType]("GI.NM.Objects.Setting#g:method:getDbusPropertyType"), [getMacAddress]("GI.NM.Objects.SettingWimax#g:method:getMacAddress"), [getName]("GI.NM.Objects.Setting#g:method:getName"), [getNetworkName]("GI.NM.Objects.SettingWimax#g:method:getNetworkName"), [getProperty]("GI.GObject.Objects.Object#g:method:getProperty"), [getQdata]("GI.GObject.Objects.Object#g:method:getQdata"), [getSecretFlags]("GI.NM.Objects.Setting#g:method:getSecretFlags").
-- 
-- ==== Setters
-- [setData]("GI.GObject.Objects.Object#g:method:setData"), [setDataFull]("GI.GObject.Objects.Object#g:method:setDataFull"), [setProperty]("GI.GObject.Objects.Object#g:method:setProperty"), [setSecretFlags]("GI.NM.Objects.Setting#g:method:setSecretFlags").

#if defined(ENABLE_OVERLOADING)
    ResolveSettingWimaxMethod               ,
#endif

-- ** getMacAddress #method:getMacAddress#

#if defined(ENABLE_OVERLOADING)
    SettingWimaxGetMacAddressMethodInfo     ,
#endif
    settingWimaxGetMacAddress               ,


-- ** getNetworkName #method:getNetworkName#

#if defined(ENABLE_OVERLOADING)
    SettingWimaxGetNetworkNameMethodInfo    ,
#endif
    settingWimaxGetNetworkName              ,


-- ** new #method:new#

    settingWimaxNew                         ,




 -- * Properties


-- ** macAddress #attr:macAddress#
-- | If specified, this connection will only apply to the WiMAX device whose
-- MAC address matches. This property does not change the MAC address of the
-- device (known as MAC spoofing).

#if defined(ENABLE_OVERLOADING)
    SettingWimaxMacAddressPropertyInfo      ,
#endif
    clearSettingWimaxMacAddress             ,
    constructSettingWimaxMacAddress         ,
    getSettingWimaxMacAddress               ,
    setSettingWimaxMacAddress               ,
#if defined(ENABLE_OVERLOADING)
    settingWimaxMacAddress                  ,
#endif


-- ** networkName #attr:networkName#
-- | Network Service Provider (NSP) name of the WiMAX network this connection
-- should use.

#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

-- Workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/23392
#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

-- | Memory-managed wrapper type.
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

-- | Type class for types which can be safely cast to t'SettingWimax', for instance with `toSettingWimax`.
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]

-- | Cast to t'SettingWimax', for types for which this is known to be safe. For general casts, use 'Data.GI.Base.ManagedPtr.castTo'.
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

-- | Convert t'SettingWimax' to and from t'Data.GI.Base.GValue.GValue'. See 'Data.GI.Base.GValue.toGValue' and 'Data.GI.Base.GValue.fromGValue'.
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

-- VVV Prop "mac-address"
   -- Type: TBasicType TUTF8
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@mac-address@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingWimax #macAddress
-- @
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"

-- | Set the value of the “@mac-address@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingWimax [ #macAddress 'Data.GI.Base.Attributes.:=' value ]
-- @
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)

-- | Construct a t'GValueConstruct' with valid value for the “@mac-address@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
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)

-- | Set the value of the “@mac-address@” property to `Nothing`.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.clear' #macAddress
-- @
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

-- VVV Prop "network-name"
   -- Type: TBasicType TUTF8
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@network-name@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingWimax #networkName
-- @
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"

-- | Set the value of the “@network-name@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingWimax [ #networkName 'Data.GI.Base.Attributes.:=' value ]
-- @
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)

-- | Construct a t'GValueConstruct' with valid value for the “@network-name@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
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)

-- | Set the value of the “@network-name@” property to `Nothing`.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.clear' #networkName
-- @
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

-- method SettingWimax::new
-- method type : Constructor
-- Args: []
-- Lengths: []
-- returnType: Just (TInterface Name { namespace = "NM" , name = "SettingWimax" })
-- throws : False
-- Skip return : False

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."] #-}
-- | Creates a new t'GI.NM.Objects.SettingWimax.SettingWimax' object with default values.
settingWimaxNew ::
    (B.CallStack.HasCallStack, MonadIO m) =>
    m SettingWimax
    -- ^ __Returns:__ the new empty t'GI.NM.Objects.SettingWimax.SettingWimax' object
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

-- method SettingWimax::get_mac_address
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingWimax" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingWimax"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUTF8)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_wimax_get_mac_address" nm_setting_wimax_get_mac_address :: 
    Ptr SettingWimax ->                     -- setting : TInterface (Name {namespace = "NM", name = "SettingWimax"})
    IO CString

{-# DEPRECATED settingWimaxGetMacAddress ["(Since version 1.2)","WiMAX is no longer supported."] #-}
-- | Returns the MAC address of a WiMAX device which this connection is locked
-- to.
settingWimaxGetMacAddress ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingWimax a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingWimax.SettingWimax'
    -> m T.Text
    -- ^ __Returns:__ the MAC address
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

-- method SettingWimax::get_network_name
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingWimax" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingWimax"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUTF8)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_wimax_get_network_name" nm_setting_wimax_get_network_name :: 
    Ptr SettingWimax ->                     -- setting : TInterface (Name {namespace = "NM", name = "SettingWimax"})
    IO CString

{-# DEPRECATED settingWimaxGetNetworkName ["(Since version 1.2)","WiMAX is no longer supported."] #-}
-- | Returns the WiMAX NSP name (ex \"Sprint\" or \"CLEAR\") which identifies the
-- specific WiMAX network this setting describes a connection to.
settingWimaxGetNetworkName ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingWimax a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingWimax.SettingWimax'
    -> m T.Text
    -- ^ __Returns:__ the WiMAX NSP name
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