DBusObjectSkeleton
Added in version 2.30.
Superclasses: Object
Implemented Interfaces: DBusObject
A GDBusObjectSkeleton
instance is essentially a group of D-Bus
interfaces. The set of exported interfaces on the object may be
dynamic and change at runtime.
This type is intended to be used with DBusObjectManager
.
Constructors
- class DBusObjectSkeleton
- classmethod new(object_path: str) DBusObjectSkeleton
Creates a new
DBusObjectSkeleton
.Added in version 2.30.
- Parameters:
object_path – An object path.
Methods
- class DBusObjectSkeleton
- add_interface(interface_: DBusInterfaceSkeleton) None
Adds @``interface_`` to
object
.If
object
already contains aDBusInterfaceSkeleton
with the same interface name, it is removed before @``interface_`` is added.Note that
object
takes its own reference on @``interface_`` and holds it until removed.Added in version 2.30.
- Parameters:
interface – A
DBusInterfaceSkeleton
.
- flush() None
This method simply calls
flush()
on all interfaces belonging toobject
. See that method for when flushing is useful.Added in version 2.30.
- remove_interface(interface_: DBusInterfaceSkeleton) None
Removes @``interface_`` from
object
.Added in version 2.30.
- Parameters:
interface – A
DBusInterfaceSkeleton
.
- remove_interface_by_name(interface_name: str) None
Removes the
DBusInterface
withinterface_name
fromobject
.If no D-Bus interface of the given interface exists, this function does nothing.
Added in version 2.30.
- Parameters:
interface_name – A D-Bus interface name.
Properties
Signals
- class DBusObjectSkeleton.signals
- authorize_method(interface: DBusInterfaceSkeleton, invocation: DBusMethodInvocation) bool
Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.
This signal is like
DBusInterfaceSkeleton
’sDBusInterfaceSkeleton
::g-authorize-method signal, except that it is for the enclosing object.The default class handler just returns
True
.Added in version 2.30.
- Parameters:
interface – The
DBusInterfaceSkeleton
thatinvocation
is for.invocation – A
DBusMethodInvocation
.
Virtual Methods
- class DBusObjectSkeleton
- do_authorize_method(interface_: DBusInterfaceSkeleton, invocation: DBusMethodInvocation) bool
Signal class handler for the
DBusObjectSkeleton
::authorize-method signal.- Parameters:
interface
invocation