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
DBusObject
that @``interface_`` 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. See
dup_object()
for a thread-safe alternative.Added in version 2.30.
- set_object(object: DBusObject | None = None) None
Sets the
DBusObject
for @``interface_`` toobject
.Note that @``interface_`` will hold a weak reference to
object
.Added in version 2.30.
- Parameters:
object – A
DBusObject
orNone
.
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
DBusObject
for @``interface_`` toobject
.Note that @``interface_`` will hold a weak reference to
object
.Added in version 2.30.
- Parameters:
object – A
DBusObject
orNone
.