gio.dbus_object_manager_mixin

Module for [DBusObjectManager] interface mixin

Templates 2

tmplDBusObjectManagerT()

The [gio.dbus_object_manager.DBusObjectManager] type is the base type for service- and client-side implementations of the standardized

org.freedesktop.DBus.ObjectManager

interface.

See [gio.dbus_object_manager_client.DBusObjectManagerClient] for the client-side implementation and [gio.dbus_object_manager_server.DBusObjectManagerServer] for the service-side implementation.

Functions
gio.dbus_interface.DBusInterface getInterface(string objectPath, string interfaceName)

Gets the interface proxy for interface_name at object_path, if any.

Parameters

objectPathObject path to look up.
interfaceNameD-Bus interface name to look up.

Returns

A #GDBusInterface instance or null. Free

with [gobject.object.ObjectWrap.unref].

gio.dbus_object.DBusObject getObject(string objectPath)

Gets the #GDBusObject at object_path, if any.

Parameters

objectPathObject path to look up.

Returns

A #GDBusObject or null. Free with

[gobject.object.ObjectWrap.unref].

string getObjectPath()

Gets the object path that manager is for.

Returns

A string owned by manager. Do not free.

Gets all #GDBusObject objects known to manager.

Returns

A list of

#GDBusObject objects. The returned list should be freed with [glib.list.List.free] after each element has been freed with [gobject.object.ObjectWrap.unref].

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_object.DBusObject))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.dbus_interface.DBusInterface))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gio.dbus_object_manager.DBusObjectManager))) && Parameters!T.length < 4)

Connect to InterfaceAdded signal.

Emitted when interface is added to object.

This signal exists purely as a convenience to avoid having to connect signals to all objects managed by manager.

Parameters

callbacksignal callback delegate or function to connect void callback(gio.dbus_object.DBusObject object, gio.dbus_interface.DBusInterface interface_, gio.dbus_object_manager.DBusObjectManager dBusObjectManager) object The #GDBusObject on which an interface was added. (optional) interface_ The #GDBusInterface that was added. (optional) dBusObjectManager 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_object.DBusObject))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.dbus_interface.DBusInterface))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gio.dbus_object_manager.DBusObjectManager))) && Parameters!T.length < 4)

Connect to InterfaceRemoved signal.

Emitted when interface has been removed from object.

This signal exists purely as a convenience to avoid having to connect signals to all objects managed by manager.

Parameters

callbacksignal callback delegate or function to connect void callback(gio.dbus_object.DBusObject object, gio.dbus_interface.DBusInterface interface_, gio.dbus_object_manager.DBusObjectManager dBusObjectManager) object The #GDBusObject on which an interface was removed. (optional) interface_ The #GDBusInterface that was removed. (optional) dBusObjectManager 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 connectObjectAdded(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_object.DBusObject))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.dbus_object_manager.DBusObjectManager))) && Parameters!T.length < 3)

Connect to ObjectAdded signal.

Emitted when object is added to manager.

Parameters

callbacksignal callback delegate or function to connect void callback(gio.dbus_object.DBusObject object, gio.dbus_object_manager.DBusObjectManager dBusObjectManager) object The #GDBusObject that was added. (optional) dBusObjectManager 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 connectObjectRemoved(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_object.DBusObject))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.dbus_object_manager.DBusObjectManager))) && Parameters!T.length < 3)

Connect to ObjectRemoved signal.

Emitted when object is removed from manager.

Parameters

callbacksignal callback delegate or function to connect void callback(gio.dbus_object.DBusObject object, gio.dbus_object_manager.DBusObjectManager dBusObjectManager) object The #GDBusObject that was removed. (optional) dBusObjectManager 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
tmplDBusObjectManagerGidBuilderT()