{-# 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.12/

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

module GI.NM.Objects.Checkpoint
    ( 

-- * Exported types
    Checkpoint(..)                          ,
    IsCheckpoint                            ,
    toCheckpoint                            ,


 -- * 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"), [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"), [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
-- [getClient]("GI.NM.Objects.Object#g:method:getClient"), [getCreated]("GI.NM.Objects.Checkpoint#g:method:getCreated"), [getData]("GI.GObject.Objects.Object#g:method:getData"), [getDevices]("GI.NM.Objects.Checkpoint#g:method:getDevices"), [getPath]("GI.NM.Objects.Object#g:method:getPath"), [getProperty]("GI.GObject.Objects.Object#g:method:getProperty"), [getQdata]("GI.GObject.Objects.Object#g:method:getQdata"), [getRollbackTimeout]("GI.NM.Objects.Checkpoint#g:method:getRollbackTimeout").
-- 
-- ==== 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").

#if defined(ENABLE_OVERLOADING)
    ResolveCheckpointMethod                 ,
#endif

-- ** getCreated #method:getCreated#

#if defined(ENABLE_OVERLOADING)
    CheckpointGetCreatedMethodInfo          ,
#endif
    checkpointGetCreated                    ,


-- ** getDevices #method:getDevices#

#if defined(ENABLE_OVERLOADING)
    CheckpointGetDevicesMethodInfo          ,
#endif
    checkpointGetDevices                    ,


-- ** getRollbackTimeout #method:getRollbackTimeout#

#if defined(ENABLE_OVERLOADING)
    CheckpointGetRollbackTimeoutMethodInfo  ,
#endif
    checkpointGetRollbackTimeout            ,




 -- * Properties


-- ** created #attr:created#
-- | The timestamp (in CLOCK_BOOTTIME milliseconds) of checkpoint creation.
-- 
-- /Since: 1.12/

#if defined(ENABLE_OVERLOADING)
    CheckpointCreatedPropertyInfo           ,
#endif
#if defined(ENABLE_OVERLOADING)
    checkpointCreated                       ,
#endif
    getCheckpointCreated                    ,


-- ** devices #attr:devices#

#if defined(ENABLE_OVERLOADING)
    CheckpointDevicesPropertyInfo           ,
#endif
#if defined(ENABLE_OVERLOADING)
    checkpointDevices                       ,
#endif


-- ** rollbackTimeout #attr:rollbackTimeout#
-- | Timeout in seconds for automatic rollback, or zero.
-- 
-- /Since: 1.12/

#if defined(ENABLE_OVERLOADING)
    CheckpointRollbackTimeoutPropertyInfo   ,
#endif
#if defined(ENABLE_OVERLOADING)
    checkpointRollbackTimeout               ,
#endif
    getCheckpointRollbackTimeout            ,




    ) 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.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 Checkpoint = Checkpoint (SP.ManagedPtr Checkpoint)
    deriving (Checkpoint -> Checkpoint -> Bool
(Checkpoint -> Checkpoint -> Bool)
-> (Checkpoint -> Checkpoint -> Bool) -> Eq Checkpoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Checkpoint -> Checkpoint -> Bool
== :: Checkpoint -> Checkpoint -> Bool
$c/= :: Checkpoint -> Checkpoint -> Bool
/= :: Checkpoint -> Checkpoint -> Bool
Eq)

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

foreign import ccall "nm_checkpoint_get_type"
    c_nm_checkpoint_get_type :: IO B.Types.GType

instance B.Types.TypedObject Checkpoint where
    glibType :: IO GType
glibType = IO GType
c_nm_checkpoint_get_type

instance B.Types.GObject Checkpoint

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

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

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

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

#if defined(ENABLE_OVERLOADING)
type family ResolveCheckpointMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
    ResolveCheckpointMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
    ResolveCheckpointMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
    ResolveCheckpointMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
    ResolveCheckpointMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
    ResolveCheckpointMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
    ResolveCheckpointMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
    ResolveCheckpointMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
    ResolveCheckpointMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
    ResolveCheckpointMethod "ref" o = GObject.Object.ObjectRefMethodInfo
    ResolveCheckpointMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
    ResolveCheckpointMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
    ResolveCheckpointMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
    ResolveCheckpointMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
    ResolveCheckpointMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
    ResolveCheckpointMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
    ResolveCheckpointMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
    ResolveCheckpointMethod "getClient" o = NM.Object.ObjectGetClientMethodInfo
    ResolveCheckpointMethod "getCreated" o = CheckpointGetCreatedMethodInfo
    ResolveCheckpointMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
    ResolveCheckpointMethod "getDevices" o = CheckpointGetDevicesMethodInfo
    ResolveCheckpointMethod "getPath" o = NM.Object.ObjectGetPathMethodInfo
    ResolveCheckpointMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
    ResolveCheckpointMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
    ResolveCheckpointMethod "getRollbackTimeout" o = CheckpointGetRollbackTimeoutMethodInfo
    ResolveCheckpointMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
    ResolveCheckpointMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
    ResolveCheckpointMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
    ResolveCheckpointMethod l o = O.MethodResolutionFailed l o

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

#endif

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

#endif

-- VVV Prop "created"
   -- Type: TBasicType TInt64
   -- Flags: [PropertyReadable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@created@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' checkpoint #created
-- @
getCheckpointCreated :: (MonadIO m, IsCheckpoint o) => o -> m Int64
getCheckpointCreated :: forall (m :: * -> *) o. (MonadIO m, IsCheckpoint o) => o -> m Int64
getCheckpointCreated o
obj = IO Int64 -> m Int64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int64 -> m Int64) -> IO Int64 -> m Int64
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int64
forall a. GObject a => a -> String -> IO Int64
B.Properties.getObjectPropertyInt64 o
obj String
"created"

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

-- XXX Generation of property "devices" of object "Checkpoint" failed.
-- Not implemented: Don't know how to handle properties of type TPtrArray (TInterface (Name {namespace = "NM", name = "Device"}))
#if defined(ENABLE_OVERLOADING)
-- XXX Placeholder
data CheckpointDevicesPropertyInfo
instance AttrInfo CheckpointDevicesPropertyInfo where
    type AttrAllowedOps CheckpointDevicesPropertyInfo = '[]
    type AttrSetTypeConstraint CheckpointDevicesPropertyInfo = (~) ()
    type AttrTransferTypeConstraint CheckpointDevicesPropertyInfo = (~) ()
    type AttrTransferType CheckpointDevicesPropertyInfo = ()
    type AttrBaseTypeConstraint CheckpointDevicesPropertyInfo = (~) ()
    type AttrGetType CheckpointDevicesPropertyInfo = ()
    type AttrLabel CheckpointDevicesPropertyInfo = ""
    type AttrOrigin CheckpointDevicesPropertyInfo = Checkpoint
    attrGet = undefined
    attrSet = undefined
    attrConstruct = undefined
    attrClear = undefined
    attrTransfer = undefined
#endif

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

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

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

#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList Checkpoint
type instance O.AttributeList Checkpoint = CheckpointAttributeList
type CheckpointAttributeList = ('[ '("client", NM.Object.ObjectClientPropertyInfo), '("created", CheckpointCreatedPropertyInfo), '("devices", CheckpointDevicesPropertyInfo), '("path", NM.Object.ObjectPathPropertyInfo), '("rollbackTimeout", CheckpointRollbackTimeoutPropertyInfo)] :: [(Symbol, DK.Type)])
#endif

