Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gio.Interfaces.DBusInterface
Description
Base type for D-Bus interfaces.
The GDBusInterface
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)
- class (GObject o, IsDescendantOf DBusInterface o) => IsDBusInterface o
- toDBusInterface :: (MonadIO m, IsDBusInterface o) => o -> m DBusInterface
- type family ResolveDBusInterfaceMethod (t :: Symbol) o where ...
- data DBusInterfaceGetInfoMethodInfo
- dBusInterfaceGetInfo :: (HasCallStack, MonadIO m, IsDBusInterface a) => a -> m DBusInterfaceInfo
- data DBusInterfaceGetObjectMethodInfo
- dBusInterfaceGetObject :: (HasCallStack, MonadIO m, IsDBusInterface a) => a -> m (Maybe DBusObject)
- data DBusInterfaceSetObjectMethodInfo
- 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
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getInfo, getObject, getProperty, getQdata.
Setters
type family ResolveDBusInterfaceMethod (t :: Symbol) o where ... Source #
Equations
getInfo
data DBusInterfaceGetInfoMethodInfo Source #
Instances
(signature ~ m DBusInterfaceInfo, MonadIO m, IsDBusInterface a) => OverloadedMethod DBusInterfaceGetInfoMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.DBusInterface Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusInterfaceGetInfoMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.DBusInterface Methods |
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
data DBusInterfaceGetObjectMethodInfo Source #
Instances
(signature ~ m (Maybe DBusObject), MonadIO m, IsDBusInterface a) => OverloadedMethod DBusInterfaceGetObjectMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.DBusInterface Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusInterfaceGetObjectMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.DBusInterface Methods |
dBusInterfaceGetObject Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusInterface a) | |
=> a |
|
-> m (Maybe DBusObject) | Returns: A |
Gets the DBusObject
that interface_
belongs to, if any.
Since: 2.32
setObject
data DBusInterfaceSetObjectMethodInfo Source #
Instances
(signature ~ (Maybe b -> m ()), MonadIO m, IsDBusInterface a, IsDBusObject b) => OverloadedMethod DBusInterfaceSetObjectMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.DBusInterface Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusInterfaceSetObjectMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.DBusInterface Methods |
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