gio.dbus_object_mixin

Module for DBusObject interface mixin

Templates 2

tmplDBusObjectT()

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

Functions
gio.dbus_interface.DBusInterface getInterface(string interfaceName)

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

Parameters

interfaceNameA D-Bus interface name.

Returns

null if not found, otherwise a

#GDBusInterface that must be freed with gobject.object.ObjectWrap.unref.

Gets the D-Bus interfaces associated with object.

Returns

A list of #GDBusInterface instances.

The returned list must be freed by glib.list.List.free after each element has been freed with gobject.object.ObjectWrap.unref.

string getObjectPath()

Gets the object path for object.

Returns

A string owned by object. Do not free.
gulong connectInterfaceAdded(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gio.dbus_interface.DBusInterface))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.dbus_object.DBusObject))) && Parameters!T.length < 3)

Connect to InterfaceAdded signal.

Emitted when interface is added to object.

Parameters

callbacksignal callback delegate or function to connect void callback(gio.dbus_interface.DBusInterface interface_, gio.dbus_object.DBusObject dBusObject) interface_ The #GDBusInterface that was added. (optional) dBusObject the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID
gulong connectInterfaceRemoved(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gio.dbus_interface.DBusInterface))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.dbus_object.DBusObject))) && Parameters!T.length < 3)

Connect to InterfaceRemoved signal.

Emitted when interface is removed from object.

Parameters

callbacksignal callback delegate or function to connect void callback(gio.dbus_interface.DBusInterface interface_, gio.dbus_object.DBusObject dBusObject) interface_ The #GDBusInterface that was removed. (optional) dBusObject the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID
tmplDBusObjectGidBuilderT()

Fluent builder implementation template for gio.dbus_object.DBusObject