{-# LANGUAGE TypeApplications #-}


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

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

module GI.NM.Objects.SettingOlpcMesh
    ( 

-- * Exported types
    SettingOlpcMesh(..)                     ,
    IsSettingOlpcMesh                       ,
    toSettingOlpcMesh                       ,


 -- * 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
-- [getChannel]("GI.NM.Objects.SettingOlpcMesh#g:method:getChannel"), [getData]("GI.GObject.Objects.Object#g:method:getData"), [getDbusPropertyType]("GI.NM.Objects.Setting#g:method:getDbusPropertyType"), [getDhcpAnycastAddress]("GI.NM.Objects.SettingOlpcMesh#g:method:getDhcpAnycastAddress"), [getName]("GI.NM.Objects.Setting#g:method:getName"), [getProperty]("GI.GObject.Objects.Object#g:method:getProperty"), [getQdata]("GI.GObject.Objects.Object#g:method:getQdata"), [getSecretFlags]("GI.NM.Objects.Setting#g:method:getSecretFlags"), [getSsid]("GI.NM.Objects.SettingOlpcMesh#g:method:getSsid").
-- 
-- ==== 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)
    ResolveSettingOlpcMeshMethod            ,
#endif

-- ** getChannel #method:getChannel#

#if defined(ENABLE_OVERLOADING)
    SettingOlpcMeshGetChannelMethodInfo     ,
#endif
    settingOlpcMeshGetChannel               ,


-- ** getDhcpAnycastAddress #method:getDhcpAnycastAddress#

#if defined(ENABLE_OVERLOADING)
    SettingOlpcMeshGetDhcpAnycastAddressMethodInfo,
#endif
    settingOlpcMeshGetDhcpAnycastAddress    ,


-- ** getSsid #method:getSsid#

#if defined(ENABLE_OVERLOADING)
    SettingOlpcMeshGetSsidMethodInfo        ,
#endif
    settingOlpcMeshGetSsid                  ,


-- ** new #method:new#

    settingOlpcMeshNew                      ,




 -- * Properties


-- ** channel #attr:channel#
-- | Channel on which the mesh network to join is located.

#if defined(ENABLE_OVERLOADING)
    SettingOlpcMeshChannelPropertyInfo      ,
#endif
    constructSettingOlpcMeshChannel         ,
    getSettingOlpcMeshChannel               ,
    setSettingOlpcMeshChannel               ,
#if defined(ENABLE_OVERLOADING)
    settingOlpcMeshChannel                  ,
#endif


-- ** dhcpAnycastAddress #attr:dhcpAnycastAddress#
-- | Anycast DHCP MAC address used when requesting an IP address via DHCP.
-- The specific anycast address used determines which DHCP server class
-- answers the request.
-- 
-- This is currently only implemented by dhclient DHCP plugin.

#if defined(ENABLE_OVERLOADING)
    SettingOlpcMeshDhcpAnycastAddressPropertyInfo,
#endif
    clearSettingOlpcMeshDhcpAnycastAddress  ,
    constructSettingOlpcMeshDhcpAnycastAddress,
    getSettingOlpcMeshDhcpAnycastAddress    ,
    setSettingOlpcMeshDhcpAnycastAddress    ,
#if defined(ENABLE_OVERLOADING)
    settingOlpcMeshDhcpAnycastAddress       ,
#endif


-- ** ssid #attr:ssid#
-- | SSID of the mesh network to join.

#if defined(ENABLE_OVERLOADING)
    SettingOlpcMeshSsidPropertyInfo         ,
#endif
    clearSettingOlpcMeshSsid                ,
    constructSettingOlpcMeshSsid            ,
    getSettingOlpcMeshSsid                  ,
    setSettingOlpcMeshSsid                  ,
#if defined(ENABLE_OVERLOADING)
    settingOlpcMeshSsid                     ,
#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.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.GLib.Structs.Bytes as GLib.Bytes
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 SettingOlpcMesh = SettingOlpcMesh (SP.ManagedPtr SettingOlpcMesh)
    deriving (SettingOlpcMesh -> SettingOlpcMesh -> Bool
(SettingOlpcMesh -> SettingOlpcMesh -> Bool)
-> (SettingOlpcMesh -> SettingOlpcMesh -> Bool)
-> Eq SettingOlpcMesh
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SettingOlpcMesh -> SettingOlpcMesh -> Bool
== :: SettingOlpcMesh -> SettingOlpcMesh -> Bool
$c/= :: SettingOlpcMesh -> SettingOlpcMesh -> Bool
/= :: SettingOlpcMesh -> SettingOlpcMesh -> Bool
Eq)

instance SP.ManagedPtrNewtype SettingOlpcMesh where
    toManagedPtr :: SettingOlpcMesh -> ManagedPtr SettingOlpcMesh
toManagedPtr (SettingOlpcMesh ManagedPtr SettingOlpcMesh
p) = ManagedPtr SettingOlpcMesh
p

foreign import ccall "nm_setting_olpc_mesh_get_type"
    c_nm_setting_olpc_mesh_get_type :: IO B.Types.GType

instance B.Types.TypedObject SettingOlpcMesh where
    glibType :: IO GType
glibType = IO GType
c_nm_setting_olpc_mesh_get_type

instance B.Types.GObject SettingOlpcMesh

-- | Type class for types which can be safely cast to t'SettingOlpcMesh', for instance with `toSettingOlpcMesh`.
class (SP.GObject o, O.IsDescendantOf SettingOlpcMesh o) => IsSettingOlpcMesh o
instance (SP.GObject o, O.IsDescendantOf SettingOlpcMesh o) => IsSettingOlpcMesh o

instance O.HasParentTypes SettingOlpcMesh
type instance O.ParentTypes SettingOlpcMesh = '[NM.Setting.Setting, GObject.Object.Object]

-- | Cast to t'SettingOlpcMesh', for types for which this is known to be safe. For general casts, use 'Data.GI.Base.ManagedPtr.castTo'.
toSettingOlpcMesh :: (MIO.MonadIO m, IsSettingOlpcMesh o) => o -> m SettingOlpcMesh
toSettingOlpcMesh :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOlpcMesh o) =>
o -> m SettingOlpcMesh
toSettingOlpcMesh = IO SettingOlpcMesh -> m SettingOlpcMesh
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO SettingOlpcMesh -> m SettingOlpcMesh)
-> (o -> IO SettingOlpcMesh) -> o -> m SettingOlpcMesh
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr SettingOlpcMesh -> SettingOlpcMesh)
-> o -> IO SettingOlpcMesh
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
 ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr SettingOlpcMesh -> SettingOlpcMesh
