gi-gio-2.0.11: 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.DBusObject

Contents

Description

The DBusObject type is the base type for D-Bus objects on both the service side (see DBusObjectSkeleton) and the client side (see DBusObjectProxy). It is essentially just a container of interfaces.

Synopsis

Exported types

Methods

getInterface

dBusObjectGetInterface Source #

Arguments

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

object: A DBusObject.

-> Text

interfaceName: A D-Bus interface name.

-> m DBusInterface

Returns: Nothing if not found, otherwise a DBusInterface that must be freed with objectUnref.

Gets the D-Bus interface with name interfaceName associated with object, if any.

Since: 2.30

getInterfaces

dBusObjectGetInterfaces Source #

Arguments

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

object: A DBusObject.

-> m [DBusInterface]

Returns: A list of DBusInterface instances. The returned list must be freed by g_list_free() after each element has been freed with objectUnref.

Gets the D-Bus interfaces associated with object.

Since: 2.30

getObjectPath

dBusObjectGetObjectPath Source #

Arguments

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

object: A DBusObject.

-> m Text

Returns: A string owned by object. Do not free.

Gets the object path for object.

Since: 2.30

Signals

interfaceAdded

interfaceRemoved