Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
The DBusObjectManager
type is the base type for service- and
client-side implementations of the standardized
org.freedesktop.DBus.ObjectManager
interface.
See DBusObjectManagerClient
for the client-side implementation
and DBusObjectManagerServer
for the service-side implementation.
Synopsis
- newtype DBusObjectManager = DBusObjectManager (ManagedPtr DBusObjectManager)
- noDBusObjectManager :: Maybe DBusObjectManager
- class (GObject o, IsDescendantOf DBusObjectManager o) => IsDBusObjectManager o
- toDBusObjectManager :: (MonadIO m, IsDBusObjectManager o) => o -> m DBusObjectManager
- dBusObjectManagerGetInterface :: (HasCallStack, MonadIO m, IsDBusObjectManager a) => a -> Text -> Text -> m DBusInterface
- dBusObjectManagerGetObject :: (HasCallStack, MonadIO m, IsDBusObjectManager a) => a -> Text -> m DBusObject
- dBusObjectManagerGetObjectPath :: (HasCallStack, MonadIO m, IsDBusObjectManager a) => a -> m Text
- dBusObjectManagerGetObjects :: (HasCallStack, MonadIO m, IsDBusObjectManager a) => a -> m [DBusObject]
- type C_DBusObjectManagerInterfaceAddedCallback = Ptr () -> Ptr DBusObject -> Ptr DBusInterface -> Ptr () -> IO ()
- type DBusObjectManagerInterfaceAddedCallback = DBusObject -> DBusInterface -> IO ()
- afterDBusObjectManagerInterfaceAdded :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerInterfaceAddedCallback -> m SignalHandlerId
- genClosure_DBusObjectManagerInterfaceAdded :: MonadIO m => DBusObjectManagerInterfaceAddedCallback -> m (GClosure C_DBusObjectManagerInterfaceAddedCallback)
- mk_DBusObjectManagerInterfaceAddedCallback :: C_DBusObjectManagerInterfaceAddedCallback -> IO (FunPtr C_DBusObjectManagerInterfaceAddedCallback)
- noDBusObjectManagerInterfaceAddedCallback :: Maybe DBusObjectManagerInterfaceAddedCallback
- onDBusObjectManagerInterfaceAdded :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerInterfaceAddedCallback -> m SignalHandlerId
- wrap_DBusObjectManagerInterfaceAddedCallback :: DBusObjectManagerInterfaceAddedCallback -> C_DBusObjectManagerInterfaceAddedCallback
- type C_DBusObjectManagerInterfaceRemovedCallback = Ptr () -> Ptr DBusObject -> Ptr DBusInterface -> Ptr () -> IO ()
- type DBusObjectManagerInterfaceRemovedCallback = DBusObject -> DBusInterface -> IO ()
- afterDBusObjectManagerInterfaceRemoved :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerInterfaceRemovedCallback -> m SignalHandlerId
- genClosure_DBusObjectManagerInterfaceRemoved :: MonadIO m => DBusObjectManagerInterfaceRemovedCallback -> m (GClosure C_DBusObjectManagerInterfaceRemovedCallback)
- mk_DBusObjectManagerInterfaceRemovedCallback :: C_DBusObjectManagerInterfaceRemovedCallback -> IO (FunPtr C_DBusObjectManagerInterfaceRemovedCallback)
- noDBusObjectManagerInterfaceRemovedCallback :: Maybe DBusObjectManagerInterfaceRemovedCallback
- onDBusObjectManagerInterfaceRemoved :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerInterfaceRemovedCallback -> m SignalHandlerId
- wrap_DBusObjectManagerInterfaceRemovedCallback :: DBusObjectManagerInterfaceRemovedCallback -> C_DBusObjectManagerInterfaceRemovedCallback
- type C_DBusObjectManagerObjectAddedCallback = Ptr () -> Ptr DBusObject -> Ptr () -> IO ()
- type DBusObjectManagerObjectAddedCallback = DBusObject -> IO ()
- afterDBusObjectManagerObjectAdded :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerObjectAddedCallback -> m SignalHandlerId
- genClosure_DBusObjectManagerObjectAdded :: MonadIO m => DBusObjectManagerObjectAddedCallback -> m (GClosure C_DBusObjectManagerObjectAddedCallback)
- mk_DBusObjectManagerObjectAddedCallback :: C_DBusObjectManagerObjectAddedCallback -> IO (FunPtr C_DBusObjectManagerObjectAddedCallback)
- noDBusObjectManagerObjectAddedCallback :: Maybe DBusObjectManagerObjectAddedCallback
- onDBusObjectManagerObjectAdded :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerObjectAddedCallback -> m SignalHandlerId
- wrap_DBusObjectManagerObjectAddedCallback :: DBusObjectManagerObjectAddedCallback -> C_DBusObjectManagerObjectAddedCallback
- type C_DBusObjectManagerObjectRemovedCallback = Ptr () -> Ptr DBusObject -> Ptr () -> IO ()
- type DBusObjectManagerObjectRemovedCallback = DBusObject -> IO ()
- afterDBusObjectManagerObjectRemoved :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerObjectRemovedCallback -> m SignalHandlerId
- genClosure_DBusObjectManagerObjectRemoved :: MonadIO m => DBusObjectManagerObjectRemovedCallback -> m (GClosure C_DBusObjectManagerObjectRemovedCallback)
- mk_DBusObjectManagerObjectRemovedCallback :: C_DBusObjectManagerObjectRemovedCallback -> IO (FunPtr C_DBusObjectManagerObjectRemovedCallback)
- noDBusObjectManagerObjectRemovedCallback :: Maybe DBusObjectManagerObjectRemovedCallback
- onDBusObjectManagerObjectRemoved :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerObjectRemovedCallback -> m SignalHandlerId
- wrap_DBusObjectManagerObjectRemovedCallback :: DBusObjectManagerObjectRemovedCallback -> C_DBusObjectManagerObjectRemovedCallback
Exported types
newtype DBusObjectManager Source #
Memory-managed wrapper type.
Instances
Eq DBusObjectManager Source # | |
Defined in GI.Gio.Interfaces.DBusObjectManager (==) :: DBusObjectManager -> DBusObjectManager -> Bool # (/=) :: DBusObjectManager -> DBusObjectManager -> Bool # | |
GObject DBusObjectManager Source # | |
Defined in GI.Gio.Interfaces.DBusObjectManager gobjectType :: IO GType # | |
IsGValue DBusObjectManager Source # | Convert |
Defined in GI.Gio.Interfaces.DBusObjectManager toGValue :: DBusObjectManager -> IO GValue # fromGValue :: GValue -> IO DBusObjectManager # | |
HasParentTypes DBusObjectManager Source # | |
Defined in GI.Gio.Interfaces.DBusObjectManager | |
type ParentTypes DBusObjectManager Source # | |
Defined in GI.Gio.Interfaces.DBusObjectManager |
noDBusObjectManager :: Maybe DBusObjectManager Source #
A convenience alias for Nothing
:: Maybe
DBusObjectManager
.
class (GObject o, IsDescendantOf DBusObjectManager o) => IsDBusObjectManager o Source #
Type class for types which can be safely cast to DBusObjectManager
, for instance with toDBusObjectManager
.
Instances
(GObject o, IsDescendantOf DBusObjectManager o) => IsDBusObjectManager o Source # | |
Defined in GI.Gio.Interfaces.DBusObjectManager |
toDBusObjectManager :: (MonadIO m, IsDBusObjectManager o) => o -> m DBusObjectManager Source #
Cast to DBusObjectManager
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
getInterface
dBusObjectManagerGetInterface Source #
:: (HasCallStack, MonadIO m, IsDBusObjectManager a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m DBusInterface | Returns: A |
Gets the interface proxy for interfaceName
at objectPath
, if
any.
Since: 2.30
getObject
dBusObjectManagerGetObject Source #
:: (HasCallStack, MonadIO m, IsDBusObjectManager a) | |
=> a |
|
-> Text |
|
-> m DBusObject | Returns: A |
Gets the DBusObjectProxy
at objectPath
, if any.
Since: 2.30
getObjectPath
dBusObjectManagerGetObjectPath Source #
:: (HasCallStack, MonadIO m, IsDBusObjectManager a) | |
=> a |
|
-> m Text | Returns: A string owned by |
Gets the object path that manager
is for.
Since: 2.30
getObjects
dBusObjectManagerGetObjects Source #
:: (HasCallStack, MonadIO m, IsDBusObjectManager a) | |
=> a |
|
-> m [DBusObject] | Returns: A list of
|
Gets all DBusObject
objects known to manager
.
Since: 2.30
Signals
interfaceAdded
type C_DBusObjectManagerInterfaceAddedCallback = Ptr () -> Ptr DBusObject -> Ptr DBusInterface -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DBusObjectManagerInterfaceAddedCallback Source #
= DBusObject |
|
-> DBusInterface |
|
-> IO () |
Emitted when interface
is added to object
.
This signal exists purely as a convenience to avoid having to
connect signals to all objects managed by manager
.
Since: 2.30
afterDBusObjectManagerInterfaceAdded :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerInterfaceAddedCallback -> m SignalHandlerId Source #
Connect a signal handler for the interfaceAdded signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dBusObjectManager #interfaceAdded callback
genClosure_DBusObjectManagerInterfaceAdded :: MonadIO m => DBusObjectManagerInterfaceAddedCallback -> m (GClosure C_DBusObjectManagerInterfaceAddedCallback) Source #
Wrap the callback into a GClosure
.
mk_DBusObjectManagerInterfaceAddedCallback :: C_DBusObjectManagerInterfaceAddedCallback -> IO (FunPtr C_DBusObjectManagerInterfaceAddedCallback) Source #
Generate a function pointer callable from C code, from a C_DBusObjectManagerInterfaceAddedCallback
.
noDBusObjectManagerInterfaceAddedCallback :: Maybe DBusObjectManagerInterfaceAddedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DBusObjectManagerInterfaceAddedCallback
onDBusObjectManagerInterfaceAdded :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerInterfaceAddedCallback -> m SignalHandlerId Source #
Connect a signal handler for the interfaceAdded signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dBusObjectManager #interfaceAdded callback
wrap_DBusObjectManagerInterfaceAddedCallback :: DBusObjectManagerInterfaceAddedCallback -> C_DBusObjectManagerInterfaceAddedCallback Source #
interfaceRemoved
type C_DBusObjectManagerInterfaceRemovedCallback = Ptr () -> Ptr DBusObject -> Ptr DBusInterface -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DBusObjectManagerInterfaceRemovedCallback Source #
= DBusObject |
|
-> DBusInterface |
|
-> IO () |
Emitted when interface
has been removed from object
.
This signal exists purely as a convenience to avoid having to
connect signals to all objects managed by manager
.
Since: 2.30
afterDBusObjectManagerInterfaceRemoved :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerInterfaceRemovedCallback -> m SignalHandlerId Source #
Connect a signal handler for the interfaceRemoved signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dBusObjectManager #interfaceRemoved callback
genClosure_DBusObjectManagerInterfaceRemoved :: MonadIO m => DBusObjectManagerInterfaceRemovedCallback -> m (GClosure C_DBusObjectManagerInterfaceRemovedCallback) Source #
Wrap the callback into a GClosure
.
mk_DBusObjectManagerInterfaceRemovedCallback :: C_DBusObjectManagerInterfaceRemovedCallback -> IO (FunPtr C_DBusObjectManagerInterfaceRemovedCallback) Source #
Generate a function pointer callable from C code, from a C_DBusObjectManagerInterfaceRemovedCallback
.
noDBusObjectManagerInterfaceRemovedCallback :: Maybe DBusObjectManagerInterfaceRemovedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DBusObjectManagerInterfaceRemovedCallback
onDBusObjectManagerInterfaceRemoved :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerInterfaceRemovedCallback -> m SignalHandlerId Source #
Connect a signal handler for the interfaceRemoved signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dBusObjectManager #interfaceRemoved callback
wrap_DBusObjectManagerInterfaceRemovedCallback :: DBusObjectManagerInterfaceRemovedCallback -> C_DBusObjectManagerInterfaceRemovedCallback Source #
objectAdded
type C_DBusObjectManagerObjectAddedCallback = Ptr () -> Ptr DBusObject -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DBusObjectManagerObjectAddedCallback Source #
= DBusObject |
|
-> IO () |
Emitted when object
is added to manager
.
Since: 2.30
afterDBusObjectManagerObjectAdded :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerObjectAddedCallback -> m SignalHandlerId Source #
Connect a signal handler for the objectAdded signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dBusObjectManager #objectAdded callback
genClosure_DBusObjectManagerObjectAdded :: MonadIO m => DBusObjectManagerObjectAddedCallback -> m (GClosure C_DBusObjectManagerObjectAddedCallback) Source #
Wrap the callback into a GClosure
.
mk_DBusObjectManagerObjectAddedCallback :: C_DBusObjectManagerObjectAddedCallback -> IO (FunPtr C_DBusObjectManagerObjectAddedCallback) Source #
Generate a function pointer callable from C code, from a C_DBusObjectManagerObjectAddedCallback
.
noDBusObjectManagerObjectAddedCallback :: Maybe DBusObjectManagerObjectAddedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DBusObjectManagerObjectAddedCallback
onDBusObjectManagerObjectAdded :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerObjectAddedCallback -> m SignalHandlerId Source #
Connect a signal handler for the objectAdded signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dBusObjectManager #objectAdded callback
wrap_DBusObjectManagerObjectAddedCallback :: DBusObjectManagerObjectAddedCallback -> C_DBusObjectManagerObjectAddedCallback Source #
objectRemoved
type C_DBusObjectManagerObjectRemovedCallback = Ptr () -> Ptr DBusObject -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DBusObjectManagerObjectRemovedCallback Source #
= DBusObject |
|
-> IO () |
Emitted when object
is removed from manager
.
Since: 2.30
afterDBusObjectManagerObjectRemoved :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerObjectRemovedCallback -> m SignalHandlerId Source #
Connect a signal handler for the objectRemoved signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dBusObjectManager #objectRemoved callback
genClosure_DBusObjectManagerObjectRemoved :: MonadIO m => DBusObjectManagerObjectRemovedCallback -> m (GClosure C_DBusObjectManagerObjectRemovedCallback) Source #
Wrap the callback into a GClosure
.
mk_DBusObjectManagerObjectRemovedCallback :: C_DBusObjectManagerObjectRemovedCallback -> IO (FunPtr C_DBusObjectManagerObjectRemovedCallback) Source #
Generate a function pointer callable from C code, from a C_DBusObjectManagerObjectRemovedCallback
.
noDBusObjectManagerObjectRemovedCallback :: Maybe DBusObjectManagerObjectRemovedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DBusObjectManagerObjectRemovedCallback
onDBusObjectManagerObjectRemoved :: (IsDBusObjectManager a, MonadIO m) => a -> DBusObjectManagerObjectRemovedCallback -> m SignalHandlerId Source #
Connect a signal handler for the objectRemoved signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dBusObjectManager #objectRemoved callback