Gio.DBusObjectSkeleton¶
class — extends GObject.Object, 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¶
new¶
Creates a new DBusObjectSkeleton.
Parameters:
object_path— An object path.
Methods¶
add_interface¶
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.
Parameters:
interface_— ADBusInterfaceSkeleton.
flush¶
This method simply calls DBusInterfaceSkeleton.flush on all
interfaces belonging to object. See that method for when flushing
is useful.
remove_interface¶
Removes interface_ from object.
Parameters:
interface_— ADBusInterfaceSkeleton.
remove_interface_by_name¶
Removes the DBusInterface with interface_name from object.
If no D-Bus interface of the given interface exists, this function does nothing.
Parameters:
interface_name— A D-Bus interface name.
set_object_path¶
Sets the object path for object.
Parameters:
object_path— A valid D-Bus object path.
Virtual methods¶
do_authorize_method¶
def do_authorize_method(self, interface_: DBusInterfaceSkeleton, invocation: DBusMethodInvocation) -> bool
Signal class handler for the DBusObjectSkeleton::authorize-method signal.
Properties¶
g_object_path¶
The object path where the object is exported.
Signals¶
authorize-method¶
def on_authorize_method(self, 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.