Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
The DBusInterface
type is the base type for D-Bus interfaces both
on the service side (see DBusInterfaceSkeleton
) and client side
(see DBusProxy
).
- newtype DBusInterface = DBusInterface (ManagedPtr DBusInterface)
- noDBusInterface :: Maybe DBusInterface
- class GObject o => IsDBusInterface o
- toDBusInterface :: IsDBusInterface o => o -> IO DBusInterface
- data DBusInterfaceGetInfoMethodInfo
- dBusInterfaceGetInfo :: (HasCallStack, MonadIO m, IsDBusInterface a) => a -> m DBusInterfaceInfo
- data DBusInterfaceGetObjectMethodInfo
- dBusInterfaceGetObject :: (HasCallStack, MonadIO m, IsDBusInterface a) => a -> m DBusObject
- data DBusInterfaceSetObjectMethodInfo
- dBusInterfaceSetObject :: (HasCallStack, MonadIO m, IsDBusInterface a, IsDBusObject b) => a -> Maybe b -> m ()
Exported types
newtype DBusInterface Source #
GObject DBusInterface Source # | |
IsObject DBusInterface Source # | |
IsDBusInterface DBusInterface Source # | |
((~) * info (ResolveDBusInterfaceMethod t DBusInterface), MethodInfo * info DBusInterface p) => IsLabel t (DBusInterface -> p) Source # | |
((~) * info (ResolveDBusInterfaceMethod t DBusInterface), MethodInfo * info DBusInterface p) => IsLabelProxy t (DBusInterface -> p) Source # | |
HasAttributeList * DBusInterface Source # | |
type AttributeList DBusInterface Source # | |
type SignalList DBusInterface Source # | |
class GObject o => IsDBusInterface o Source #
toDBusInterface :: IsDBusInterface o => o -> IO DBusInterface Source #
Methods
getInfo
data DBusInterfaceGetInfoMethodInfo Source #
((~) * signature (m DBusInterfaceInfo), MonadIO m, IsDBusInterface a) => MethodInfo * DBusInterfaceGetInfoMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDBusInterface a) | |
=> a |
|
-> m DBusInterfaceInfo | Returns: A |
Gets D-Bus introspection information for the D-Bus interface
implemented by interface_
.
Since: 2.30
getObject
data DBusInterfaceGetObjectMethodInfo Source #
((~) * signature (m DBusObject), MonadIO m, IsDBusInterface a) => MethodInfo * DBusInterfaceGetObjectMethodInfo a signature Source # | |
dBusInterfaceGetObject Source #
:: (HasCallStack, MonadIO m, IsDBusInterface a) | |
=> a |
|
-> m DBusObject | Returns: A |
Gets the DBusObject
that interface_
belongs to, if any.
Since: 2.32
setObject
data DBusInterfaceSetObjectMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsDBusInterface a, IsDBusObject b) => MethodInfo * DBusInterfaceSetObjectMethodInfo a signature Source # | |
dBusInterfaceSetObject Source #
:: (HasCallStack, MonadIO m, IsDBusInterface a, IsDBusObject b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the DBusObject
for interface_
to object
.
Note that interface_
will hold a weak reference to object
.
Since: 2.30