#GDBusInterface that must be freed with [gobject.object.ObjectWrap.unref].
gio.dbus_object_mixin
Module for [DBusObject] interface mixin
Templates 2
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.
Gets the D-Bus interface with name interface_name associated with object, if any.
Parameters
interfaceName | A D-Bus interface name. |
Returns
Gets the D-Bus interfaces associated with object.
Returns
The returned list must be freed by [glib.list.List.free] after each element has been freed with [gobject.object.ObjectWrap.unref].
Gets the object path for object.
Returns
Connect to InterfaceAdded signal.
Emitted when interface is added to object.
Parameters
callback | signal 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) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Connect to InterfaceRemoved signal.
Emitted when interface is removed from object.
Parameters
callback | signal 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) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |