#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Gio.Objects.DBusObjectManagerClient
(
DBusObjectManagerClient(..) ,
IsDBusObjectManagerClient ,
toDBusObjectManagerClient ,
noDBusObjectManagerClient ,
#if ENABLE_OVERLOADING
DBusObjectManagerClientGetConnectionMethodInfo,
#endif
dBusObjectManagerClientGetConnection ,
#if ENABLE_OVERLOADING
DBusObjectManagerClientGetFlagsMethodInfo,
#endif
dBusObjectManagerClientGetFlags ,
#if ENABLE_OVERLOADING
DBusObjectManagerClientGetNameMethodInfo,
#endif
dBusObjectManagerClientGetName ,
#if ENABLE_OVERLOADING
DBusObjectManagerClientGetNameOwnerMethodInfo,
#endif
dBusObjectManagerClientGetNameOwner ,
dBusObjectManagerClientNew ,
dBusObjectManagerClientNewFinish ,
dBusObjectManagerClientNewForBus ,
dBusObjectManagerClientNewForBusFinish ,
dBusObjectManagerClientNewForBusSync ,
dBusObjectManagerClientNewSync ,
#if ENABLE_OVERLOADING
DBusObjectManagerClientBusTypePropertyInfo,
#endif
constructDBusObjectManagerClientBusType ,
#if ENABLE_OVERLOADING
dBusObjectManagerClientBusType ,
#endif
#if ENABLE_OVERLOADING
DBusObjectManagerClientConnectionPropertyInfo,
#endif
constructDBusObjectManagerClientConnection,
#if ENABLE_OVERLOADING
dBusObjectManagerClientConnection ,
#endif
getDBusObjectManagerClientConnection ,
#if ENABLE_OVERLOADING
DBusObjectManagerClientFlagsPropertyInfo,
#endif
constructDBusObjectManagerClientFlags ,
#if ENABLE_OVERLOADING
dBusObjectManagerClientFlags ,
#endif
getDBusObjectManagerClientFlags ,
#if ENABLE_OVERLOADING
DBusObjectManagerClientGetProxyTypeDestroyNotifyPropertyInfo,
#endif
constructDBusObjectManagerClientGetProxyTypeDestroyNotify,
#if ENABLE_OVERLOADING
dBusObjectManagerClientGetProxyTypeDestroyNotify,
#endif
getDBusObjectManagerClientGetProxyTypeDestroyNotify,
#if ENABLE_OVERLOADING
DBusObjectManagerClientGetProxyTypeFuncPropertyInfo,
#endif
constructDBusObjectManagerClientGetProxyTypeFunc,
#if ENABLE_OVERLOADING
dBusObjectManagerClientGetProxyTypeFunc ,
#endif
getDBusObjectManagerClientGetProxyTypeFunc,
#if ENABLE_OVERLOADING
DBusObjectManagerClientGetProxyTypeUserDataPropertyInfo,
#endif
constructDBusObjectManagerClientGetProxyTypeUserData,
#if ENABLE_OVERLOADING
dBusObjectManagerClientGetProxyTypeUserData,
#endif
getDBusObjectManagerClientGetProxyTypeUserData,
#if ENABLE_OVERLOADING
DBusObjectManagerClientNamePropertyInfo ,
#endif
constructDBusObjectManagerClientName ,
#if ENABLE_OVERLOADING
dBusObjectManagerClientName ,
#endif
getDBusObjectManagerClientName ,
#if ENABLE_OVERLOADING
DBusObjectManagerClientNameOwnerPropertyInfo,
#endif
#if ENABLE_OVERLOADING
dBusObjectManagerClientNameOwner ,
#endif
getDBusObjectManagerClientNameOwner ,
#if ENABLE_OVERLOADING
DBusObjectManagerClientObjectPathPropertyInfo,
#endif
constructDBusObjectManagerClientObjectPath,
#if ENABLE_OVERLOADING
dBusObjectManagerClientObjectPath ,
#endif
getDBusObjectManagerClientObjectPath ,
C_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback,
DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback,
#if ENABLE_OVERLOADING
DBusObjectManagerClientInterfaceProxyPropertiesChangedSignalInfo,
#endif
afterDBusObjectManagerClientInterfaceProxyPropertiesChanged,
genClosure_DBusObjectManagerClientInterfaceProxyPropertiesChanged,
mk_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback,
noDBusObjectManagerClientInterfaceProxyPropertiesChangedCallback,
onDBusObjectManagerClientInterfaceProxyPropertiesChanged,
wrap_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback,
C_DBusObjectManagerClientInterfaceProxySignalCallback,
DBusObjectManagerClientInterfaceProxySignalCallback,
#if ENABLE_OVERLOADING
DBusObjectManagerClientInterfaceProxySignalSignalInfo,
#endif
afterDBusObjectManagerClientInterfaceProxySignal,
genClosure_DBusObjectManagerClientInterfaceProxySignal,
mk_DBusObjectManagerClientInterfaceProxySignalCallback,
noDBusObjectManagerClientInterfaceProxySignalCallback,
onDBusObjectManagerClientInterfaceProxySignal,
wrap_DBusObjectManagerClientInterfaceProxySignalCallback,
) 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.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
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.Text as T
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 GI.GLib.Callbacks as GLib.Callbacks
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gio.Callbacks as Gio.Callbacks
import {-# SOURCE #-} qualified GI.Gio.Enums as Gio.Enums
import {-# SOURCE #-} qualified GI.Gio.Flags as Gio.Flags
import {-# SOURCE #-} qualified GI.Gio.Interfaces.AsyncInitable as Gio.AsyncInitable
import {-# SOURCE #-} qualified GI.Gio.Interfaces.AsyncResult as Gio.AsyncResult
import {-# SOURCE #-} qualified GI.Gio.Interfaces.DBusObjectManager as Gio.DBusObjectManager
import {-# SOURCE #-} qualified GI.Gio.Interfaces.Initable as Gio.Initable
import {-# SOURCE #-} qualified GI.Gio.Objects.Cancellable as Gio.Cancellable
import {-# SOURCE #-} qualified GI.Gio.Objects.DBusConnection as Gio.DBusConnection
import {-# SOURCE #-} qualified GI.Gio.Objects.DBusObjectProxy as Gio.DBusObjectProxy
import {-# SOURCE #-} qualified GI.Gio.Objects.DBusProxy as Gio.DBusProxy
newtype DBusObjectManagerClient = DBusObjectManagerClient (ManagedPtr DBusObjectManagerClient)
foreign import ccall "g_dbus_object_manager_client_get_type"
c_g_dbus_object_manager_client_get_type :: IO GType
instance GObject DBusObjectManagerClient where
gobjectType = c_g_dbus_object_manager_client_get_type
class (GObject o, O.IsDescendantOf DBusObjectManagerClient o) => IsDBusObjectManagerClient o
instance (GObject o, O.IsDescendantOf DBusObjectManagerClient o) => IsDBusObjectManagerClient o
instance O.HasParentTypes DBusObjectManagerClient
type instance O.ParentTypes DBusObjectManagerClient = '[GObject.Object.Object, Gio.AsyncInitable.AsyncInitable, Gio.DBusObjectManager.DBusObjectManager, Gio.Initable.Initable]
toDBusObjectManagerClient :: (MonadIO m, IsDBusObjectManagerClient o) => o -> m DBusObjectManagerClient
toDBusObjectManagerClient = liftIO . unsafeCastTo DBusObjectManagerClient
noDBusObjectManagerClient :: Maybe DBusObjectManagerClient
noDBusObjectManagerClient = Nothing
#if ENABLE_OVERLOADING
type family ResolveDBusObjectManagerClientMethod (t :: Symbol) (o :: *) :: * where
ResolveDBusObjectManagerClientMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveDBusObjectManagerClientMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveDBusObjectManagerClientMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveDBusObjectManagerClientMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveDBusObjectManagerClientMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveDBusObjectManagerClientMethod "init" o = Gio.Initable.InitableInitMethodInfo
ResolveDBusObjectManagerClientMethod "initAsync" o = Gio.AsyncInitable.AsyncInitableInitAsyncMethodInfo
ResolveDBusObjectManagerClientMethod "initFinish" o = Gio.AsyncInitable.AsyncInitableInitFinishMethodInfo
ResolveDBusObjectManagerClientMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveDBusObjectManagerClientMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveDBusObjectManagerClientMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveDBusObjectManagerClientMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveDBusObjectManagerClientMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveDBusObjectManagerClientMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveDBusObjectManagerClientMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveDBusObjectManagerClientMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveDBusObjectManagerClientMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveDBusObjectManagerClientMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveDBusObjectManagerClientMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveDBusObjectManagerClientMethod "getConnection" o = DBusObjectManagerClientGetConnectionMethodInfo
ResolveDBusObjectManagerClientMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveDBusObjectManagerClientMethod "getFlags" o = DBusObjectManagerClientGetFlagsMethodInfo
ResolveDBusObjectManagerClientMethod "getInterface" o = Gio.DBusObjectManager.DBusObjectManagerGetInterfaceMethodInfo
ResolveDBusObjectManagerClientMethod "getName" o = DBusObjectManagerClientGetNameMethodInfo
ResolveDBusObjectManagerClientMethod "getNameOwner" o = DBusObjectManagerClientGetNameOwnerMethodInfo
ResolveDBusObjectManagerClientMethod "getObject" o = Gio.DBusObjectManager.DBusObjectManagerGetObjectMethodInfo
ResolveDBusObjectManagerClientMethod "getObjectPath" o = Gio.DBusObjectManager.DBusObjectManagerGetObjectPathMethodInfo
ResolveDBusObjectManagerClientMethod "getObjects" o = Gio.DBusObjectManager.DBusObjectManagerGetObjectsMethodInfo
ResolveDBusObjectManagerClientMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveDBusObjectManagerClientMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveDBusObjectManagerClientMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveDBusObjectManagerClientMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveDBusObjectManagerClientMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveDBusObjectManagerClientMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveDBusObjectManagerClientMethod t DBusObjectManagerClient, O.MethodInfo info DBusObjectManagerClient p) => OL.IsLabel t (DBusObjectManagerClient -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#else
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
#endif
type DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback =
Gio.DBusObjectProxy.DBusObjectProxy
-> Gio.DBusProxy.DBusProxy
-> GVariant
-> [T.Text]
-> IO ()
noDBusObjectManagerClientInterfaceProxyPropertiesChangedCallback :: Maybe DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback
noDBusObjectManagerClientInterfaceProxyPropertiesChangedCallback = Nothing
type C_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback =
Ptr () ->
Ptr Gio.DBusObjectProxy.DBusObjectProxy ->
Ptr Gio.DBusProxy.DBusProxy ->
Ptr GVariant ->
Ptr CString ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback :: C_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback -> IO (FunPtr C_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback)
genClosure_DBusObjectManagerClientInterfaceProxyPropertiesChanged :: MonadIO m => DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback -> m (GClosure C_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback)
genClosure_DBusObjectManagerClientInterfaceProxyPropertiesChanged cb = liftIO $ do
let cb' = wrap_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback cb
mk_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback cb' >>= B.GClosure.newGClosure
wrap_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback ::
DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback ->
C_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback
wrap_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback _cb _ objectProxy interfaceProxy changedProperties invalidatedProperties _ = do
objectProxy' <- (newObject Gio.DBusObjectProxy.DBusObjectProxy) objectProxy
interfaceProxy' <- (newObject Gio.DBusProxy.DBusProxy) interfaceProxy
changedProperties' <- B.GVariant.newGVariantFromPtr changedProperties
invalidatedProperties' <- unpackZeroTerminatedUTF8CArray invalidatedProperties
_cb objectProxy' interfaceProxy' changedProperties' invalidatedProperties'
onDBusObjectManagerClientInterfaceProxyPropertiesChanged :: (IsDBusObjectManagerClient a, MonadIO m) => a -> DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback -> m SignalHandlerId
onDBusObjectManagerClientInterfaceProxyPropertiesChanged obj cb = liftIO $ do
let cb' = wrap_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback cb
cb'' <- mk_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback cb'
connectSignalFunPtr obj "interface-proxy-properties-changed" cb'' SignalConnectBefore
afterDBusObjectManagerClientInterfaceProxyPropertiesChanged :: (IsDBusObjectManagerClient a, MonadIO m) => a -> DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback -> m SignalHandlerId
afterDBusObjectManagerClientInterfaceProxyPropertiesChanged obj cb = liftIO $ do
let cb' = wrap_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback cb
cb'' <- mk_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback cb'
connectSignalFunPtr obj "interface-proxy-properties-changed" cb'' SignalConnectAfter
type DBusObjectManagerClientInterfaceProxySignalCallback =
Gio.DBusObjectProxy.DBusObjectProxy
-> Gio.DBusProxy.DBusProxy
-> T.Text
-> T.Text
-> GVariant
-> IO ()
noDBusObjectManagerClientInterfaceProxySignalCallback :: Maybe DBusObjectManagerClientInterfaceProxySignalCallback
noDBusObjectManagerClientInterfaceProxySignalCallback = Nothing
type C_DBusObjectManagerClientInterfaceProxySignalCallback =
Ptr () ->
Ptr Gio.DBusObjectProxy.DBusObjectProxy ->
Ptr Gio.DBusProxy.DBusProxy ->
CString ->
CString ->
Ptr GVariant ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_DBusObjectManagerClientInterfaceProxySignalCallback :: C_DBusObjectManagerClientInterfaceProxySignalCallback -> IO (FunPtr C_DBusObjectManagerClientInterfaceProxySignalCallback)
genClosure_DBusObjectManagerClientInterfaceProxySignal :: MonadIO m => DBusObjectManagerClientInterfaceProxySignalCallback -> m (GClosure C_DBusObjectManagerClientInterfaceProxySignalCallback)
genClosure_DBusObjectManagerClientInterfaceProxySignal cb = liftIO $ do
let cb' = wrap_DBusObjectManagerClientInterfaceProxySignalCallback cb
mk_DBusObjectManagerClientInterfaceProxySignalCallback cb' >>= B.GClosure.newGClosure
wrap_DBusObjectManagerClientInterfaceProxySignalCallback ::
DBusObjectManagerClientInterfaceProxySignalCallback ->
C_DBusObjectManagerClientInterfaceProxySignalCallback
wrap_DBusObjectManagerClientInterfaceProxySignalCallback _cb _ objectProxy interfaceProxy senderName signalName parameters _ = do
objectProxy' <- (newObject Gio.DBusObjectProxy.DBusObjectProxy) objectProxy
interfaceProxy' <- (newObject Gio.DBusProxy.DBusProxy) interfaceProxy
senderName' <- cstringToText senderName
signalName' <- cstringToText signalName
parameters' <- B.GVariant.newGVariantFromPtr parameters
_cb objectProxy' interfaceProxy' senderName' signalName' parameters'
onDBusObjectManagerClientInterfaceProxySignal :: (IsDBusObjectManagerClient a, MonadIO m) => a -> DBusObjectManagerClientInterfaceProxySignalCallback -> m SignalHandlerId
onDBusObjectManagerClientInterfaceProxySignal obj cb = liftIO $ do
let cb' = wrap_DBusObjectManagerClientInterfaceProxySignalCallback cb
cb'' <- mk_DBusObjectManagerClientInterfaceProxySignalCallback cb'
connectSignalFunPtr obj "interface-proxy-signal" cb'' SignalConnectBefore
afterDBusObjectManagerClientInterfaceProxySignal :: (IsDBusObjectManagerClient a, MonadIO m) => a -> DBusObjectManagerClientInterfaceProxySignalCallback -> m SignalHandlerId
afterDBusObjectManagerClientInterfaceProxySignal obj cb = liftIO $ do
let cb' = wrap_DBusObjectManagerClientInterfaceProxySignalCallback cb
cb'' <- mk_DBusObjectManagerClientInterfaceProxySignalCallback cb'
connectSignalFunPtr obj "interface-proxy-signal" cb'' SignalConnectAfter
constructDBusObjectManagerClientBusType :: (IsDBusObjectManagerClient o) => Gio.Enums.BusType -> IO (GValueConstruct o)
constructDBusObjectManagerClientBusType val = B.Properties.constructObjectPropertyEnum "bus-type" val
#if ENABLE_OVERLOADING
data DBusObjectManagerClientBusTypePropertyInfo
instance AttrInfo DBusObjectManagerClientBusTypePropertyInfo where
type AttrAllowedOps DBusObjectManagerClientBusTypePropertyInfo = '[ 'AttrConstruct]
type AttrSetTypeConstraint DBusObjectManagerClientBusTypePropertyInfo = (~) Gio.Enums.BusType
type AttrBaseTypeConstraint DBusObjectManagerClientBusTypePropertyInfo = IsDBusObjectManagerClient
type AttrGetType DBusObjectManagerClientBusTypePropertyInfo = ()
type AttrLabel DBusObjectManagerClientBusTypePropertyInfo = "bus-type"
type AttrOrigin DBusObjectManagerClientBusTypePropertyInfo = DBusObjectManagerClient
attrGet _ = undefined
attrSet _ = undefined
attrConstruct _ = constructDBusObjectManagerClientBusType
attrClear _ = undefined
#endif
getDBusObjectManagerClientConnection :: (MonadIO m, IsDBusObjectManagerClient o) => o -> m Gio.DBusConnection.DBusConnection
getDBusObjectManagerClientConnection obj = liftIO $ checkUnexpectedNothing "getDBusObjectManagerClientConnection" $ B.Properties.getObjectPropertyObject obj "connection" Gio.DBusConnection.DBusConnection
constructDBusObjectManagerClientConnection :: (IsDBusObjectManagerClient o, Gio.DBusConnection.IsDBusConnection a) => a -> IO (GValueConstruct o)
constructDBusObjectManagerClientConnection val = B.Properties.constructObjectPropertyObject "connection" (Just val)
#if ENABLE_OVERLOADING
data DBusObjectManagerClientConnectionPropertyInfo
instance AttrInfo DBusObjectManagerClientConnectionPropertyInfo where
type AttrAllowedOps DBusObjectManagerClientConnectionPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DBusObjectManagerClientConnectionPropertyInfo = Gio.DBusConnection.IsDBusConnection
type AttrBaseTypeConstraint DBusObjectManagerClientConnectionPropertyInfo = IsDBusObjectManagerClient
type AttrGetType DBusObjectManagerClientConnectionPropertyInfo = Gio.DBusConnection.DBusConnection
type AttrLabel DBusObjectManagerClientConnectionPropertyInfo = "connection"
type AttrOrigin DBusObjectManagerClientConnectionPropertyInfo = DBusObjectManagerClient
attrGet _ = getDBusObjectManagerClientConnection
attrSet _ = undefined
attrConstruct _ = constructDBusObjectManagerClientConnection
attrClear _ = undefined
#endif
getDBusObjectManagerClientFlags :: (MonadIO m, IsDBusObjectManagerClient o) => o -> m [Gio.Flags.DBusObjectManagerClientFlags]
getDBusObjectManagerClientFlags obj = liftIO $ B.Properties.getObjectPropertyFlags obj "flags"
constructDBusObjectManagerClientFlags :: (IsDBusObjectManagerClient o) => [Gio.Flags.DBusObjectManagerClientFlags] -> IO (GValueConstruct o)
constructDBusObjectManagerClientFlags val = B.Properties.constructObjectPropertyFlags "flags" val
#if ENABLE_OVERLOADING
data DBusObjectManagerClientFlagsPropertyInfo
instance AttrInfo DBusObjectManagerClientFlagsPropertyInfo where
type AttrAllowedOps DBusObjectManagerClientFlagsPropertyInfo = '[ 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DBusObjectManagerClientFlagsPropertyInfo = (~) [Gio.Flags.DBusObjectManagerClientFlags]
type AttrBaseTypeConstraint DBusObjectManagerClientFlagsPropertyInfo = IsDBusObjectManagerClient
type AttrGetType DBusObjectManagerClientFlagsPropertyInfo = [Gio.Flags.DBusObjectManagerClientFlags]
type AttrLabel DBusObjectManagerClientFlagsPropertyInfo = "flags"
type AttrOrigin DBusObjectManagerClientFlagsPropertyInfo = DBusObjectManagerClient
attrGet _ = getDBusObjectManagerClientFlags
attrSet _ = undefined
attrConstruct _ = constructDBusObjectManagerClientFlags
attrClear _ = undefined
#endif
getDBusObjectManagerClientGetProxyTypeDestroyNotify :: (MonadIO m, IsDBusObjectManagerClient o) => o -> m (Ptr ())
getDBusObjectManagerClientGetProxyTypeDestroyNotify obj = liftIO $ B.Properties.getObjectPropertyPtr obj "get-proxy-type-destroy-notify"
constructDBusObjectManagerClientGetProxyTypeDestroyNotify :: (IsDBusObjectManagerClient o) => Ptr () -> IO (GValueConstruct o)
constructDBusObjectManagerClientGetProxyTypeDestroyNotify val = B.Properties.constructObjectPropertyPtr "get-proxy-type-destroy-notify" val
#if ENABLE_OVERLOADING
data DBusObjectManagerClientGetProxyTypeDestroyNotifyPropertyInfo
instance AttrInfo DBusObjectManagerClientGetProxyTypeDestroyNotifyPropertyInfo where
type AttrAllowedOps DBusObjectManagerClientGetProxyTypeDestroyNotifyPropertyInfo = '[ 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DBusObjectManagerClientGetProxyTypeDestroyNotifyPropertyInfo = (~) (Ptr ())
type AttrBaseTypeConstraint DBusObjectManagerClientGetProxyTypeDestroyNotifyPropertyInfo = IsDBusObjectManagerClient
type AttrGetType DBusObjectManagerClientGetProxyTypeDestroyNotifyPropertyInfo = (Ptr ())
type AttrLabel DBusObjectManagerClientGetProxyTypeDestroyNotifyPropertyInfo = "get-proxy-type-destroy-notify"
type AttrOrigin DBusObjectManagerClientGetProxyTypeDestroyNotifyPropertyInfo = DBusObjectManagerClient
attrGet _ = getDBusObjectManagerClientGetProxyTypeDestroyNotify
attrSet _ = undefined
attrConstruct _ = constructDBusObjectManagerClientGetProxyTypeDestroyNotify
attrClear _ = undefined
#endif
getDBusObjectManagerClientGetProxyTypeFunc :: (MonadIO m, IsDBusObjectManagerClient o) => o -> m (Ptr ())
getDBusObjectManagerClientGetProxyTypeFunc obj = liftIO $ B.Properties.getObjectPropertyPtr obj "get-proxy-type-func"
constructDBusObjectManagerClientGetProxyTypeFunc :: (IsDBusObjectManagerClient o) => Ptr () -> IO (GValueConstruct o)
constructDBusObjectManagerClientGetProxyTypeFunc val = B.Properties.constructObjectPropertyPtr "get-proxy-type-func" val
#if ENABLE_OVERLOADING
data DBusObjectManagerClientGetProxyTypeFuncPropertyInfo
instance AttrInfo DBusObjectManagerClientGetProxyTypeFuncPropertyInfo where
type AttrAllowedOps DBusObjectManagerClientGetProxyTypeFuncPropertyInfo = '[ 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DBusObjectManagerClientGetProxyTypeFuncPropertyInfo = (~) (Ptr ())
type AttrBaseTypeConstraint DBusObjectManagerClientGetProxyTypeFuncPropertyInfo = IsDBusObjectManagerClient
type AttrGetType DBusObjectManagerClientGetProxyTypeFuncPropertyInfo = (Ptr ())
type AttrLabel DBusObjectManagerClientGetProxyTypeFuncPropertyInfo = "get-proxy-type-func"
type AttrOrigin DBusObjectManagerClientGetProxyTypeFuncPropertyInfo = DBusObjectManagerClient
attrGet _ = getDBusObjectManagerClientGetProxyTypeFunc
attrSet _ = undefined
attrConstruct _ = constructDBusObjectManagerClientGetProxyTypeFunc
attrClear _ = undefined
#endif
getDBusObjectManagerClientGetProxyTypeUserData :: (MonadIO m, IsDBusObjectManagerClient o) => o -> m (Ptr ())
getDBusObjectManagerClientGetProxyTypeUserData obj = liftIO $ B.Properties.getObjectPropertyPtr obj "get-proxy-type-user-data"
constructDBusObjectManagerClientGetProxyTypeUserData :: (IsDBusObjectManagerClient o) => Ptr () -> IO (GValueConstruct o)
constructDBusObjectManagerClientGetProxyTypeUserData val = B.Properties.constructObjectPropertyPtr "get-proxy-type-user-data" val
#if ENABLE_OVERLOADING
data DBusObjectManagerClientGetProxyTypeUserDataPropertyInfo
instance AttrInfo DBusObjectManagerClientGetProxyTypeUserDataPropertyInfo where
type AttrAllowedOps DBusObjectManagerClientGetProxyTypeUserDataPropertyInfo = '[ 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DBusObjectManagerClientGetProxyTypeUserDataPropertyInfo = (~) (Ptr ())
type AttrBaseTypeConstraint DBusObjectManagerClientGetProxyTypeUserDataPropertyInfo = IsDBusObjectManagerClient
type AttrGetType DBusObjectManagerClientGetProxyTypeUserDataPropertyInfo = (Ptr ())
type AttrLabel DBusObjectManagerClientGetProxyTypeUserDataPropertyInfo = "get-proxy-type-user-data"
type AttrOrigin DBusObjectManagerClientGetProxyTypeUserDataPropertyInfo = DBusObjectManagerClient
attrGet _ = getDBusObjectManagerClientGetProxyTypeUserData
attrSet _ = undefined
attrConstruct _ = constructDBusObjectManagerClientGetProxyTypeUserData
attrClear _ = undefined
#endif
getDBusObjectManagerClientName :: (MonadIO m, IsDBusObjectManagerClient o) => o -> m T.Text
getDBusObjectManagerClientName obj = liftIO $ checkUnexpectedNothing "getDBusObjectManagerClientName" $ B.Properties.getObjectPropertyString obj "name"
constructDBusObjectManagerClientName :: (IsDBusObjectManagerClient o) => T.Text -> IO (GValueConstruct o)
constructDBusObjectManagerClientName val = B.Properties.constructObjectPropertyString "name" (Just val)
#if ENABLE_OVERLOADING
data DBusObjectManagerClientNamePropertyInfo
instance AttrInfo DBusObjectManagerClientNamePropertyInfo where
type AttrAllowedOps DBusObjectManagerClientNamePropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DBusObjectManagerClientNamePropertyInfo = (~) T.Text
type AttrBaseTypeConstraint DBusObjectManagerClientNamePropertyInfo = IsDBusObjectManagerClient
type AttrGetType DBusObjectManagerClientNamePropertyInfo = T.Text
type AttrLabel DBusObjectManagerClientNamePropertyInfo = "name"
type AttrOrigin DBusObjectManagerClientNamePropertyInfo = DBusObjectManagerClient
attrGet _ = getDBusObjectManagerClientName
attrSet _ = undefined
attrConstruct _ = constructDBusObjectManagerClientName
attrClear _ = undefined
#endif
getDBusObjectManagerClientNameOwner :: (MonadIO m, IsDBusObjectManagerClient o) => o -> m (Maybe T.Text)
getDBusObjectManagerClientNameOwner obj = liftIO $ B.Properties.getObjectPropertyString obj "name-owner"
#if ENABLE_OVERLOADING
data DBusObjectManagerClientNameOwnerPropertyInfo
instance AttrInfo DBusObjectManagerClientNameOwnerPropertyInfo where
type AttrAllowedOps DBusObjectManagerClientNameOwnerPropertyInfo = '[ 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DBusObjectManagerClientNameOwnerPropertyInfo = (~) ()
type AttrBaseTypeConstraint DBusObjectManagerClientNameOwnerPropertyInfo = IsDBusObjectManagerClient
type AttrGetType DBusObjectManagerClientNameOwnerPropertyInfo = (Maybe T.Text)
type AttrLabel DBusObjectManagerClientNameOwnerPropertyInfo = "name-owner"
type AttrOrigin DBusObjectManagerClientNameOwnerPropertyInfo = DBusObjectManagerClient
attrGet _ = getDBusObjectManagerClientNameOwner
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getDBusObjectManagerClientObjectPath :: (MonadIO m, IsDBusObjectManagerClient o) => o -> m (Maybe T.Text)
getDBusObjectManagerClientObjectPath obj = liftIO $ B.Properties.getObjectPropertyString obj "object-path"
constructDBusObjectManagerClientObjectPath :: (IsDBusObjectManagerClient o) => T.Text -> IO (GValueConstruct o)
constructDBusObjectManagerClientObjectPath val = B.Properties.constructObjectPropertyString "object-path" (Just val)
#if ENABLE_OVERLOADING
data DBusObjectManagerClientObjectPathPropertyInfo
instance AttrInfo DBusObjectManagerClientObjectPathPropertyInfo where
type AttrAllowedOps DBusObjectManagerClientObjectPathPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DBusObjectManagerClientObjectPathPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint DBusObjectManagerClientObjectPathPropertyInfo = IsDBusObjectManagerClient
type AttrGetType DBusObjectManagerClientObjectPathPropertyInfo = (Maybe T.Text)
type AttrLabel DBusObjectManagerClientObjectPathPropertyInfo = "object-path"
type AttrOrigin DBusObjectManagerClientObjectPathPropertyInfo = DBusObjectManagerClient
attrGet _ = getDBusObjectManagerClientObjectPath
attrSet _ = undefined
attrConstruct _ = constructDBusObjectManagerClientObjectPath
attrClear _ = undefined
#endif
#if ENABLE_OVERLOADING
instance O.HasAttributeList DBusObjectManagerClient
type instance O.AttributeList DBusObjectManagerClient = DBusObjectManagerClientAttributeList
type DBusObjectManagerClientAttributeList = ('[ '("busType", DBusObjectManagerClientBusTypePropertyInfo), '("connection", DBusObjectManagerClientConnectionPropertyInfo), '("flags", DBusObjectManagerClientFlagsPropertyInfo), '("getProxyTypeDestroyNotify", DBusObjectManagerClientGetProxyTypeDestroyNotifyPropertyInfo), '("getProxyTypeFunc", DBusObjectManagerClientGetProxyTypeFuncPropertyInfo), '("getProxyTypeUserData", DBusObjectManagerClientGetProxyTypeUserDataPropertyInfo), '("name", DBusObjectManagerClientNamePropertyInfo), '("nameOwner", DBusObjectManagerClientNameOwnerPropertyInfo), '("objectPath", DBusObjectManagerClientObjectPathPropertyInfo)] :: [(Symbol, *)])
#endif
#if ENABLE_OVERLOADING
dBusObjectManagerClientBusType :: AttrLabelProxy "busType"
dBusObjectManagerClientBusType = AttrLabelProxy
dBusObjectManagerClientConnection :: AttrLabelProxy "connection"
dBusObjectManagerClientConnection = AttrLabelProxy
dBusObjectManagerClientFlags :: AttrLabelProxy "flags"
dBusObjectManagerClientFlags = AttrLabelProxy
dBusObjectManagerClientGetProxyTypeDestroyNotify :: AttrLabelProxy "getProxyTypeDestroyNotify"
dBusObjectManagerClientGetProxyTypeDestroyNotify = AttrLabelProxy
dBusObjectManagerClientGetProxyTypeFunc :: AttrLabelProxy "getProxyTypeFunc"
dBusObjectManagerClientGetProxyTypeFunc = AttrLabelProxy
dBusObjectManagerClientGetProxyTypeUserData :: AttrLabelProxy "getProxyTypeUserData"
dBusObjectManagerClientGetProxyTypeUserData = AttrLabelProxy
dBusObjectManagerClientName :: AttrLabelProxy "name"
dBusObjectManagerClientName = AttrLabelProxy
dBusObjectManagerClientNameOwner :: AttrLabelProxy "nameOwner"
dBusObjectManagerClientNameOwner = AttrLabelProxy
dBusObjectManagerClientObjectPath :: AttrLabelProxy "objectPath"
dBusObjectManagerClientObjectPath = AttrLabelProxy
#endif
#if ENABLE_OVERLOADING
data DBusObjectManagerClientInterfaceProxyPropertiesChangedSignalInfo
instance SignalInfo DBusObjectManagerClientInterfaceProxyPropertiesChangedSignalInfo where
type HaskellCallbackType DBusObjectManagerClientInterfaceProxyPropertiesChangedSignalInfo = DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback cb
cb'' <- mk_DBusObjectManagerClientInterfaceProxyPropertiesChangedCallback cb'
connectSignalFunPtr obj "interface-proxy-properties-changed" cb'' connectMode
data DBusObjectManagerClientInterfaceProxySignalSignalInfo
instance SignalInfo DBusObjectManagerClientInterfaceProxySignalSignalInfo where
type HaskellCallbackType DBusObjectManagerClientInterfaceProxySignalSignalInfo = DBusObjectManagerClientInterfaceProxySignalCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_DBusObjectManagerClientInterfaceProxySignalCallback cb
cb'' <- mk_DBusObjectManagerClientInterfaceProxySignalCallback cb'
connectSignalFunPtr obj "interface-proxy-signal" cb'' connectMode
type instance O.SignalList DBusObjectManagerClient = DBusObjectManagerClientSignalList
type DBusObjectManagerClientSignalList = ('[ '("interfaceAdded", Gio.DBusObjectManager.DBusObjectManagerInterfaceAddedSignalInfo), '("interfaceProxyPropertiesChanged", DBusObjectManagerClientInterfaceProxyPropertiesChangedSignalInfo), '("interfaceProxySignal", DBusObjectManagerClientInterfaceProxySignalSignalInfo), '("interfaceRemoved", Gio.DBusObjectManager.DBusObjectManagerInterfaceRemovedSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("objectAdded", Gio.DBusObjectManager.DBusObjectManagerObjectAddedSignalInfo), '("objectRemoved", Gio.DBusObjectManager.DBusObjectManagerObjectRemovedSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "g_dbus_object_manager_client_new_finish" g_dbus_object_manager_client_new_finish ::
Ptr Gio.AsyncResult.AsyncResult ->
Ptr (Ptr GError) ->
IO (Ptr DBusObjectManagerClient)
dBusObjectManagerClientNewFinish ::
(B.CallStack.HasCallStack, MonadIO m, Gio.AsyncResult.IsAsyncResult a) =>
a
-> m DBusObjectManagerClient
dBusObjectManagerClientNewFinish res = liftIO $ do
res' <- unsafeManagedPtrCastPtr res
onException (do
result <- propagateGError $ g_dbus_object_manager_client_new_finish res'
checkUnexpectedReturnNULL "dBusObjectManagerClientNewFinish" result
result' <- (wrapObject DBusObjectManagerClient) result
touchManagedPtr res
return result'
) (do
return ()
)
#if ENABLE_OVERLOADING
#endif
foreign import ccall "g_dbus_object_manager_client_new_for_bus_finish" g_dbus_object_manager_client_new_for_bus_finish ::
Ptr Gio.AsyncResult.AsyncResult ->
Ptr (Ptr GError) ->
IO (Ptr DBusObjectManagerClient)
dBusObjectManagerClientNewForBusFinish ::
(B.CallStack.HasCallStack, MonadIO m, Gio.AsyncResult.IsAsyncResult a) =>
a
-> m DBusObjectManagerClient
dBusObjectManagerClientNewForBusFinish res = liftIO $ do
res' <- unsafeManagedPtrCastPtr res
onException (do
result <- propagateGError $ g_dbus_object_manager_client_new_for_bus_finish res'
checkUnexpectedReturnNULL "dBusObjectManagerClientNewForBusFinish" result
result' <- (wrapObject DBusObjectManagerClient) result
touchManagedPtr res
return result'
) (do
return ()
)
#if ENABLE_OVERLOADING
#endif
foreign import ccall "g_dbus_object_manager_client_new_for_bus_sync" g_dbus_object_manager_client_new_for_bus_sync ::
CInt ->
CUInt ->
CString ->
CString ->
FunPtr Gio.Callbacks.C_DBusProxyTypeFunc ->
Ptr () ->
FunPtr GLib.Callbacks.C_DestroyNotify ->
Ptr Gio.Cancellable.Cancellable ->
Ptr (Ptr GError) ->
IO (Ptr DBusObjectManagerClient)
dBusObjectManagerClientNewForBusSync ::
(B.CallStack.HasCallStack, MonadIO m, Gio.Cancellable.IsCancellable a) =>
Gio.Enums.BusType
-> [Gio.Flags.DBusObjectManagerClientFlags]
-> T.Text
-> T.Text
-> Maybe (Gio.Callbacks.DBusProxyTypeFunc)
-> Maybe (a)
-> m DBusObjectManagerClient
dBusObjectManagerClientNewForBusSync busType flags name objectPath getProxyTypeFunc cancellable = liftIO $ do
let busType' = (fromIntegral . fromEnum) busType
let flags' = gflagsToWord flags
name' <- textToCString name
objectPath' <- textToCString objectPath
maybeGetProxyTypeFunc <- case getProxyTypeFunc of
Nothing -> return (castPtrToFunPtr nullPtr)
Just jGetProxyTypeFunc -> do
jGetProxyTypeFunc' <- Gio.Callbacks.mk_DBusProxyTypeFunc (Gio.Callbacks.wrap_DBusProxyTypeFunc Nothing (Gio.Callbacks.drop_closures_DBusProxyTypeFunc jGetProxyTypeFunc))
return jGetProxyTypeFunc'
maybeCancellable <- case cancellable of
Nothing -> return nullPtr
Just jCancellable -> do
jCancellable' <- unsafeManagedPtrCastPtr jCancellable
return jCancellable'
let getProxyTypeUserData = castFunPtrToPtr maybeGetProxyTypeFunc
let getProxyTypeDestroyNotify = safeFreeFunPtrPtr
onException (do
result <- propagateGError $ g_dbus_object_manager_client_new_for_bus_sync busType' flags' name' objectPath' maybeGetProxyTypeFunc getProxyTypeUserData getProxyTypeDestroyNotify maybeCancellable
checkUnexpectedReturnNULL "dBusObjectManagerClientNewForBusSync" result
result' <- (wrapObject DBusObjectManagerClient) result
whenJust cancellable touchManagedPtr
freeMem name'
freeMem objectPath'
return result'
) (do
freeMem name'
freeMem objectPath'
)
#if ENABLE_OVERLOADING
#endif
foreign import ccall "g_dbus_object_manager_client_new_sync" g_dbus_object_manager_client_new_sync ::
Ptr Gio.DBusConnection.DBusConnection ->
CUInt ->
CString ->
CString ->
FunPtr Gio.Callbacks.C_DBusProxyTypeFunc ->
Ptr () ->
FunPtr GLib.Callbacks.C_DestroyNotify ->
Ptr Gio.Cancellable.Cancellable ->
Ptr (Ptr GError) ->
IO (Ptr DBusObjectManagerClient)
dBusObjectManagerClientNewSync ::
(B.CallStack.HasCallStack, MonadIO m, Gio.DBusConnection.IsDBusConnection a, Gio.Cancellable.IsCancellable b) =>
a
-> [Gio.Flags.DBusObjectManagerClientFlags]
-> Maybe (T.Text)
-> T.Text
-> Maybe (Gio.Callbacks.DBusProxyTypeFunc)
-> Maybe (b)
-> m DBusObjectManagerClient
dBusObjectManagerClientNewSync connection flags name objectPath getProxyTypeFunc cancellable = liftIO $ do
connection' <- unsafeManagedPtrCastPtr connection
let flags' = gflagsToWord flags
maybeName <- case name of
Nothing -> return nullPtr
Just jName -> do
jName' <- textToCString jName
return jName'
objectPath' <- textToCString objectPath
maybeGetProxyTypeFunc <- case getProxyTypeFunc of
Nothing -> return (castPtrToFunPtr nullPtr)
Just jGetProxyTypeFunc -> do
jGetProxyTypeFunc' <- Gio.Callbacks.mk_DBusProxyTypeFunc (Gio.Callbacks.wrap_DBusProxyTypeFunc Nothing (Gio.Callbacks.drop_closures_DBusProxyTypeFunc jGetProxyTypeFunc))
return jGetProxyTypeFunc'
maybeCancellable <- case cancellable of
Nothing -> return nullPtr
Just jCancellable -> do
jCancellable' <- unsafeManagedPtrCastPtr jCancellable
return jCancellable'
let getProxyTypeUserData = castFunPtrToPtr maybeGetProxyTypeFunc
let getProxyTypeDestroyNotify = safeFreeFunPtrPtr
onException (do
result <- propagateGError $ g_dbus_object_manager_client_new_sync connection' flags' maybeName objectPath' maybeGetProxyTypeFunc getProxyTypeUserData getProxyTypeDestroyNotify maybeCancellable
checkUnexpectedReturnNULL "dBusObjectManagerClientNewSync" result
result' <- (wrapObject DBusObjectManagerClient) result
touchManagedPtr connection
whenJust cancellable touchManagedPtr
freeMem maybeName
freeMem objectPath'
return result'
) (do
freeMem maybeName
freeMem objectPath'
)
#if ENABLE_OVERLOADING
#endif
foreign import ccall "g_dbus_object_manager_client_get_connection" g_dbus_object_manager_client_get_connection ::
Ptr DBusObjectManagerClient ->
IO (Ptr Gio.DBusConnection.DBusConnection)
dBusObjectManagerClientGetConnection ::
(B.CallStack.HasCallStack, MonadIO m, IsDBusObjectManagerClient a) =>
a
-> m Gio.DBusConnection.DBusConnection
dBusObjectManagerClientGetConnection manager = liftIO $ do
manager' <- unsafeManagedPtrCastPtr manager
result <- g_dbus_object_manager_client_get_connection manager'
checkUnexpectedReturnNULL "dBusObjectManagerClientGetConnection" result
result' <- (newObject Gio.DBusConnection.DBusConnection) result
touchManagedPtr manager
return result'
#if ENABLE_OVERLOADING
data DBusObjectManagerClientGetConnectionMethodInfo
instance (signature ~ (m Gio.DBusConnection.DBusConnection), MonadIO m, IsDBusObjectManagerClient a) => O.MethodInfo DBusObjectManagerClientGetConnectionMethodInfo a signature where
overloadedMethod _ = dBusObjectManagerClientGetConnection
#endif
foreign import ccall "g_dbus_object_manager_client_get_flags" g_dbus_object_manager_client_get_flags ::
Ptr DBusObjectManagerClient ->
IO CUInt
dBusObjectManagerClientGetFlags ::
(B.CallStack.HasCallStack, MonadIO m, IsDBusObjectManagerClient a) =>
a
-> m [Gio.Flags.DBusObjectManagerClientFlags]
dBusObjectManagerClientGetFlags manager = liftIO $ do
manager' <- unsafeManagedPtrCastPtr manager
result <- g_dbus_object_manager_client_get_flags manager'
let result' = wordToGFlags result
touchManagedPtr manager
return result'
#if ENABLE_OVERLOADING
data DBusObjectManagerClientGetFlagsMethodInfo
instance (signature ~ (m [Gio.Flags.DBusObjectManagerClientFlags]), MonadIO m, IsDBusObjectManagerClient a) => O.MethodInfo DBusObjectManagerClientGetFlagsMethodInfo a signature where
overloadedMethod _ = dBusObjectManagerClientGetFlags
#endif
foreign import ccall "g_dbus_object_manager_client_get_name" g_dbus_object_manager_client_get_name ::
Ptr DBusObjectManagerClient ->
IO CString
dBusObjectManagerClientGetName ::
(B.CallStack.HasCallStack, MonadIO m, IsDBusObjectManagerClient a) =>
a
-> m T.Text
dBusObjectManagerClientGetName manager = liftIO $ do
manager' <- unsafeManagedPtrCastPtr manager
result <- g_dbus_object_manager_client_get_name manager'
checkUnexpectedReturnNULL "dBusObjectManagerClientGetName" result
result' <- cstringToText result
touchManagedPtr manager
return result'
#if ENABLE_OVERLOADING
data DBusObjectManagerClientGetNameMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsDBusObjectManagerClient a) => O.MethodInfo DBusObjectManagerClientGetNameMethodInfo a signature where
overloadedMethod _ = dBusObjectManagerClientGetName
#endif
foreign import ccall "g_dbus_object_manager_client_get_name_owner" g_dbus_object_manager_client_get_name_owner ::
Ptr DBusObjectManagerClient ->
IO CString
dBusObjectManagerClientGetNameOwner ::
(B.CallStack.HasCallStack, MonadIO m, IsDBusObjectManagerClient a) =>
a
-> m (Maybe T.Text)
dBusObjectManagerClientGetNameOwner manager = liftIO $ do
manager' <- unsafeManagedPtrCastPtr manager
result <- g_dbus_object_manager_client_get_name_owner manager'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- cstringToText result'
freeMem result'
return result''
touchManagedPtr manager
return maybeResult
#if ENABLE_OVERLOADING
data DBusObjectManagerClientGetNameOwnerMethodInfo
instance (signature ~ (m (Maybe T.Text)), MonadIO m, IsDBusObjectManagerClient a) => O.MethodInfo DBusObjectManagerClientGetNameOwnerMethodInfo a signature where
overloadedMethod _ = dBusObjectManagerClientGetNameOwner
#endif
foreign import ccall "g_dbus_object_manager_client_new" g_dbus_object_manager_client_new ::
Ptr Gio.DBusConnection.DBusConnection ->
CUInt ->
CString ->
CString ->
FunPtr Gio.Callbacks.C_DBusProxyTypeFunc ->
Ptr () ->
FunPtr GLib.Callbacks.C_DestroyNotify ->
Ptr Gio.Cancellable.Cancellable ->
FunPtr Gio.Callbacks.C_AsyncReadyCallback ->
Ptr () ->
IO ()
dBusObjectManagerClientNew ::
(B.CallStack.HasCallStack, MonadIO m, Gio.DBusConnection.IsDBusConnection a, Gio.Cancellable.IsCancellable b) =>
a
-> [Gio.Flags.DBusObjectManagerClientFlags]
-> T.Text
-> T.Text
-> Maybe (Gio.Callbacks.DBusProxyTypeFunc)
-> Maybe (b)
-> Maybe (Gio.Callbacks.AsyncReadyCallback)
-> m ()
dBusObjectManagerClientNew connection flags name objectPath getProxyTypeFunc cancellable callback = liftIO $ do
connection' <- unsafeManagedPtrCastPtr connection
let flags' = gflagsToWord flags
name' <- textToCString name
objectPath' <- textToCString objectPath
maybeGetProxyTypeFunc <- case getProxyTypeFunc of
Nothing -> return (castPtrToFunPtr nullPtr)
Just jGetProxyTypeFunc -> do
jGetProxyTypeFunc' <- Gio.Callbacks.mk_DBusProxyTypeFunc (Gio.Callbacks.wrap_DBusProxyTypeFunc Nothing (Gio.Callbacks.drop_closures_DBusProxyTypeFunc jGetProxyTypeFunc))
return jGetProxyTypeFunc'
maybeCancellable <- case cancellable of
Nothing -> return nullPtr
Just jCancellable -> do
jCancellable' <- unsafeManagedPtrCastPtr jCancellable
return jCancellable'
maybeCallback <- case callback of
Nothing -> return (castPtrToFunPtr nullPtr)
Just jCallback -> do
ptrcallback <- callocMem :: IO (Ptr (FunPtr Gio.Callbacks.C_AsyncReadyCallback))
jCallback' <- Gio.Callbacks.mk_AsyncReadyCallback (Gio.Callbacks.wrap_AsyncReadyCallback (Just ptrcallback) (Gio.Callbacks.drop_closures_AsyncReadyCallback jCallback))
poke ptrcallback jCallback'
return jCallback'
let getProxyTypeUserData = castFunPtrToPtr maybeGetProxyTypeFunc
let getProxyTypeDestroyNotify = safeFreeFunPtrPtr
let userData = nullPtr
g_dbus_object_manager_client_new connection' flags' name' objectPath' maybeGetProxyTypeFunc getProxyTypeUserData getProxyTypeDestroyNotify maybeCancellable maybeCallback userData
touchManagedPtr connection
whenJust cancellable touchManagedPtr
freeMem name'
freeMem objectPath'
return ()
#if ENABLE_OVERLOADING
#endif
foreign import ccall "g_dbus_object_manager_client_new_for_bus" g_dbus_object_manager_client_new_for_bus ::
CInt ->
CUInt ->
CString ->
CString ->
FunPtr Gio.Callbacks.C_DBusProxyTypeFunc ->
Ptr () ->
FunPtr GLib.Callbacks.C_DestroyNotify ->
Ptr Gio.Cancellable.Cancellable ->
FunPtr Gio.Callbacks.C_AsyncReadyCallback ->
Ptr () ->
IO ()
dBusObjectManagerClientNewForBus ::
(B.CallStack.HasCallStack, MonadIO m, Gio.Cancellable.IsCancellable a) =>
Gio.Enums.BusType
-> [Gio.Flags.DBusObjectManagerClientFlags]
-> T.Text
-> T.Text
-> Maybe (Gio.Callbacks.DBusProxyTypeFunc)
-> Maybe (a)
-> Maybe (Gio.Callbacks.AsyncReadyCallback)
-> m ()
dBusObjectManagerClientNewForBus busType flags name objectPath getProxyTypeFunc cancellable callback = liftIO $ do
let busType' = (fromIntegral . fromEnum) busType
let flags' = gflagsToWord flags
name' <- textToCString name
objectPath' <- textToCString objectPath
maybeGetProxyTypeFunc <- case getProxyTypeFunc of
Nothing -> return (castPtrToFunPtr nullPtr)
Just jGetProxyTypeFunc -> do
jGetProxyTypeFunc' <- Gio.Callbacks.mk_DBusProxyTypeFunc (Gio.Callbacks.wrap_DBusProxyTypeFunc Nothing (Gio.Callbacks.drop_closures_DBusProxyTypeFunc jGetProxyTypeFunc))
return jGetProxyTypeFunc'
maybeCancellable <- case cancellable of
Nothing -> return nullPtr
Just jCancellable -> do
jCancellable' <- unsafeManagedPtrCastPtr jCancellable
return jCancellable'
maybeCallback <- case callback of
Nothing -> return (castPtrToFunPtr nullPtr)
Just jCallback -> do
ptrcallback <- callocMem :: IO (Ptr (FunPtr Gio.Callbacks.C_AsyncReadyCallback))
jCallback' <- Gio.Callbacks.mk_AsyncReadyCallback (Gio.Callbacks.wrap_AsyncReadyCallback (Just ptrcallback) (Gio.Callbacks.drop_closures_AsyncReadyCallback jCallback))
poke ptrcallback jCallback'
return jCallback'
let getProxyTypeUserData = castFunPtrToPtr maybeGetProxyTypeFunc
let getProxyTypeDestroyNotify = safeFreeFunPtrPtr
let userData = nullPtr
g_dbus_object_manager_client_new_for_bus busType' flags' name' objectPath' maybeGetProxyTypeFunc getProxyTypeUserData getProxyTypeDestroyNotify maybeCancellable maybeCallback userData
whenJust cancellable touchManagedPtr
freeMem name'
freeMem objectPath'
return ()
#if ENABLE_OVERLOADING
#endif