DBusInterface#
Added in version 2.30.
- class DBusInterface(*args, **kwargs)#
Implementations: DBusInterfaceSkeleton, DBusProxy
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#
- class DBusInterface
- get_info() DBusInterfaceInfo#
Gets D-Bus introspection information for the D-Bus interface implemented by
interface_.Added in version 2.30.
- get_object() DBusObject | None#
Gets the
DBusObjectthatinterface_belongs to, if any.It is not safe to use the returned object if
interface_or the returned object is being used from other threads. Seedup_object()for a thread-safe alternative.Added in version 2.30.
- set_object(object: DBusObject | None = None) None#
Sets the
DBusObjectforinterface_toobject.Note that
interface_will hold a weak reference toobject.Added in version 2.30.
- Parameters:
object – A
DBusObjectorNone.
Virtual Methods#
- class DBusInterface
- do_dup_object() DBusObject | None#
The type of the None singleton.
Added in version 2.32.
- do_get_info() DBusInterfaceInfo#
Gets D-Bus introspection information for the D-Bus interface implemented by
interface_.Added in version 2.30.
- do_set_object(object: DBusObject | None = None) None#
Sets the
DBusObjectforinterface_toobject.Note that
interface_will hold a weak reference toobject.Added in version 2.30.
- Parameters:
object – A
DBusObjectorNone.