DBusObjectSkeleton

Added in version 2.30.

class DBusObjectSkeleton(**properties: Any)

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 a DBusInterfaceSkeleton 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 to object. 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 with interface_name from object.

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.

set_object_path(object_path: str) None

Sets the object path for object.

Added in version 2.30.

Parameters:

object_path – A valid D-Bus object path.

Properties

class DBusObjectSkeleton
props.g_object_path: str

The object path where the object is exported.

Added in version 2.30.

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’s DBusInterfaceSkeleton::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:

Virtual Methods

class DBusObjectSkeleton
do_authorize_method(interface_: DBusInterfaceSkeleton, invocation: DBusMethodInvocation) bool
Parameters:
  • interface

  • invocation

Fields

class DBusObjectSkeleton
parent_instance
priv