| 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 |
GI.Gio.Interfaces.DBusInterface
Description
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.
Constructors
| DBusInterface (ManagedPtr DBusInterface) |
Instances
| Eq DBusInterface Source # | |
Defined in GI.Gio.Interfaces.DBusInterface Methods (==) :: DBusInterface -> DBusInterface -> Bool # (/=) :: DBusInterface -> DBusInterface -> Bool # | |
| GObject DBusInterface Source # | |
Defined in GI.Gio.Interfaces.DBusInterface Methods gobjectType :: IO GType # | |
| IsGValue DBusInterface Source # | Convert |
Defined in GI.Gio.Interfaces.DBusInterface | |
| 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
Overloaded methods
getInfo
Arguments
| :: (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 #
Arguments
| :: (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 #
Arguments
| :: (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