SettingOlpcMesh

-- | Convert t'SettingOlpcMesh' 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 SettingOlpcMesh) where
    gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_nm_setting_olpc_mesh_get_type
    gvalueSet_ :: Ptr GValue -> Maybe SettingOlpcMesh -> IO ()
gvalueSet_ Ptr GValue
gv Maybe SettingOlpcMesh
P.Nothing = Ptr GValue -> Ptr SettingOlpcMesh -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr SettingOlpcMesh
forall a. Ptr a
FP.nullPtr :: FP.Ptr SettingOlpcMesh)
    gvalueSet_ Ptr GValue
gv (P.Just SettingOlpcMesh
obj) = SettingOlpcMesh -> (Ptr SettingOlpcMesh -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr SettingOlpcMesh
obj (Ptr GValue -> Ptr SettingOlpcMesh -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
    gvalueGet_ :: Ptr GValue -> IO (Maybe SettingOlpcMesh)
gvalueGet_ Ptr GValue
gv = do
        Ptr SettingOlpcMesh
ptr <- Ptr GValue -> IO (Ptr SettingOlpcMesh)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr SettingOlpcMesh)
        if Ptr SettingOlpcMesh
ptr Ptr SettingOlpcMesh -> Ptr SettingOlpcMesh -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr SettingOlpcMesh
forall a. Ptr a
FP.nullPtr
        then SettingOlpcMesh -> Maybe SettingOlpcMesh
forall a. a -> Maybe a
P.Just (SettingOlpcMesh -> Maybe SettingOlpcMesh)
-> IO SettingOlpcMesh -> IO (Maybe SettingOlpcMesh)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr SettingOlpcMesh -> SettingOlpcMesh)
-> Ptr SettingOlpcMesh -> IO SettingOlpcMesh
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr SettingOlpcMesh -> SettingOlpcMesh
SettingOlpcMesh Ptr SettingOlpcMesh
ptr
        else Maybe SettingOlpcMesh -> IO (Maybe SettingOlpcMesh)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe SettingOlpcMesh
