gi-gio
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Interfaces.DBusInterface

Description

Base type for D-Bus interfaces.

The GDBusInterface 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.

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

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

HasAttributeList DBusInterface Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

(info ~ ResolveDBusInterfaceMethod t DBusInterface, OverloadedMethod info DBusInterface p, HasField t DBusInterface p) => HasField (t :: Symbol) DBusInterface (p :: Type) Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

Methods

getField :: DBusInterface -> p #

(info ~ ResolveDBusInterfaceMethod t DBusInterface, OverloadedMethodInfo info DBusInterface) => IsLabel t (MethodProxy info DBusInterface) Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

(info ~ ResolveDBusInterfaceMethod t DBusInterface, OverloadedMethod info DBusInterface p) => IsLabel t (DBusInterface -> p) Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

Methods

fromLabel :: DBusInterface -> p #

IsGValue (Maybe DBusInterface) Source #

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

Instance details

Defined in GI.Gio.Interfaces.DBusInterface

type AttributeList DBusInterface Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

type ParentTypes DBusInterface Source # 
Instance details

Defined in GI.Gio.Interfaces.DBusInterface

type SignalList DBusInterface Source # 
Instance details

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

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

type family ResolveDBusInterfaceMethod (t :: Symbol) o where ... Source #

Equations

ResolveDBusInterfaceMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveDBusInterfaceMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveDBusInterfaceMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveDBusInterfaceMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveDBusInterfaceMethod "getv" o = ObjectGetvMethodInfo 
ResolveDBusInterfaceMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveDBusInterfaceMethod "notify" o = ObjectNotifyMethodInfo 
ResolveDBusInterfaceMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveDBusInterfaceMethod "ref" o = ObjectRefMethodInfo 
ResolveDBusInterfaceMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveDBusInterfaceMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveDBusInterfaceMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveDBusInterfaceMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveDBusInterfaceMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveDBusInterfaceMethod "unref" o = ObjectUnrefMethodInfo 
ResolveDBusInterfaceMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveDBusInterfaceMethod "getData" o = ObjectGetDataMethodInfo 
ResolveDBusInterfaceMethod "getInfo" o = DBusInterfaceGetInfoMethodInfo 
ResolveDBusInterfaceMethod "getObject" o = DBusInterfaceGetObjectMethodInfo 
ResolveDBusInterfaceMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveDBusInterfaceMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveDBusInterfaceMethod "setData" o = ObjectSetDataMethodInfo 
ResolveDBusInterfaceMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveDBusInterfaceMethod "setObject" o = DBusInterfaceSetObjectMethodInfo 
ResolveDBusInterfaceMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveDBusInterfaceMethod l o = MethodResolutionFailed l o :: Type 

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