#if defined(ENABLE_OVERLOADING)
checkpointCreated :: AttrLabelProxy "created"
checkpointCreated = AttrLabelProxy

checkpointDevices :: AttrLabelProxy "devices"
checkpointDevices = AttrLabelProxy

checkpointRollbackTimeout :: AttrLabelProxy "rollbackTimeout"
checkpointRollbackTimeout = AttrLabelProxy

#endif

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

#endif

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

foreign import ccall "nm_checkpoint_get_created" nm_checkpoint_get_created :: 
    Ptr Checkpoint ->                       -- checkpoint : TInterface (Name {namespace = "NM", name = "Checkpoint"})
    IO Int64

-- | Gets the timestamp (in CLOCK_BOOTTIME milliseconds) of checkpoint creation.
-- 
-- Use 'GI.NM.Functions.utilsGetTimestampMsec' to obtain current time value suitable for
-- comparing to this value.
-- 
-- /Since: 1.12/
checkpointGetCreated ::
    (B.CallStack.HasCallStack, MonadIO m, IsCheckpoint a) =>
    a
    -- ^ /@checkpoint@/: a t'GI.NM.Objects.Checkpoint.Checkpoint'
    -> m Int64
    -- ^ __Returns:__ the timestamp of checkpoint creation.
checkpointGetCreated :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCheckpoint a) =>
a -> m Int64
checkpointGetCreated a
checkpoint = IO Int64 -> m Int64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int64 -> m Int64) -> IO Int64 -> m Int64
forall a b. (a -> b) -> a -> b
$ do
    Ptr Checkpoint