forall a. Maybe a
P.Nothing
        
    

#if defined(ENABLE_OVERLOADING)
type family ResolveSettingOlpcMeshMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
    ResolveSettingOlpcMeshMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
    ResolveSettingOlpcMeshMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
    ResolveSettingOlpcMeshMethod "compare" o = NM.Setting.SettingCompareMethodInfo
    ResolveSettingOlpcMeshMethod "diff" o = NM.Setting.SettingDiffMethodInfo
    ResolveSettingOlpcMeshMethod "duplicate" o = NM.Setting.SettingDuplicateMethodInfo
    ResolveSettingOlpcMeshMethod "enumerateValues" o = NM.Setting.SettingEnumerateValuesMethodInfo
    ResolveSettingOlpcMeshMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
    ResolveSettingOlpcMeshMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
    ResolveSettingOlpcMeshMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
    ResolveSettingOlpcMeshMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
    ResolveSettingOlpcMeshMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
    ResolveSettingOlpcMeshMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
    ResolveSettingOlpcMeshMethod "optionClearByName" o = NM.Setting.SettingOptionClearByNameMethodInfo
    ResolveSettingOlpcMeshMethod "optionGet" o = NM.Setting.SettingOptionGetMethodInfo
    ResolveSettingOlpcMeshMethod "optionGetAllNames" o = NM.Setting.SettingOptionGetAllNamesMethodInfo
    ResolveSettingOlpcMeshMethod "optionGetBoolean" o = NM.Setting.SettingOptionGetBooleanMethodInfo
    ResolveSettingOlpcMeshMethod "optionGetUint32" o = NM.Setting.SettingOptionGetUint32MethodInfo
    ResolveSettingOlpcMeshMethod "optionSet" o = NM.Setting.SettingOptionSetMethodInfo
    ResolveSettingOlpcMeshMethod "optionSetBoolean" o = NM.Setting.SettingOptionSetBooleanMethodInfo
    ResolveSettingOlpcMeshMethod "optionSetUint32" o = NM.Setting.SettingOptionSetUint32MethodInfo
    ResolveSettingOlpcMeshMethod "ref" o = GObject.Object.ObjectRefMethodInfo
    ResolveSettingOlpcMeshMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
    ResolveSettingOlpcMeshMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
    ResolveSettingOlpcMeshMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
    ResolveSettingOlpcMeshMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
    ResolveSettingOlpcMeshMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
    ResolveSettingOlpcMeshMethod "toString" o = NM.Setting.SettingToStringMethodInfo
    ResolveSettingOlpcMeshMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
    ResolveSettingOlpcMeshMethod "verify" o = NM.Setting.SettingVerifyMethodInfo
    ResolveSettingOlpcMeshMethod "verifySecrets" o = NM.Setting.SettingVerifySecretsMethodInfo
    ResolveSettingOlpcMeshMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
    ResolveSettingOlpcMeshMethod "getChannel" o = SettingOlpcMeshGetChannelMethodInfo
    ResolveSettingOlpcMeshMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
    ResolveSettingOlpcMeshMethod "getDbusPropertyType" o = NM.Setting.SettingGetDbusPropertyTypeMethodInfo
    ResolveSettingOlpcMeshMethod "getDhcpAnycastAddress" o = SettingOlpcMeshGetDhcpAnycastAddressMethodInfo
    ResolveSettingOlpcMeshMethod "getName" o = NM.Setting.SettingGetNameMethodInfo
    ResolveSettingOlpcMeshMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
    ResolveSettingOlpcMeshMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
    ResolveSettingOlpcMeshMethod "getSecretFlags" o = NM.Setting.SettingGetSecretFlagsMethodInfo
    ResolveSettingOlpcMeshMethod "getSsid" o = SettingOlpcMeshGetSsidMethodInfo
    ResolveSettingOlpcMeshMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
    ResolveSettingOlpcMeshMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
    ResolveSettingOlpcMeshMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
    ResolveSettingOlpcMeshMethod "setSecretFlags" o = NM.Setting.SettingSetSecretFlagsMethodInfo
    ResolveSettingOlpcMeshMethod l o = O.MethodResolutionFailed l o

