gi-gio-2.0.32: Gio bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
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

newtype DBusInterface Source #

Memory-managed wrapper type.

Constructors

DBusInterface (ManagedPtr DBusInterface) 

Instances

Instances details
Eq DBusInterface Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

GObject DBusInterface Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

ManagedPtrNewtype DBusInterface Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

Methods

toManagedPtr :: DBusInterface -> ManagedPtr DBusInterface

TypedObject DBusInterface Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

Methods

glibType :: IO GType

HasParentTypes DBusInterface Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

IsGValue (Maybe DBusInterface) Source #

Convert DBusInterface to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gio.Interfaces.DBusInterface

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe DBusInterface -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe DBusInterface)

type ParentTypes DBusInterface Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

type ParentTypes DBusInterface = '[Object]

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

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 (Maybe 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