gi-gio-2.0.18: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Interfaces.DBusInterface

Contents

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

newtype DBusInterface Source #

Memory-managed wrapper type.

class GObject o => IsDBusInterface o Source #

Type class for types which can be safely cast to DBusInterface, for instance with toDBusInterface.

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

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