instance (info ~ ResolveSettingOlpcMeshMethod t SettingOlpcMesh, O.OverloadedMethod info SettingOlpcMesh p) => OL.IsLabel t (SettingOlpcMesh -> 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 ~ ResolveSettingOlpcMeshMethod t SettingOlpcMesh, O.OverloadedMethod info SettingOlpcMesh p, R.HasField t SettingOlpcMesh p) => R.HasField t SettingOlpcMesh p where
    getField = O.overloadedMethod @info

#endif

instance (info ~ ResolveSettingOlpcMeshMethod t SettingOlpcMesh, O.OverloadedMethodInfo info SettingOlpcMesh) => OL.IsLabel t (O.MethodProxy info SettingOlpcMesh) where
#if MIN_VERSION_base(4,10,0)
    fromLabel = O.MethodProxy
#else
    fromLabel _ = O.MethodProxy
#endif

#endif

-- VVV Prop "channel"
   -- Type: TBasicType TUInt
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Nothing,Nothing)

-- | Get the value of the “@channel@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingOlpcMesh #channel
-- @
getSettingOlpcMeshChannel :: (MonadIO m, IsSettingOlpcMesh o) => o -> m Word32
getSettingOlpcMeshChannel :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOlpcMesh o) =>
o -> m Word32
getSettingOlpcMeshChannel 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
"channel"

-- | Set the value of the “@channel@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingOlpcMesh [ #channel 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingOlpcMeshChannel :: (MonadIO m, IsSettingOlpcMesh o) => o -> Word32 -> m ()
setSettingOlpcMeshChannel :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOlpcMesh o) =>
o -> Word32 -> m ()
setSettingOlpcMeshChannel 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
"channel" Word32
val

-- | Construct a t'GValueConstruct' with valid value for the “@channel@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingOlpcMeshChannel :: (IsSettingOlpcMesh o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructSettingOlpcMeshChannel :: forall o (m :: * -> *).
(IsSettingOlpcMesh o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructSettingOlpcMeshChannel 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
"channel" Word32
val

#if defined(ENABLE_OVERLOADING)
data SettingOlpcMeshChannelPropertyInfo
instance AttrInfo SettingOlpcMeshChannelPropertyInfo where
    type AttrAllowedOps SettingOlpcMeshChannelPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
    type AttrBaseTypeConstraint SettingOlpcMeshChannelPropertyInfo = IsSettingOlpcMesh
    type AttrSetTypeConstraint SettingOlpcMeshChannelPropertyInfo = (~) Word32
    type AttrTransferTypeConstraint SettingOlpcMeshChannelPropertyInfo = (~) Word32
    type AttrTransferType SettingOlpcMeshChannelPropertyInfo = Word32
    type AttrGetType SettingOlpcMeshChannelPropertyInfo = Word32
    type AttrLabel SettingOlpcMeshChannelPropertyInfo = "channel"
    type AttrOrigin SettingOlpcMeshChannelPropertyInfo = SettingOlpcMesh
    attrGet = getSettingOlpcMeshChannel
    attrSet = setSettingOlpcMeshChannel
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingOlpcMeshChannel
    attrClear = undefined
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOlpcMesh.channel"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOlpcMesh.html#g:attr:channel"
        })
