Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
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)
- 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 (Maybe DBusObject)
- dBusInterfaceSetObject :: (HasCallStack, MonadIO m, IsDBusInterface a, IsDBusObject b) => a -> Maybe b -> m ()
Exported types
newtype DBusInterface Source #
Memory-managed wrapper type.
Instances
Eq DBusInterface Source # | |
Defined in GI.Gio.Interfaces.DBusInterface (==) :: DBusInterface -> DBusInterface -> Bool # (/=) :: DBusInterface -> DBusInterface -> Bool # | |
GObject DBusInterface Source # | |
Defined in GI.Gio.Interfaces.DBusInterface | |
ManagedPtrNewtype DBusInterface Source # | |
Defined in GI.Gio.Interfaces.DBusInterface | |
TypedObject DBusInterface Source # | |
Defined in GI.Gio.Interfaces.DBusInterface | |
HasParentTypes DBusInterface Source # | |
Defined in GI.Gio.Interfaces.DBusInterface | |
IsGValue (Maybe DBusInterface) Source # | Convert |
Defined in GI.Gio.Interfaces.DBusInterface gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe DBusInterface -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe DBusInterface) # | |
type ParentTypes DBusInterface Source # | |
Defined in GI.Gio.Interfaces.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
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
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 (Maybe 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