gi-gio-2.0.27: Gio bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

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

Exported types

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

Instances details
(GObject o, IsDescendantOf DBusInterface o) => IsDBusInterface o Source # 
Instance details

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

dBusInterfaceGetInfo Source #

Arguments

:: (HasCallStack, MonadIO m, IsDBusInterface a) 
=> a

interface_: An exported D-Bus interface.

-> m DBusInterfaceInfo

Returns: A DBusInterfaceInfo. Do not free.

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

interface_: An exported D-Bus interface.

-> m DBusObject

Returns: A DBusObject or Nothing. The returned reference should be freed with objectUnref.

Gets the DBusObject that interface_ belongs to, if any.

Since: 2.32

setObject

dBusInterfaceSetObject Source #

Arguments

:: (HasCallStack, MonadIO m, IsDBusInterface a, IsDBusObject b) 
=> a

interface_: An exported D-Bus interface.

-> Maybe b

object: A DBusObject or Nothing.

-> m () 

Sets the DBusObject for interface_ to object.

Note that interface_ will hold a weak reference to object.

Since: 2.30