#endif

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

-- | Get the value of the “@dhcp-anycast-address@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingOlpcMesh #dhcpAnycastAddress
-- @
getSettingOlpcMeshDhcpAnycastAddress :: (MonadIO m, IsSettingOlpcMesh o) => o -> m T.Text
getSettingOlpcMeshDhcpAnycastAddress :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOlpcMesh o) =>
o -> m Text
getSettingOlpcMeshDhcpAnycastAddress 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
"getSettingOlpcMeshDhcpAnycastAddress" (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
"dhcp-anycast-address"

-- | Set the value of the “@dhcp-anycast-address@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingOlpcMesh [ #dhcpAnycastAddress 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingOlpcMeshDhcpAnycastAddress :: (MonadIO m, IsSettingOlpcMesh o) => o -> T.Text -> m ()
setSettingOlpcMeshDhcpAnycastAddress :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOlpcMesh o) =>
o -> Text -> m ()
setSettingOlpcMeshDhcpAnycastAddress 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
"dhcp-anycast-address" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)

-- | Construct a t'GValueConstruct' with valid value for the “@dhcp-anycast-address@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingOlpcMeshDhcpAnycastAddress :: (IsSettingOlpcMesh o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingOlpcMeshDhcpAnycastAddress :: forall o (m :: * -> *).
(IsSettingOlpcMesh o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingOlpcMeshDhcpAnycastAddress 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
"dhcp-anycast-address" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)

-- | Set the value of the “@dhcp-anycast-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' #dhcpAnycastAddress
-- @
clearSettingOlpcMeshDhcpAnycastAddress :: (MonadIO m, IsSettingOlpcMesh o) => o -> m ()
clearSettingOlpcMeshDhcpAnycastAddress :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOlpcMesh o) =>
o -> m ()
clearSettingOlpcMeshDhcpAnycastAddress 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
"dhcp-anycast-address" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)

#if defined(ENABLE_OVERLOADING)
data SettingOlpcMeshDhcpAnycastAddressPropertyInfo
instance AttrInfo SettingOlpcMeshDhcpAnycastAddressPropertyInfo where
    type AttrAllowedOps SettingOlpcMeshDhcpAnycastAddressPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
    type AttrBaseTypeConstraint SettingOlpcMeshDhcpAnycastAddressPropertyInfo = IsSettingOlpcMesh
    type AttrSetTypeConstraint SettingOlpcMeshDhcpAnycastAddressPropertyInfo = (~) T.Text
    type AttrTransferTypeConstraint SettingOlpcMeshDhcpAnycastAddressPropertyInfo = (~) T.Text
    type AttrTransferType SettingOlpcMeshDhcpAnycastAddressPropertyInfo = T.Text
    type AttrGetType SettingOlpcMeshDhcpAnycastAddressPropertyInfo = T.Text
    type AttrLabel SettingOlpcMeshDhcpAnycastAddressPropertyInfo = "dhcp-anycast-address"
    type AttrOrigin SettingOlpcMeshDhcpAnycastAddressPropertyInfo = SettingOlpcMesh
    attrGet = getSettingOlpcMeshDhcpAnycastAddress
    attrSet = setSettingOlpcMeshDhcpAnycastAddress
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingOlpcMeshDhcpAnycastAddress
    attrClear = clearSettingOlpcMeshDhcpAnycastAddress
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOlpcMesh.dhcpAnycastAddress"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOlpcMesh.html#g:attr:dhcpAnycastAddress"
        })
#endif

