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_
toobject
.If
object
already contains aDBusInterfaceSkeleton
with the same interface name, it is removed beforeinterface_
is added.Note that
object
takes its own reference oninterface_
and holds it until removed.Added in version 2.30.
- Parameters:
interface – A
DBusInterfaceSkeleton
.
- do_authorize_method(self, interface_: DBusInterfaceSkeleton, invocation: DBusMethodInvocation) bool #
- Parameters:
interface
invocation
- 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_
fromobject
.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 #
The type of the None singleton.
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 #
The type of the None singleton.
- Parameters:
interface
invocation