{-# LANGUAGE TypeApplications #-}


-- | Copyright  : Will Thompson and Iñaki García Etxebarria
-- License    : LGPL-2.1
-- Maintainer : Iñaki García Etxebarria
-- 
-- /No description available in the introspection data./
-- 
-- /Since: 1.14/

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

module GI.NM.Objects.Device6Lowpan
    ( 

-- * Exported types
    Device6Lowpan(..)                       ,
    IsDevice6Lowpan                         ,
    toDevice6Lowpan                         ,


 -- * 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"), [connectionCompatible]("GI.NM.Objects.Device#g:method:connectionCompatible"), [connectionValid]("GI.NM.Objects.Device#g:method:connectionValid"), [delete]("GI.NM.Objects.Device#g:method:delete"), [deleteAsync]("GI.NM.Objects.Device#g:method:deleteAsync"), [deleteFinish]("GI.NM.Objects.Device#g:method:deleteFinish"), [disconnect]("GI.NM.Objects.Device#g:method:disconnect"), [disconnectAsync]("GI.NM.Objects.Device#g:method:disconnectAsync"), [disconnectFinish]("GI.NM.Objects.Device#g:method:disconnectFinish"), [filterConnections]("GI.NM.Objects.Device#g:method:filterConnections"), [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"), [isReal]("GI.NM.Objects.Device#g:method:isReal"), [isSoftware]("GI.NM.Objects.Device#g:method:isSoftware"), [notify]("GI.GObject.Objects.Object#g:method:notify"), [notifyByPspec]("GI.GObject.Objects.Object#g:method:notifyByPspec"), [reapply]("GI.NM.Objects.Device#g:method:reapply"), [reapplyAsync]("GI.NM.Objects.Device#g:method:reapplyAsync"), [reapplyFinish]("GI.NM.Objects.Device#g:method:reapplyFinish"), [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"), [unref]("GI.GObject.Objects.Object#g:method:unref"), [watchClosure]("GI.GObject.Objects.Object#g:method:watchClosure").
-- 
-- ==== Getters
-- [getActiveConnection]("GI.NM.Objects.Device#g:method:getActiveConnection"), [getAppliedConnection]("GI.NM.Objects.Device#g:method:getAppliedConnection"), [getAppliedConnectionAsync]("GI.NM.Objects.Device#g:method:getAppliedConnectionAsync"), [getAppliedConnectionFinish]("GI.NM.Objects.Device#g:method:getAppliedConnectionFinish"), [getAutoconnect]("GI.NM.Objects.Device#g:method:getAutoconnect"), [getAvailableConnections]("GI.NM.Objects.Device#g:method:getAvailableConnections"), [getCapabilities]("GI.NM.Objects.Device#g:method:getCapabilities"), [getClient]("GI.NM.Objects.Object#g:method:getClient"), [getConnectivity]("GI.NM.Objects.Device#g:method:getConnectivity"), [getData]("GI.GObject.Objects.Object#g:method:getData"), [getDescription]("GI.NM.Objects.Device#g:method:getDescription"), [getDeviceType]("GI.NM.Objects.Device#g:method:getDeviceType"), [getDhcp4Config]("GI.NM.Objects.Device#g:method:getDhcp4Config"), [getDhcp6Config]("GI.NM.Objects.Device#g:method:getDhcp6Config"), [getDriver]("GI.NM.Objects.Device#g:method:getDriver"), [getDriverVersion]("GI.NM.Objects.Device#g:method:getDriverVersion"), [getFirmwareMissing]("GI.NM.Objects.Device#g:method:getFirmwareMissing"), [getFirmwareVersion]("GI.NM.Objects.Device#g:method:getFirmwareVersion"), [getHwAddress]("GI.NM.Objects.Device#g:method:getHwAddress"), [getIface]("GI.NM.Objects.Device#g:method:getIface"), [getInterfaceFlags]("GI.NM.Objects.Device#g:method:getInterfaceFlags"), [getIp4Config]("GI.NM.Objects.Device#g:method:getIp4Config"), [getIp6Config]("GI.NM.Objects.Device#g:method:getIp6Config"), [getIpIface]("GI.NM.Objects.Device#g:method:getIpIface"), [getLldpNeighbors]("GI.NM.Objects.Device#g:method:getLldpNeighbors"), [getManaged]("GI.NM.Objects.Device#g:method:getManaged"), [getMetered]("GI.NM.Objects.Device#g:method:getMetered"), [getMtu]("GI.NM.Objects.Device#g:method:getMtu"), [getNmPluginMissing]("GI.NM.Objects.Device#g:method:getNmPluginMissing"), [getParent]("GI.NM.Objects.Device6Lowpan#g:method:getParent"), [getPath]("GI.NM.Objects.Device#g:method:getPath"), [getPhysicalPortId]("GI.NM.Objects.Device#g:method:getPhysicalPortId"), [getPorts]("GI.NM.Objects.Device#g:method:getPorts"), [getProduct]("GI.NM.Objects.Device#g:method:getProduct"), [getProperty]("GI.GObject.Objects.Object#g:method:getProperty"), [getQdata]("GI.GObject.Objects.Object#g:method:getQdata"), [getSettingType]("GI.NM.Objects.Device#g:method:getSettingType"), [getState]("GI.NM.Objects.Device#g:method:getState"), [getStateReason]("GI.NM.Objects.Device#g:method:getStateReason"), [getTypeDescription]("GI.NM.Objects.Device#g:method:getTypeDescription"), [getUdi]("GI.NM.Objects.Device#g:method:getUdi"), [getVendor]("GI.NM.Objects.Device#g:method:getVendor").
-- 
-- ==== Setters
-- [setAutoconnect]("GI.NM.Objects.Device#g:method:setAutoconnect"), [setData]("GI.GObject.Objects.Object#g:method:setData"), [setDataFull]("GI.GObject.Objects.Object#g:method:setDataFull"), [setManaged]("GI.NM.Objects.Device#g:method:setManaged"), [setProperty]("GI.GObject.Objects.Object#g:method:setProperty").

#if defined(ENABLE_OVERLOADING)
    ResolveDevice6LowpanMethod              ,
#endif

-- ** getParent #method:getParent#

#if defined(ENABLE_OVERLOADING)
    Device6LowpanGetParentMethodInfo        ,
#endif
    device6LowpanGetParent                  ,




 -- * Properties


-- ** parent #attr:parent#
-- | The devices\'s parent device.
-- 
-- /Since: 1.14/

#if defined(ENABLE_OVERLOADING)
    Device6LowpanParentPropertyInfo         ,
#endif
#if defined(ENABLE_OVERLOADING)
    device6LowpanParent                     ,
#endif
    getDevice6LowpanParent                  ,




    ) 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.MainContext as GLib.MainContext
import qualified GI.GLib.Structs.VariantType as GLib.VariantType
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gio.Callbacks as Gio.Callbacks
import qualified GI.Gio.Interfaces.AsyncInitable as Gio.AsyncInitable
import qualified GI.Gio.Interfaces.AsyncResult as Gio.AsyncResult
import qualified GI.Gio.Interfaces.Initable as Gio.Initable
import qualified GI.Gio.Objects.Cancellable as Gio.Cancellable
import qualified GI.Gio.Objects.DBusConnection as Gio.DBusConnection
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.ActiveConnection as NM.ActiveConnection
import {-# SOURCE #-} qualified GI.NM.Objects.Checkpoint as NM.Checkpoint
import {-# SOURCE #-} qualified GI.NM.Objects.Client as NM.Client
import {-# SOURCE #-} qualified GI.NM.Objects.Device as NM.Device
import {-# SOURCE #-} qualified GI.NM.Objects.DhcpConfig as NM.DhcpConfig
import {-# SOURCE #-} qualified GI.NM.Objects.IPConfig as NM.IPConfig
import {-# SOURCE #-} qualified GI.NM.Objects.Object as NM.Object
import {-# SOURCE #-} qualified GI.NM.Objects.RemoteConnection as NM.RemoteConnection
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.DnsEntry as NM.DnsEntry
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.LldpNeighbor as NM.LldpNeighbor
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.Device as NM.Device
import {-# SOURCE #-} qualified GI.NM.Objects.Object as NM.Object

#endif

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

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

foreign import ccall "nm_device_6lowpan_get_type"
    c_nm_device_6lowpan_get_type :: IO B.Types.GType

instance B.Types.TypedObject Device6Lowpan where
    glibType :: IO GType
glibType = IO GType
c_nm_device_6lowpan_get_type

instance B.Types.GObject Device6Lowpan

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

instance O.HasParentTypes Device6Lowpan
type instance O.ParentTypes Device6Lowpan = '[NM.Device.Device, NM.Object.Object, GObject.Object.Object]

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

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

#if defined(ENABLE_OVERLOADING)
type family ResolveDevice6LowpanMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
    ResolveDevice6LowpanMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
    ResolveDevice6LowpanMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
    ResolveDevice6LowpanMethod "connectionCompatible" o = NM.Device.DeviceConnectionCompatibleMethodInfo
    ResolveDevice6LowpanMethod "connectionValid" o = NM.Device.DeviceConnectionValidMethodInfo
    ResolveDevice6LowpanMethod "delete" o = NM.Device.DeviceDeleteMethodInfo
    ResolveDevice6LowpanMethod "deleteAsync" o = NM.Device.DeviceDeleteAsyncMethodInfo
    ResolveDevice6LowpanMethod "deleteFinish" o = NM.Device.DeviceDeleteFinishMethodInfo
    ResolveDevice6LowpanMethod "disconnect" o = NM.Device.DeviceDisconnectMethodInfo
    ResolveDevice6LowpanMethod "disconnectAsync" o = NM.Device.DeviceDisconnectAsyncMethodInfo
    ResolveDevice6LowpanMethod "disconnectFinish" o = NM.Device.DeviceDisconnectFinishMethodInfo
    ResolveDevice6LowpanMethod "filterConnections" o = NM.Device.DeviceFilterConnectionsMethodInfo
    ResolveDevice6LowpanMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
    ResolveDevice6LowpanMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
    ResolveDevice6LowpanMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
    ResolveDevice6LowpanMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
    ResolveDevice6LowpanMethod "isReal" o = NM.Device.DeviceIsRealMethodInfo
    ResolveDevice6LowpanMethod "isSoftware" o = NM.Device.DeviceIsSoftwareMethodInfo
    ResolveDevice6LowpanMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
    ResolveDevice6LowpanMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
    ResolveDevice6LowpanMethod "reapply" o = NM.Device.DeviceReapplyMethodInfo
    ResolveDevice6LowpanMethod "reapplyAsync" o = NM.Device.DeviceReapplyAsyncMethodInfo
    ResolveDevice6LowpanMethod "reapplyFinish" o = NM.Device.DeviceReapplyFinishMethodInfo
    ResolveDevice6LowpanMethod "ref" o = GObject.Object.ObjectRefMethodInfo
    ResolveDevice6LowpanMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
    ResolveDevice6LowpanMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
    ResolveDevice6LowpanMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
    ResolveDevice6LowpanMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
    ResolveDevice6LowpanMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
    ResolveDevice6LowpanMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
    ResolveDevice6LowpanMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
    ResolveDevice6LowpanMethod "getActiveConnection" o = NM.Device.DeviceGetActiveConnectionMethodInfo
    ResolveDevice6LowpanMethod "getAppliedConnection" o = NM.Device.DeviceGetAppliedConnectionMethodInfo
    ResolveDevice6LowpanMethod "getAppliedConnectionAsync" o = NM.Device.DeviceGetAppliedConnectionAsyncMethodInfo
    ResolveDevice6LowpanMethod "getAppliedConnectionFinish" o = NM.Device.DeviceGetAppliedConnectionFinishMethodInfo
    ResolveDevice6LowpanMethod "getAutoconnect" o = NM.Device.DeviceGetAutoconnectMethodInfo
    ResolveDevice6LowpanMethod "getAvailableConnections" o = NM.Device.DeviceGetAvailableConnectionsMethodInfo
    ResolveDevice6LowpanMethod "getCapabilities" o = NM.Device.DeviceGetCapabilitiesMethodInfo
    ResolveDevice6LowpanMethod "getClient" o = NM.Object.ObjectGetClientMethodInfo
    ResolveDevice6LowpanMethod "getConnectivity" o = NM.Device.DeviceGetConnectivityMethodInfo
    ResolveDevice6LowpanMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
    ResolveDevice6LowpanMethod "getDescription" o = NM.Device.DeviceGetDescriptionMethodInfo
    ResolveDevice6LowpanMethod "getDeviceType" o = NM.Device.DeviceGetDeviceTypeMethodInfo
    ResolveDevice6LowpanMethod "getDhcp4Config" o = NM.Device.DeviceGetDhcp4ConfigMethodInfo
    ResolveDevice6LowpanMethod "getDhcp6Config" o = NM.Device.DeviceGetDhcp6ConfigMethodInfo
    ResolveDevice6LowpanMethod "getDriver" o = NM.Device.DeviceGetDriverMethodInfo
    ResolveDevice6LowpanMethod "getDriverVersion" o = NM.Device.DeviceGetDriverVersionMethodInfo
    ResolveDevice6LowpanMethod "getFirmwareMissing" o = NM.Device.DeviceGetFirmwareMissingMethodInfo
    ResolveDevice6LowpanMethod "getFirmwareVersion" o = NM.Device.DeviceGetFirmwareVersionMethodInfo
    ResolveDevice6LowpanMethod "getHwAddress" o = NM.Device.DeviceGetHwAddressMethodInfo
    ResolveDevice6LowpanMethod "getIface" o = NM.Device.DeviceGetIfaceMethodInfo
    ResolveDevice6LowpanMethod "getInterfaceFlags" o = NM.Device.DeviceGetInterfaceFlagsMethodInfo
    ResolveDevice6LowpanMethod "getIp4Config" o = NM.Device.DeviceGetIp4ConfigMethodInfo
    ResolveDevice6LowpanMethod "getIp6Config" o = NM.Device.DeviceGetIp6ConfigMethodInfo
    ResolveDevice6LowpanMethod "getIpIface" o = NM.Device.DeviceGetIpIfaceMethodInfo
    ResolveDevice6LowpanMethod "getLldpNeighbors" o = NM.Device.DeviceGetLldpNeighborsMethodInfo
    ResolveDevice6LowpanMethod "getManaged" o = NM.Device.DeviceGetManagedMethodInfo
    ResolveDevice6LowpanMethod "getMetered" o = NM.Device.DeviceGetMeteredMethodInfo
    ResolveDevice6LowpanMethod "getMtu" o = NM.Device.DeviceGetMtuMethodInfo
    ResolveDevice6LowpanMethod "getNmPluginMissing" o = NM.Device.DeviceGetNmPluginMissingMethodInfo
    ResolveDevice6LowpanMethod "getParent" o = Device6LowpanGetParentMethodInfo
    ResolveDevice6LowpanMethod "getPath" o = NM.Device.DeviceGetPathMethodInfo
    ResolveDevice6LowpanMethod "getPhysicalPortId" o = NM.Device.DeviceGetPhysicalPortIdMethodInfo
    ResolveDevice6LowpanMethod "getPorts" o = NM.Device.DeviceGetPortsMethodInfo
    ResolveDevice6LowpanMethod "getProduct" o = NM.Device.DeviceGetProductMethodInfo
    ResolveDevice6LowpanMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
    ResolveDevice6LowpanMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
    ResolveDevice6LowpanMethod "getSettingType" o = NM.Device.DeviceGetSettingTypeMethodInfo
    ResolveDevice6LowpanMethod "getState" o = NM.Device.DeviceGetStateMethodInfo
    ResolveDevice6LowpanMethod "getStateReason" o = NM.Device.DeviceGetStateReasonMethodInfo
    ResolveDevice6LowpanMethod "getTypeDescription" o = NM.Device.DeviceGetTypeDescriptionMethodInfo
    ResolveDevice6LowpanMethod "getUdi" o = NM.Device.DeviceGetUdiMethodInfo
    ResolveDevice6LowpanMethod "getVendor" o = NM.Device.DeviceGetVendorMethodInfo
    ResolveDevice6LowpanMethod "setAutoconnect" o = NM.Device.DeviceSetAutoconnectMethodInfo
    ResolveDevice6LowpanMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
    ResolveDevice6LowpanMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
    ResolveDevice6LowpanMethod "setManaged" o = NM.Device.DeviceSetManagedMethodInfo
    ResolveDevice6LowpanMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
    ResolveDevice6LowpanMethod l o = O.MethodResolutionFailed l o

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

#endif

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

#endif

--- XXX Duplicated object with different types:
  --- Name {namespace = "NM", name = "Device"} -> Property {propName = "path", propType = TBasicType TUTF8, propFlags = [PropertyReadable], propReadNullable = Just False, propWriteNullable = Nothing, propSetter = Nothing, propGetter = Just "get_path", propTransfer = TransferNothing, propDoc = Documentation {rawDocText = Just "The device path as exposed by the udev property ID_PATH.\n\nThe string is backslash escaped (C escaping) for invalid\ncharacters. The escaping can be reverted with g_strcompress(),\nhowever the result may not be valid UTF-8.", sinceVersion = Just "1.26"}, propDeprecated = Nothing}
  --- Name {namespace = "NM", name = "Object"} -> Property {propName = "path", propType = TBasicType TUTF8, propFlags = [PropertyReadable], propReadNullable = Just False, propWriteNullable = Nothing, propSetter = Nothing, propGetter = Just "get_path", propTransfer = TransferNothing, propDoc = Documentation {rawDocText = Just "The D-Bus object path.\n\nThe D-Bus path of an object instance never changes, even if the object\ngets removed from the cache. To see whether the object is still in the\ncache, check NMObject:client.", sinceVersion = Nothing}, propDeprecated = Nothing}
-- VVV Prop "parent"
   -- Type: TInterface (Name {namespace = "NM", name = "Device"})
   -- Flags: [PropertyReadable]
   -- 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' device6Lowpan #parent
-- @
getDevice6LowpanParent :: (MonadIO m, IsDevice6Lowpan o) => o -> m NM.Device.Device
getDevice6LowpanParent :: forall (m :: * -> *) o.
(MonadIO m, IsDevice6Lowpan o) =>
o -> m Device
getDevice6LowpanParent o
obj = IO Device -> m Device
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Device -> m Device) -> IO Device -> m Device
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Device) -> IO Device
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getDevice6LowpanParent" (IO (Maybe Device) -> IO Device) -> IO (Maybe Device) -> IO Device
forall a b. (a -> b) -> a -> b
$ o -> String -> (ManagedPtr Device -> Device) -> IO (Maybe Device)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"parent" ManagedPtr Device -> Device
NM.Device.Device

#if defined(ENABLE_OVERLOADING)
data Device6LowpanParentPropertyInfo
instance AttrInfo Device6LowpanParentPropertyInfo where
    type AttrAllowedOps Device6LowpanParentPropertyInfo = '[ 'AttrGet, 'AttrClear]
    type AttrBaseTypeConstraint Device6LowpanParentPropertyInfo = IsDevice6Lowpan
    type AttrSetTypeConstraint Device6LowpanParentPropertyInfo = (~) ()
    type AttrTransferTypeConstraint Device6LowpanParentPropertyInfo = (~) ()
    type AttrTransferType Device6LowpanParentPropertyInfo = ()
    type AttrGetType Device6LowpanParentPropertyInfo = NM.Device.Device
    type AttrLabel Device6LowpanParentPropertyInfo = "parent"
    type AttrOrigin Device6LowpanParentPropertyInfo = Device6Lowpan
    attrGet = getDevice6LowpanParent
    attrSet = undefined
    attrTransfer _ = undefined
    attrConstruct = undefined
    attrClear = undefined
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.Device6Lowpan.parent"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-Device6Lowpan.html#g:attr:parent"
        })
#endif

#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList Device6Lowpan
type instance O.AttributeList Device6Lowpan = Device6LowpanAttributeList
type Device6LowpanAttributeList = ('[ '("activeConnection", NM.Device.DeviceActiveConnectionPropertyInfo), '("autoconnect", NM.Device.DeviceAutoconnectPropertyInfo), '("availableConnections", NM.Device.DeviceAvailableConnectionsPropertyInfo), '("capabilities", NM.Device.DeviceCapabilitiesPropertyInfo), '("client", NM.Object.ObjectClientPropertyInfo), '("deviceType", NM.Device.DeviceDeviceTypePropertyInfo), '("dhcp4Config", NM.Device.DeviceDhcp4ConfigPropertyInfo), '("dhcp6Config", NM.Device.DeviceDhcp6ConfigPropertyInfo), '("driver", NM.Device.DeviceDriverPropertyInfo), '("driverVersion", NM.Device.DeviceDriverVersionPropertyInfo), '("firmwareMissing", NM.Device.DeviceFirmwareMissingPropertyInfo), '("firmwareVersion", NM.Device.DeviceFirmwareVersionPropertyInfo), '("hwAddress", NM.Device.DeviceHwAddressPropertyInfo), '("interface", NM.Device.DeviceInterfacePropertyInfo), '("interfaceFlags", NM.Device.DeviceInterfaceFlagsPropertyInfo), '("ipInterface", NM.Device.DeviceIpInterfacePropertyInfo), '("ip4Config", NM.Device.DeviceIp4ConfigPropertyInfo), '("ip4Connectivity", NM.Device.DeviceIp4ConnectivityPropertyInfo), '("ip6Config", NM.Device.DeviceIp6ConfigPropertyInfo), '("ip6Connectivity", NM.Device.DeviceIp6ConnectivityPropertyInfo), '("lldpNeighbors", NM.Device.DeviceLldpNeighborsPropertyInfo), '("managed", NM.Device.DeviceManagedPropertyInfo), '("metered", NM.Device.DeviceMeteredPropertyInfo), '("mtu", NM.Device.DeviceMtuPropertyInfo), '("nmPluginMissing", NM.Device.DeviceNmPluginMissingPropertyInfo), '("parent", Device6LowpanParentPropertyInfo), '("path", NM.Device.DevicePathPropertyInfo), '("physicalPortId", NM.Device.DevicePhysicalPortIdPropertyInfo), '("ports", NM.Device.DevicePortsPropertyInfo), '("product", NM.Device.DeviceProductPropertyInfo), '("real", NM.Device.DeviceRealPropertyInfo), '("state", NM.Device.DeviceStatePropertyInfo), '("stateReason", NM.Device.DeviceStateReasonPropertyInfo), '("udi", NM.Device.DeviceUdiPropertyInfo), '("vendor", NM.Device.DeviceVendorPropertyInfo)] :: [(Symbol, DK.Type)])
#endif

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

#endif

#if defined(ENABLE_OVERLOADING)
type instance O.SignalList Device6Lowpan = Device6LowpanSignalList
type Device6LowpanSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo), '("stateChanged", NM.Device.DeviceStateChangedSignalInfo)] :: [(Symbol, DK.Type)])

#endif

-- method Device6Lowpan::get_parent
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "device"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "Device6Lowpan" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "a #NMDevice6Lowpan" , sinceVersion = Nothing }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TInterface Name { namespace = "NM" , name = "Device" })
-- throws : False
-- Skip return : False

foreign import ccall "nm_device_6lowpan_get_parent" nm_device_6lowpan_get_parent :: 
    Ptr Device6Lowpan ->                    -- device : TInterface (Name {namespace = "NM", name = "Device6Lowpan"})
    IO (Ptr NM.Device.Device)

-- | /No description available in the introspection data./
-- 
-- /Since: 1.42/
device6LowpanGetParent ::
    (B.CallStack.HasCallStack, MonadIO m, IsDevice6Lowpan a) =>
    a
    -- ^ /@device@/: a t'GI.NM.Objects.Device6Lowpan.Device6Lowpan'
    -> m NM.Device.Device
    -- ^ __Returns:__ the device\'s parent device
device6LowpanGetParent :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsDevice6Lowpan a) =>
a -> m Device
device6LowpanGetParent a
device = IO Device -> m Device
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Device -> m Device) -> IO Device -> m Device
forall a b. (a -> b) -> a -> b
$ do
    Ptr Device6Lowpan
device' <- a -> IO (Ptr Device6Lowpan)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
device
    Ptr Device
result <- Ptr Device6Lowpan -> IO (Ptr Device)
nm_device_6lowpan_get_parent Ptr Device6Lowpan
device'
    Text -> Ptr Device -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"device6LowpanGetParent" Ptr Device
result
    Device
result' <- ((ManagedPtr Device -> Device) -> Ptr Device -> IO Device
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Device -> Device
NM.Device.Device) Ptr Device
result
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
device
    Device -> IO Device
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Device
result'

#if defined(ENABLE_OVERLOADING)
data Device6LowpanGetParentMethodInfo
instance (signature ~ (m NM.Device.Device), MonadIO m, IsDevice6Lowpan a) => O.OverloadedMethod Device6LowpanGetParentMethodInfo a signature where
    overloadedMethod = device6LowpanGetParent

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


#endif