-- VVV Prop "ssid"
   -- Type: TInterface (Name {namespace = "GLib", name = "Bytes"})
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@ssid@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingOlpcMesh #ssid
-- @
getSettingOlpcMeshSsid :: (MonadIO m, IsSettingOlpcMesh o) => o -> m GLib.Bytes.Bytes
getSettingOlpcMeshSsid :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOlpcMesh o) =>
o -> m Bytes
getSettingOlpcMeshSsid o
obj = IO Bytes -> m Bytes
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bytes -> m Bytes) -> IO Bytes -> m Bytes
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Bytes) -> IO Bytes
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingOlpcMeshSsid" (IO (Maybe Bytes) -> IO Bytes) -> IO (Maybe Bytes) -> IO Bytes
forall a b. (a -> b) -> a -> b
$ o -> String -> (ManagedPtr Bytes -> Bytes) -> IO (Maybe Bytes)
forall a b.
(GObject a, GBoxed b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyBoxed o
obj String
"ssid" ManagedPtr Bytes -> Bytes
GLib.Bytes.Bytes

-- | Set the value of the “@ssid@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingOlpcMesh [ #ssid 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingOlpcMeshSsid :: (MonadIO m, IsSettingOlpcMesh o) => o -> GLib.Bytes.Bytes -> m ()
setSettingOlpcMeshSsid :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOlpcMesh o) =>
o -> Bytes -> m ()
setSettingOlpcMeshSsid o
obj Bytes
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 Bytes -> IO ()
forall a b.
(GObject a, GBoxed b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyBoxed o
obj String
"ssid" (Bytes -> Maybe Bytes
forall a. a -> Maybe a
Just Bytes
val)

-- | Construct a t'GValueConstruct' with valid value for the “@ssid@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingOlpcMeshSsid :: (IsSettingOlpcMesh o, MIO.MonadIO m) => GLib.Bytes.Bytes -> m (GValueConstruct o)
constructSettingOlpcMeshSsid :: forall o (m :: * -> *).
(IsSettingOlpcMesh o, MonadIO m) =>
Bytes -> m (GValueConstruct o)
constructSettingOlpcMeshSsid Bytes
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 Bytes -> IO (GValueConstruct o)
forall a o. GBoxed a => String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBoxed String
"ssid" (Bytes -> Maybe Bytes
forall a. a -> Maybe a
P.Just Bytes
val)

-- | Set the value of the “@ssid@” 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' #ssid
-- @
clearSettingOlpcMeshSsid :: (MonadIO m, IsSettingOlpcMesh o) => o -> m ()
clearSettingOlpcMeshSsid :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOlpcMesh o) =>
o -> m ()
clearSettingOlpcMeshSsid 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 Bytes -> IO ()
forall a b.
(GObject a, GBoxed b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyBoxed o
obj String
"ssid" (Maybe Bytes
forall a. Maybe a
Nothing :: Maybe GLib.Bytes.Bytes)

#if defined(ENABLE_OVERLOADING)
data SettingOlpcMeshSsidPropertyInfo
instance AttrInfo SettingOlpcMeshSsidPropertyInfo where
    type AttrAllowedOps SettingOlpcMeshSsidPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
    type AttrBaseTypeConstraint SettingOlpcMeshSsidPropertyInfo = IsSettingOlpcMesh
    type AttrSetTypeConstraint SettingOlpcMeshSsidPropertyInfo = (~) GLib.Bytes.Bytes
    type AttrTransferTypeConstraint SettingOlpcMeshSsidPropertyInfo = (~) GLib.Bytes.Bytes
    type AttrTransferType SettingOlpcMeshSsidPropertyInfo = GLib.Bytes.Bytes
    type AttrGetType SettingOlpcMeshSsidPropertyInfo = GLib.Bytes.Bytes
    type AttrLabel SettingOlpcMeshSsidPropertyInfo = "ssid"
    type AttrOrigin SettingOlpcMeshSsidPropertyInfo = SettingOlpcMesh
    attrGet = getSettingOlpcMeshSsid
    attrSet = setSettingOlpcMeshSsid
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingOlpcMeshSsid
    attrClear = clearSettingOlpcMeshSsid
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOlpcMesh.ssid"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOlpcMesh.html#g:attr:ssid"
        })
