Skip to content

Gio.DBusInterface

interface

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).

Methods

get_object

def get_object(self) -> DBusObject | None

Gets the DBusObject that interface_ belongs to, if any.

get_info

def get_info(self) -> DBusInterfaceInfo | None

Gets D-Bus introspection information for the D-Bus interface implemented by interface_.

This can return None if no DBusInterfaceInfo was provided during construction of interface_ and is also not made available otherwise. For example, DBusProxy implements DBusInterface but allows for a None DBusInterfaceInfo.

set_object

def set_object(self, object: DBusObject | None = ...) -> None

Sets the DBusObject for interface_ to object.

Note that interface_ will hold a weak reference to object.

Parameters:

Virtual methods

do_dup_object

def do_dup_object(self) -> DBusObject | None

Gets the DBusObject that interface_ belongs to, if any.

do_get_info

def do_get_info(self) -> DBusInterfaceInfo | None

Gets D-Bus introspection information for the D-Bus interface implemented by interface_.

This can return None if no DBusInterfaceInfo was provided during construction of interface_ and is also not made available otherwise. For example, DBusProxy implements DBusInterface but allows for a None DBusInterfaceInfo.

do_set_object

def do_set_object(self, object: DBusObject | None = ...) -> None

Sets the DBusObject for interface_ to object.

Note that interface_ will hold a weak reference to object.

Parameters: