Gio.DBusObjectSkeleton¶
| Subclasses: | None |
|---|
Methods¶
| Inherited: | GObject.Object (37), Gio.DBusObject (3) |
|---|---|
| Structs: | GObject.ObjectClass (5) |
| class | new (object_path) |
add_interface (interface_) |
|
flush () |
|
remove_interface (interface_) |
|
remove_interface_by_name (interface_name) |
|
set_object_path (object_path) |
Virtual Methods¶
| Inherited: | GObject.Object (7), Gio.DBusObject (5) |
|---|
do_authorize_method (interface_, invocation) |
Properties¶
| Name | Type | Flags | Short Description |
|---|---|---|---|
g-object-path |
str |
r/w/c | The object path where the object is exported |
Signals¶
| Inherited: | GObject.Object (1), Gio.DBusObject (2) |
|---|
| Name | Short Description |
|---|---|
authorize-method |
Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized. |
Fields¶
| Inherited: | GObject.Object (1), Gio.DBusObject (2) |
|---|
| Name | Type | Access | Description |
|---|---|---|---|
| parent_instance | GObject.Object |
r |
Class Details¶
-
class
Gio.DBusObjectSkeleton(**kwargs)¶ Bases: GObject.Object,Gio.DBusObjectAbstract: No Structure: Gio.DBusObjectSkeletonClassA
Gio.DBusObjectSkeletoninstance 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
Gio.DBusObjectManager.New in version 2.30.
-
classmethod
new(object_path)[source]¶ Parameters: object_path ( str) – An object path.Returns: A Gio.DBusObjectSkeleton. Free withGObject.Object.unref().Return type: Gio.DBusObjectSkeletonCreates a new
Gio.DBusObjectSkeleton.New in version 2.30.
-
add_interface(interface_)[source]¶ Parameters: interface ( Gio.DBusInterfaceSkeleton) – AGio.DBusInterfaceSkeleton.Adds interface_ to self.
If self already contains a
Gio.DBusInterfaceSkeletonwith the same interface name, it is removed before interface_ is added.Note that self takes its own reference on interface_ and holds it until removed.
New in version 2.30.
-
flush()[source]¶ This method simply calls
Gio.DBusInterfaceSkeleton.flush() on all interfaces belonging to self. See that method for when flushing is useful.New in version 2.30.
-
remove_interface(interface_)[source]¶ Parameters: interface ( Gio.DBusInterfaceSkeleton) – AGio.DBusInterfaceSkeleton.Removes interface_ from self.
New in version 2.30.
-
remove_interface_by_name(interface_name)[source]¶ Parameters: interface_name ( str) – A D-Bus interface name.Removes the
Gio.DBusInterfacewith interface_name from self.If no D-Bus interface of the given interface exists, this function does nothing.
New in version 2.30.
-
set_object_path(object_path)[source]¶ Parameters: object_path ( str) – A valid D-Bus object path.Sets the object path for self.
New in version 2.30.
Parameters: - interface (
Gio.DBusInterfaceSkeleton) – - invocation (
Gio.DBusMethodInvocation) –
Return type: - interface (
-
classmethod
Signal Details¶
Signal Name: authorize-methodFlags: Parameters: - d_bus_object_skeleton (
Gio.DBusObjectSkeleton) – The object which received the signal - interface (
Gio.DBusInterfaceSkeleton) – TheGio.DBusInterfaceSkeletonthat invocation is for. - invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Returns: Return type: Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.
This signal is like
Gio.DBusInterfaceSkeleton’sGio.DBusInterfaceSkeleton::g-authorize-methodsignal, except that it is for the enclosing object.The default class handler just returns
True.New in version 2.30.
- d_bus_object_skeleton (