#endif

#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList SettingOlpcMesh
type instance O.AttributeList SettingOlpcMesh = SettingOlpcMeshAttributeList
type SettingOlpcMeshAttributeList = ('[ '("channel", SettingOlpcMeshChannelPropertyInfo), '("dhcpAnycastAddress", SettingOlpcMeshDhcpAnycastAddressPropertyInfo), '("name", NM.Setting.SettingNamePropertyInfo), '("ssid", SettingOlpcMeshSsidPropertyInfo)] :: [(Symbol, DK.Type)])
#endif

#if defined(ENABLE_OVERLOADING)
settingOlpcMeshChannel :: AttrLabelProxy "channel"
settingOlpcMeshChannel = AttrLabelProxy

settingOlpcMeshDhcpAnycastAddress :: AttrLabelProxy "dhcpAnycastAddress"
settingOlpcMeshDhcpAnycastAddress = AttrLabelProxy

settingOlpcMeshSsid :: AttrLabelProxy "ssid"
settingOlpcMeshSsid = AttrLabelProxy

#endif

#if defined(ENABLE_OVERLOADING)
type instance O.SignalList SettingOlpcMesh = SettingOlpcMeshSignalList
type SettingOlpcMeshSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])

#endif

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

foreign import ccall "nm_setting_olpc_mesh_new" nm_setting_olpc_mesh_new :: 
    IO (Ptr SettingOlpcMesh)

-- | Creates a new t'GI.NM.Objects.SettingOlpcMesh.SettingOlpcMesh' object with default values.
settingOlpcMeshNew ::
    (B.CallStack.HasCallStack, MonadIO m) =>
    m SettingOlpcMesh
    -- ^ __Returns:__ the new empty t'GI.NM.Objects.SettingOlpcMesh.SettingOlpcMesh' object
settingOlpcMeshNew :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
m SettingOlpcMesh
settingOlpcMeshNew  = IO SettingOlpcMesh -> m SettingOlpcMesh
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingOlpcMesh -> m SettingOlpcMesh)
-> IO SettingOlpcMesh -> m SettingOlpcMesh
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingOlpcMesh
result <- IO (Ptr SettingOlpcMesh)
nm_setting_olpc_mesh_new
    Text -> Ptr SettingOlpcMesh -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingOlpcMeshNew" Ptr SettingOlpcMesh
result
    SettingOlpcMesh
result' <- ((ManagedPtr SettingOlpcMesh -> SettingOlpcMesh)
-> Ptr SettingOlpcMesh -> IO SettingOlpcMesh
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr SettingOlpcMesh -> SettingOlpcMesh
SettingOlpcMesh) Ptr SettingOlpcMesh
result
    SettingOlpcMesh -> IO SettingOlpcMesh
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingOlpcMesh
result'

#if defined(ENABLE_OVERLOADING)
#endif

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

foreign import ccall "nm_setting_olpc_mesh_get_channel" nm_setting_olpc_mesh_get_channel :: 
    Ptr SettingOlpcMesh ->                  -- setting : TInterface (Name {namespace = "NM", name = "SettingOlpcMesh"})
    IO Word32

-- | /No description available in the introspection data./
settingOlpcMeshGetChannel ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingOlpcMesh a) =>
    a
    -> m Word32
settingOlpcMeshGetChannel :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingOlpcMesh a) =>
a -> m Word32
settingOlpcMeshGetChannel 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 SettingOlpcMesh
setting' <- a -> IO (Ptr SettingOlpcMesh)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    Word32
result <- Ptr SettingOlpcMesh -> IO Word32
nm_setting_olpc_mesh_get_channel Ptr SettingOlpcMesh
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 SettingOlpcMeshGetChannelMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingOlpcMesh a) => O.OverloadedMethod SettingOlpcMeshGetChannelMethodInfo a signature where
    overloadedMethod = settingOlpcMeshGetChannel

