Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
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
).
Since: 2.30
Synopsis
- newtype DBusInterface = DBusInterface (ManagedPtr DBusInterface)
- noDBusInterface :: Maybe DBusInterface
- class (GObject o, IsDescendantOf DBusInterface o) => IsDBusInterface o
- toDBusInterface :: (MonadIO m, IsDBusInterface o) => o -> m DBusInterface
- dBusInterfaceGetInfo :: (HasCallStack, MonadIO m, IsDBusInterface a) => a -> m DBusInterfaceInfo
- dBusInterfaceGetObject :: (HasCallStack, MonadIO m, IsDBusInterface a) => a -> m DBusObject
- dBusInterfaceSetObject :: (HasCallStack, MonadIO m, IsDBusInterface a, IsDBusObject b) => a -> Maybe b -> m ()
Exported types
newtype DBusInterface Source #
Memory-managed wrapper type.
Instances
GObject DBusInterface Source # | |
Defined in GI.Gio.Interfaces.DBusInterface gobjectType :: IO GType # | |
HasParentTypes DBusInterface Source # | |
Defined in GI.Gio.Interfaces.DBusInterface | |
type ParentTypes DBusInterface Source # | |
Defined in GI.Gio.Interfaces.DBusInterface |
noDBusInterface :: Maybe DBusInterface Source #
A convenience alias for Nothing
:: Maybe
DBusInterface
.
class (GObject o, IsDescendantOf DBusInterface o) => IsDBusInterface o Source #
Type class for types which can be safely cast to DBusInterface
, for instance with toDBusInterface
.
Instances
(GObject o, IsDescendantOf DBusInterface o) => IsDBusInterface o Source # | |
Defined in GI.Gio.Interfaces.DBusInterface |
toDBusInterface :: (MonadIO m, IsDBusInterface o) => o -> m DBusInterface Source #
Cast to DBusInterface
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
getInfo
:: (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
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
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