checkpoint' <- a -> IO (Ptr Checkpoint)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
checkpoint
    Int64
result <- Ptr Checkpoint -> IO Int64
nm_checkpoint_get_created Ptr Checkpoint
checkpoint'
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
checkpoint
    Int64 -> IO Int64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int64
result

#if defined(ENABLE_OVERLOADING)
data CheckpointGetCreatedMethodInfo
instance (signature ~ (m Int64), MonadIO m, IsCheckpoint a) => O.OverloadedMethod CheckpointGetCreatedMethodInfo a signature where
    overloadedMethod = checkpointGetCreated

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


#endif

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

foreign import ccall "nm_checkpoint_get_devices" nm_checkpoint_get_devices :: 
    Ptr Checkpoint ->                       -- checkpoint : TInterface (Name {namespace = "NM", name = "Checkpoint"})
    IO (Ptr (GPtrArray (Ptr NM.Device.Device)))

-- | The devices that are part of this checkpoint.
-- 
-- /Since: 1.12/
checkpointGetDevices ::
    (B.CallStack.HasCallStack, MonadIO m, IsCheckpoint a) =>
    a
    -- ^ /@checkpoint@/: a t'GI.NM.Objects.Checkpoint.Checkpoint'
    -> m [NM.Device.Device]
    -- ^ __Returns:__ the devices list.
checkpointGetDevices :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCheckpoint a) =>
a -> m [Device]
checkpointGetDevices a
checkpoint = 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 Checkpoint
checkpoint' <- a -> IO (Ptr Checkpoint)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
checkpoint
    Ptr (GPtrArray (Ptr Device))
result <- Ptr Checkpoint -> IO (Ptr (GPtrArray (Ptr Device)))
nm_checkpoint_get_devices Ptr Checkpoint
checkpoint'
    Text -> Ptr (GPtrArray (Ptr Device)) -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"checkpointGetDevices" Ptr (GPtrArray (Ptr Device))
result
    [Ptr Device]
result' <- Ptr (GPtrArray (Ptr Device)) -> IO [Ptr Device]
forall a. Ptr (GPtrArray (Ptr a)) -> IO [Ptr a]
unpackGPtrArray Ptr (GPtrArray (Ptr Device))
result
    [Device]
result'' <- (Ptr Device -> IO Device) -> [Ptr Device] -> IO [Device]
forall (t :: * -> *) (m :: * -> *) a b.
(Traversable t, Monad m) =>
(a -> m b) -> t a -> m (t b)
forall (m :: * -> *) a b. Monad m => (a -> m b) -> [a] -> m [b]
mapM ((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
checkpoint
    [Device] -> IO [Device]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [Device]
result''

#if defined(ENABLE_OVERLOADING)
data CheckpointGetDevicesMethodInfo
instance (signature ~ (m [NM.Device.Device]), MonadIO m, IsCheckpoint a) => O.OverloadedMethod CheckpointGetDevicesMethodInfo a signature where
    overloadedMethod = checkpointGetDevices

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


#endif

-- method Checkpoint::get_rollback_timeout
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "checkpoint"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "Checkpoint" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "a #NMCheckpoint" , 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_checkpoint_get_rollback_timeout" nm_checkpoint_get_rollback_timeout :: 
    Ptr Checkpoint ->                       -- checkpoint : TInterface (Name {namespace = "NM", name = "Checkpoint"})
    IO Word32

-- | Gets the timeout in seconds for automatic rollback.
-- 
-- /Since: 1.12/
checkpointGetRollbackTimeout ::
    (B.CallStack.HasCallStack, MonadIO m, IsCheckpoint a) =>
    a
    -- ^ /@checkpoint@/: a t'GI.NM.Objects.Checkpoint.Checkpoint'
    -> m Word32
    -- ^ __Returns:__ the rollback timeout.
checkpointGetRollbackTimeout :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCheckpoint a) =>
a -> m Word32
checkpointGetRollbackTimeout a
checkpoint = 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 Checkpoint
checkpoint' <- a -> IO (Ptr Checkpoint)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
checkpoint
    Word32
result <- Ptr Checkpoint -> IO Word32
nm_checkpoint_get_rollback_timeout Ptr Checkpoint
checkpoint'
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
checkpoint
    Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result

#if defined(ENABLE_OVERLOADING)
data CheckpointGetRollbackTimeoutMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsCheckpoint a) => O.OverloadedMethod CheckpointGetRollbackTimeoutMethodInfo a signature where
    overloadedMethod = checkpointGetRollbackTimeout

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


#endif