instance O.OverloadedMethodInfo SettingOlpcMeshGetChannelMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOlpcMesh.settingOlpcMeshGetChannel",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOlpcMesh.html#v:settingOlpcMeshGetChannel"
        })


#endif

-- method SettingOlpcMesh::get_dhcp_anycast_address
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingOlpcMesh" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation { rawDocText = Nothing , 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_olpc_mesh_get_dhcp_anycast_address" nm_setting_olpc_mesh_get_dhcp_anycast_address :: 
    Ptr SettingOlpcMesh ->                  -- setting : TInterface (Name {namespace = "NM", name = "SettingOlpcMesh"})
    IO CString

-- | /No description available in the introspection data./
settingOlpcMeshGetDhcpAnycastAddress ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingOlpcMesh a) =>
    a
    -> m T.Text
settingOlpcMeshGetDhcpAnycastAddress :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingOlpcMesh a) =>
a -> m Text
settingOlpcMeshGetDhcpAnycastAddress 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 SettingOlpcMesh
setting' <- a -> IO (Ptr SettingOlpcMesh)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    CString
result <- Ptr SettingOlpcMesh -> IO CString
nm_setting_olpc_mesh_get_dhcp_anycast_address Ptr SettingOlpcMesh
setting'
    Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingOlpcMeshGetDhcpAnycastAddress" 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 SettingOlpcMeshGetDhcpAnycastAddressMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingOlpcMesh a) => O.OverloadedMethod SettingOlpcMeshGetDhcpAnycastAddressMethodInfo a signature where
    overloadedMethod = settingOlpcMeshGetDhcpAnycastAddress

instance O.OverloadedMethodInfo SettingOlpcMeshGetDhcpAnycastAddressMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOlpcMesh.settingOlpcMeshGetDhcpAnycastAddress",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOlpcMesh.html#v:settingOlpcMeshGetDhcpAnycastAddress"
        })


#endif

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

foreign import ccall "nm_setting_olpc_mesh_get_ssid" nm_setting_olpc_mesh_get_ssid :: 
    Ptr SettingOlpcMesh ->                  -- setting : TInterface (Name {namespace = "NM", name = "SettingOlpcMesh"})
    IO (Ptr GLib.Bytes.Bytes)

-- | /No description available in the introspection data./
settingOlpcMeshGetSsid ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingOlpcMesh a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingOlpcMesh.SettingOlpcMesh'
    -> m GLib.Bytes.Bytes
settingOlpcMeshGetSsid :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingOlpcMesh a) =>
a -> m Bytes
settingOlpcMeshGetSsid a
setting = IO Bytes -> m Bytes
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bytes -> m Bytes) -> IO Bytes -> m Bytes
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingOlpcMesh
setting' <- a -> IO (Ptr SettingOlpcMesh)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    Ptr Bytes
result <- Ptr SettingOlpcMesh -> IO (Ptr Bytes)
nm_setting_olpc_mesh_get_ssid Ptr SettingOlpcMesh
setting'
    Text -> Ptr Bytes -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingOlpcMeshGetSsid" Ptr Bytes
result
    Bytes
result' <- ((ManagedPtr Bytes -> Bytes) -> Ptr Bytes -> IO Bytes
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
newBoxed ManagedPtr Bytes -> Bytes
GLib.Bytes.Bytes) Ptr Bytes
result
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    Bytes -> IO Bytes
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bytes
result'

#if defined(ENABLE_OVERLOADING)
data SettingOlpcMeshGetSsidMethodInfo
instance (signature ~ (m GLib.Bytes.Bytes), MonadIO m, IsSettingOlpcMesh a) => O.OverloadedMethod SettingOlpcMeshGetSsidMethodInfo a signature where
    overloadedMethod = settingOlpcMeshGetSsid

instance O.OverloadedMethodInfo SettingOlpcMeshGetSsidMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOlpcMesh.settingOlpcMeshGetSsid",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOlpcMesh.html#v:settingOlpcMeshGetSsid"
        })


#endif