{-# LANGUAGE TypeApplications #-}


-- | Copyright  : Will Thompson and Iñaki García Etxebarria
-- License    : LGPL-2.1
-- Maintainer : Iñaki García Etxebarria
-- 
-- 6LoWPAN Settings
-- 
-- /Since: 1.14/

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

module GI.NM.Objects.Setting6Lowpan
    ( 

-- * Exported types
    Setting6Lowpan(..)                      ,
    IsSetting6Lowpan                        ,
    toSetting6Lowpan                        ,


 -- * 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"), [getName]("GI.NM.Objects.Setting#g:method:getName"), [getParent]("GI.NM.Objects.Setting6Lowpan#g:method:getParent"), [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)
    ResolveSetting6LowpanMethod             ,
#endif

-- ** getParent #method:getParent#

#if defined(ENABLE_OVERLOADING)
    Setting6LowpanGetParentMethodInfo       ,
#endif
    setting6LowpanGetParent                 ,


-- ** new #method:new#

    setting6LowpanNew                       ,




 -- * Properties


-- ** parent #attr:parent#
-- | If given, specifies the parent interface name or parent connection UUID
-- from which this 6LowPAN interface should be created.
-- 
-- /Since: 1.14/

#if defined(ENABLE_OVERLOADING)
    Setting6LowpanParentPropertyInfo        ,
#endif
    clearSetting6LowpanParent               ,
    constructSetting6LowpanParent           ,
    getSetting6LowpanParent                 ,
    setSetting6LowpanParent                 ,
#if defined(ENABLE_OVERLOADING)
    setting6LowpanParent                    ,
#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.SettingWimax as NM.SettingWimax
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWired as NM.SettingWired
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWireless as NM.SettingWireless
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWirelessSecurity as NM.SettingWirelessSecurity
import {-# SOURCE #-} qualified GI.NM.Structs.BridgeVlan as NM.BridgeVlan
import {-# SOURCE #-} qualified GI.NM.Structs.IPAddress as NM.IPAddress
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoute as NM.IPRoute
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoutingRule as NM.IPRoutingRule
import {-# SOURCE #-} qualified GI.NM.Structs.Range as NM.Range
import {-# SOURCE #-} qualified GI.NM.Structs.TCAction as NM.TCAction
import {-# SOURCE #-} qualified GI.NM.Structs.TCQdisc as NM.TCQdisc
import {-# SOURCE #-} qualified GI.NM.Structs.TCTfilter as NM.TCTfilter
import {-# SOURCE #-} qualified GI.NM.Structs.TeamLinkWatcher as NM.TeamLinkWatcher
import {-# SOURCE #-} qualified GI.NM.Structs.VariantAttributeSpec as NM.VariantAttributeSpec

#else
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.NM.Objects.Setting as NM.Setting

#endif

-- | Memory-managed wrapper type.
newtype Setting6Lowpan = Setting6Lowpan (SP.ManagedPtr Setting6Lowpan)
    deriving (Setting6Lowpan -> Setting6Lowpan -> Bool
(Setting6Lowpan -> Setting6Lowpan -> Bool)
-> (Setting6Lowpan -> Setting6Lowpan -> Bool) -> Eq Setting6Lowpan
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Setting6Lowpan -> Setting6Lowpan -> Bool
== :: Setting6Lowpan -> Setting6Lowpan -> Bool
$c/= :: Setting6Lowpan -> Setting6Lowpan -> Bool
/= :: Setting6Lowpan -> Setting6Lowpan -> Bool
Eq)

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

foreign import ccall "nm_setting_6lowpan_get_type"
    c_nm_setting_6lowpan_get_type :: IO B.Types.GType

instance B.Types.TypedObject Setting6Lowpan where
    glibType :: IO GType
glibType = IO GType
c_nm_setting_6lowpan_get_type

instance B.Types.GObject Setting6Lowpan

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

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

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

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

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

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

#endif

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

#endif

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

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

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

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

-- | Set the value of the “@parent@” 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' #parent
-- @
clearSetting6LowpanParent :: (MonadIO m, IsSetting6Lowpan o) => o -> m ()
clearSetting6LowpanParent :: forall (m :: * -> *) o.
(MonadIO m, IsSetting6Lowpan o) =>
o -> m ()
clearSetting6LowpanParent 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
"parent" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)

#if defined(ENABLE_OVERLOADING)
data Setting6LowpanParentPropertyInfo
instance AttrInfo Setting6LowpanParentPropertyInfo where
    type AttrAllowedOps Setting6LowpanParentPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
    type AttrBaseTypeConstraint Setting6LowpanParentPropertyInfo = IsSetting6Lowpan
    type AttrSetTypeConstraint Setting6LowpanParentPropertyInfo = (~) T.Text
    type AttrTransferTypeConstraint Setting6LowpanParentPropertyInfo = (~) T.Text
    type AttrTransferType Setting6LowpanParentPropertyInfo = T.Text
    type AttrGetType Setting6LowpanParentPropertyInfo = T.Text
    type AttrLabel Setting6LowpanParentPropertyInfo = "parent"
    type AttrOrigin Setting6LowpanParentPropertyInfo = Setting6Lowpan
    attrGet = getSetting6LowpanParent
    attrSet = setSetting6LowpanParent
    attrTransfer _ v = do
        return v
    attrConstruct = constructSetting6LowpanParent
    attrClear = clearSetting6LowpanParent
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.Setting6Lowpan.parent"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-Setting6Lowpan.html#g:attr:parent"
        })
#endif

#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList Setting6Lowpan
type instance O.AttributeList Setting6Lowpan = Setting6LowpanAttributeList
type Setting6LowpanAttributeList = ('[ '("name", NM.Setting.SettingNamePropertyInfo), '("parent", Setting6LowpanParentPropertyInfo)] :: [(Symbol, DK.Type)])
#endif

#if defined(ENABLE_OVERLOADING)
setting6LowpanParent :: AttrLabelProxy "parent"
setting6LowpanParent = AttrLabelProxy

#endif

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

#endif

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

foreign import ccall "nm_setting_6lowpan_new" nm_setting_6lowpan_new :: 
    IO (Ptr Setting6Lowpan)

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

#if defined(ENABLE_OVERLOADING)
#endif

-- method Setting6Lowpan::get_parent
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "Setting6Lowpan" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSetting6Lowpan"
--                 , 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_6lowpan_get_parent" nm_setting_6lowpan_get_parent :: 
    Ptr Setting6Lowpan ->                   -- setting : TInterface (Name {namespace = "NM", name = "Setting6Lowpan"})
    IO CString

-- | /No description available in the introspection data./
-- 
-- /Since: 1.42/
setting6LowpanGetParent ::
    (B.CallStack.HasCallStack, MonadIO m, IsSetting6Lowpan a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.Setting6Lowpan.Setting6Lowpan'
    -> m T.Text
    -- ^ __Returns:__ the [Setting6Lowpan:parent]("GI.NM.Objects.Setting6Lowpan#g:attr:parent") property of the setting
setting6LowpanGetParent :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSetting6Lowpan a) =>
a -> m Text
setting6LowpanGetParent 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 Setting6Lowpan
setting' <- a -> IO (Ptr Setting6Lowpan)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    CString
result <- Ptr Setting6Lowpan -> IO CString
nm_setting_6lowpan_get_parent Ptr Setting6Lowpan
setting'
    Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"setting6LowpanGetParent" 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 Setting6LowpanGetParentMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSetting6Lowpan a) => O.OverloadedMethod Setting6LowpanGetParentMethodInfo a signature where
    overloadedMethod = setting6LowpanGetParent

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


#endif